mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
drm/xe/gt_throttle: Convert register access to use xe_mmio
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
This commit is contained in:
parent
4570c090a4
commit
f99947ad35
|
|
@ -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(>->mmio, MTL_MEDIA_PERF_LIMIT_REASONS);
|
||||
else
|
||||
reg = xe_mmio_read32(gt, GT0_PERF_LIMIT_REASONS);
|
||||
reg = xe_mmio_read32(>->mmio, GT0_PERF_LIMIT_REASONS);
|
||||
xe_pm_runtime_put(gt_to_xe(gt));
|
||||
|
||||
return reg;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user