]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit37a3f35543504e719e7fe6a033028f64773a3896
tree081d538d1388839590e2a4a04ce5d968771c83f9
parent9f9aadd705292d5cd981a47b23925fe3e889c957
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