]> git.hungrycats.org Git - linux/commitdiff
drm/xe/mcr: Use Xe2_LPM steering tables for Xe2_HPM
authorGustavo Sousa <gustavo.sousa@intel.com>
Fri, 20 Sep 2024 21:13:15 +0000 (18:13 -0300)
committerMatt Roper <matthew.d.roper@intel.com>
Mon, 23 Sep 2024 17:46:29 +0000 (10:46 -0700)
According to Bspec, Xe2 steering tables must be used for Xe2_HPM, just
as it is with Xe2_LPM. Update our driver to reflect that.

Bspec: 71186
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240920211459.255181-2-gustavo.sousa@intel.com
drivers/gpu/drm/xe/xe_gt_mcr.c

index 2671ce6b1a762b0986d22a11fbb97b27d12ac869..4c0767403881de0f37da665c702aca30642a4fc0 100644 (file)
@@ -441,7 +441,7 @@ void xe_gt_mcr_init(struct xe_gt *gt)
        if (gt->info.type == XE_GT_TYPE_MEDIA) {
                drm_WARN_ON(&xe->drm, MEDIA_VER(xe) < 13);
 
-               if (MEDIA_VER(xe) >= 20) {
+               if (MEDIA_VERx100(xe) >= 1301) {
                        gt->steering[OADDRM].ranges = xe2lpm_gpmxmt_steering_table;
                        gt->steering[INSTANCE0].ranges = xe2lpm_instance0_steering_table;
                } else {