From ddca50584c8643ff23c554bc8053e48527054067 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Roberto=20de=20Souza?= Date: Thu, 22 May 2025 09:24:22 -0700 Subject: [PATCH] intel: Return PTL stepping MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this no temporary workaround is applied to PTL as by default INTEL_STEPPING_RELEASE is returned and it is larger than any stepping. Reviewed-by: Tapani Pälli Signed-off-by: José Roberto de Souza Part-of: --- src/intel/dev/intel_device_info.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/intel/dev/intel_device_info.c b/src/intel/dev/intel_device_info.c index c4d9b9c2767..4aae48c1c19 100644 --- a/src/intel/dev/intel_device_info.c +++ b/src/intel/dev/intel_device_info.c @@ -1994,7 +1994,16 @@ intel_device_info_wa_stepping(struct intel_device_info *devinfo) * 'compiler_field' in intel_device_info.py */ - if (devinfo->platform == INTEL_PLATFORM_BMG) { + if (devinfo->platform == INTEL_PLATFORM_PTL) { + switch (devinfo->revision) { + case 0: + return INTEL_STEPPING_A0; + case 4: + return INTEL_STEPPING_B0; + default: + return INTEL_STEPPING_RELEASE; + } + } else if (devinfo->platform == INTEL_PLATFORM_BMG) { switch (devinfo->revision) { case 0: return INTEL_STEPPING_A0;