drm/i915/gt: nuke gen6_hw_id
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 23 Jul 2021 00:25:51 +0000 (17:25 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Mon, 26 Jul 2021 15:15:18 +0000 (08:15 -0700)
commit816753c06f23773c83763cfef3ded32a387e54e1
tree081d538d1388839590e2a4a04ce5d968771c83f9
parentbfac1e2b6e2d6b3fdb3d8f997187d6f1c63ea965
drm/i915/gt: nuke gen6_hw_id

This is only used by GRAPHICS_VER == 6 and GRAPHICS_VER == 7. All other
recent platforms do not depend on this field, so it doesn't make much
sense to keep it generic like that. Instead, just do a mapping from
engine class to HW ID in the single place that is needed.

v2: use macros with the direct register address instead of calculating
from the legacy HW_ID (Matt Roper)

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723002551.3906535-1-lucas.demarchi@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/i915_reg.h