drm/xe/gt_throttle: Convert register access to use xe_mmio
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:47:48 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:32:50 +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-73-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_gt_throttle.c

index 25963e3..03b2253 100644 (file)
@@ -41,9 +41,9 @@ u32 xe_gt_throttle_get_limit_reasons(struct xe_gt *gt)
 
        xe_pm_runtime_get(gt_to_xe(gt));
        if (xe_gt_is_media_type(gt))
-               reg = xe_mmio_read32(gt, MTL_MEDIA_PERF_LIMIT_REASONS);
+               reg = xe_mmio_read32(&gt->mmio, MTL_MEDIA_PERF_LIMIT_REASONS);
        else
-               reg = xe_mmio_read32(gt, GT0_PERF_LIMIT_REASONS);
+               reg = xe_mmio_read32(&gt->mmio, GT0_PERF_LIMIT_REASONS);
        xe_pm_runtime_put(gt_to_xe(gt));
 
        return reg;