]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/ccs_mode: Convert register access to use xe_mmio
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:48:02 +0000 (16:48 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:32:51 +0000 (15:32 -0700)
Stop using GT pointers for register access.

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-87-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_gt_ccs_mode.c

index d2e4dc3aaf613ad84f99b45c1e1a6b141fed6250..9360ac4de489ed37a133ab0352a0c74c86fece2d 100644 (file)
@@ -68,7 +68,7 @@ static void __xe_gt_apply_ccs_mode(struct xe_gt *gt, u32 num_engines)
                }
        }
 
-       xe_mmio_write32(gt, CCS_MODE, mode);
+       xe_mmio_write32(&gt->mmio, CCS_MODE, mode);
 
        xe_gt_dbg(gt, "CCS_MODE=%x config:%08x, num_engines:%d, num_slices:%d\n",
                  mode, config, num_engines, num_slices);