Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/xe/lmtt: Convert register access to use xe_mmio

Stop using GT pointers for register access.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-60-matthew.d.roper@intel.com

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_lmtt.c
··· 193 193 lmtt_assert(lmtt, xe_bo_is_vram(lmtt->pd->bo)); 194 194 lmtt_assert(lmtt, IS_ALIGNED(offset, SZ_64K)); 195 195 196 - xe_mmio_write32(tile->primary_gt, 196 + xe_mmio_write32(&tile->mmio, 197 197 GRAPHICS_VER(xe) >= 20 ? XE2_LMEM_CFG : LMEM_CFG, 198 198 LMEM_EN | REG_FIELD_PREP(LMTT_DIR_PTR, offset / SZ_64K)); 199 199 }