summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/xe/xe_step_types.h
diff options
context:
space:
mode:
authorMatt Roper <matthew.d.roper@intel.com>2023-05-24 11:59:52 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-19 18:34:01 -0500
commit6ed6ba32dba14ef851ecb7190597d6bac77618e2 (patch)
tree7f97105216848a788ae12c987a0f09c72278c651 /drivers/gpu/drm/xe/xe_step_types.h
parentc93b6de7cc7610a269afe0e84a0b3e2b81a746cd (diff)
downloadlinux-stable-6ed6ba32dba14ef851ecb7190597d6bac77618e2.tar.gz
linux-stable-6ed6ba32dba14ef851ecb7190597d6bac77618e2.tar.bz2
linux-stable-6ed6ba32dba14ef851ecb7190597d6bac77618e2.zip
drm/xe: Add stepping support for GMD_ID platforms
For platforms with GMD_ID registers, the IP stepping should be determined from the 'revid' field of those registers rather than from the PCI revid. The hardware teams have indicated that they plan to keep the revid => stepping mapping consistent across all GMD_ID platforms, with major steppings (A0, B0, C0, etc.) having revids that are multiples of 4, and minor steppings (A1, A2, A3, etc.) taking the intermediate values. For now we'll trust that hardware follows through on this plan; if they have to change direction in the future (e.g., they wind up needing something like an "A4" that doesn't fit this scheme), we can add a GMD_ID-based lookup table when the time comes. v2: - Set xe->info.platform before finding stepping; the pre-GMD_ID code relies on this value to pick a lookup table. v3: - Also set xe->info.subplatform before picking the stepping for pre-GMD_ID lookup. Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> Link: https://lore.kernel.org/r/20230524185952.666158-1-matthew.d.roper@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_step_types.h')
-rw-r--r--drivers/gpu/drm/xe/xe_step_types.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/gpu/drm/xe/xe_step_types.h b/drivers/gpu/drm/xe/xe_step_types.h
index b7859f9647ca..ccc9b4795e95 100644
--- a/drivers/gpu/drm/xe/xe_step_types.h
+++ b/drivers/gpu/drm/xe/xe_step_types.h
@@ -21,21 +21,20 @@ struct xe_step_info {
func(A0) \
func(A1) \
func(A2) \
+ func(A3) \
func(B0) \
func(B1) \
func(B2) \
func(B3) \
func(C0) \
func(C1) \
+ func(C2) \
+ func(C3) \
func(D0) \
func(D1) \
- func(E0) \
- func(F0) \
- func(G0) \
- func(H0) \
- func(I0) \
- func(I1) \
- func(J0)
+ func(D2) \
+ func(D3) \
+ func(E0)
/*
* Symbolic steppings that do not match the hardware. These are valid both as gt