[PATCH 15/43] drm/xe/lmtt: Convert register access to use xe_mmio
Lucas De Marchi
lucas.demarchi at intel.com
Fri Sep 6 21:52:32 UTC 2024
On Tue, Sep 03, 2024 at 05:21:16PM GMT, Matt Roper wrote:
>Stop using GT pointers for register access.
>
>Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi at intel.com>
Lucas De Marchi
>---
> drivers/gpu/drm/xe/xe_lmtt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/drivers/gpu/drm/xe/xe_lmtt.c b/drivers/gpu/drm/xe/xe_lmtt.c
>index 8999ac511555..a60ceae4c6dd 100644
>--- a/drivers/gpu/drm/xe/xe_lmtt.c
>+++ b/drivers/gpu/drm/xe/xe_lmtt.c
>@@ -193,7 +193,7 @@ static void lmtt_setup_dir_ptr(struct xe_lmtt *lmtt)
> lmtt_assert(lmtt, xe_bo_is_vram(lmtt->pd->bo));
> lmtt_assert(lmtt, IS_ALIGNED(offset, SZ_64K));
>
>- xe_mmio_write32(tile->primary_gt,
>+ xe_mmio_write32(&tile->mmio,
> GRAPHICS_VER(xe) >= 20 ? XE2_LMEM_CFG : LMEM_CFG,
> LMEM_EN | REG_FIELD_PREP(LMTT_DIR_PTR, offset / SZ_64K));
> }
>--
>2.45.2
>
More information about the Intel-xe
mailing list