[PATCH v2 28/43] drm/xe/gt_throttle: Convert register access to use xe_mmio
Rodrigo Vivi
rodrigo.vivi at intel.com
Tue Sep 10 18:07:50 UTC 2024
On Fri, Sep 06, 2024 at 05:08:17PM -0700, Matt Roper wrote:
> Stop using GT pointers for register access.
>
> Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_throttle.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_throttle.c b/drivers/gpu/drm/xe/xe_gt_throttle.c
> index 25963e33a383..03b225364101 100644
> --- a/drivers/gpu/drm/xe/xe_gt_throttle.c
> +++ b/drivers/gpu/drm/xe/xe_gt_throttle.c
> @@ -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;
> --
> 2.45.2
>
More information about the Intel-xe
mailing list