]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/forcewake: Convert register access to use xe_mmio
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:48:00 +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-85-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_force_wake.c

index b263fff1527377836380e316a60e8513bd35704e..a64c14757c84206f2ae9a7c5a9b05c5798455e69 100644 (file)
@@ -100,7 +100,7 @@ static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain,
        if (IS_SRIOV_VF(gt_to_xe(gt)))
                return;
 
-       xe_mmio_write32(gt, domain->reg_ctl, domain->mask | (wake ? domain->val : 0));
+       xe_mmio_write32(&gt->mmio, domain->reg_ctl, domain->mask | (wake ? domain->val : 0));
 }
 
 static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake)
@@ -111,7 +111,7 @@ static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain,
        if (IS_SRIOV_VF(gt_to_xe(gt)))
                return 0;
 
-       ret = xe_mmio_wait32(gt, domain->reg_ack, domain->val, wake ? domain->val : 0,
+       ret = xe_mmio_wait32(&gt->mmio, domain->reg_ack, domain->val, wake ? domain->val : 0,
                             XE_FORCE_WAKE_ACK_TIMEOUT_MS * USEC_PER_MSEC,
                             &value, true);
        if (ret)