drm/i915/pvc: Extract stepping information from PCI revid
authorMatt Roper <matthew.d.roper@intel.com>
Fri, 27 May 2022 16:33:47 +0000 (09:33 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 31 May 2022 21:44:57 +0000 (14:44 -0700)
commit8b449f1c44d1f921240da6a3e7fc4030966abbff
tree6d5716dc5f6d500062f42ff2dae3120b67afed9a
parent420a07b841d03f6a436d8c06571c69aa5c783897
drm/i915/pvc: Extract stepping information from PCI revid

For PVC, the base die and compute tile have separate stepping values
that we need to track; we'll use the existing graphics_step field to
represent the compute tile stepping and add a new 'basedie_step' field.

Unlike past platforms, steppings for these components are represented by
specific bitfields within the PCI revision ID, and we shouldn't make
assumptions about the non-CT, non-BD bits staying 0.  Let's update our
stepping code accordingly.

Bspec: 44484
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Atwood <matthew.s.atwood@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220527163348.1936146-2-matthew.d.roper@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_step.c
drivers/gpu/drm/i915/intel_step.h