]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: identify display steppings in display probe
authorJani Nikula <jani.nikula@intel.com>
Wed, 21 Aug 2024 09:50:36 +0000 (12:50 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 22 Aug 2024 12:48:08 +0000 (15:48 +0300)
commit4446387572fb7952a387b8e45e8a96b4f08a2a53
tree28c34eb7499c3e94e9cb94921124240f4d02c9f9
parent5a48d67ac336436ed4a79c1c9e036a409b502329
drm/i915/display: identify display steppings in display probe

Both i915 and xe have code to identify display steppings. Start
deduplicating this by, uh, adding a third copy in display code. This is
not yet used for anything other than debug logging. We'll switch over
later.

For platforms before GMD ID, attach the mapping from PCI revision to
stepping in the platform and subplatform descriptors. This is a
considerably cleaner approach than having it completely separate.

Also add a separate field for stepping in display runtime info,
preserving the value from GMD ID.

v2: Handle NULL subdesc (Matt)

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240821095036.2044654-1-jani.nikula@intel.com
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/display/intel_display_device.c
drivers/gpu/drm/i915/display/intel_display_device.h
drivers/gpu/drm/xe/compat-i915-headers/intel_step.h