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

drm/xe/reg_sr: 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-80-matthew.d.roper@intel.com

+4 -4
+4 -4
drivers/gpu/drm/xe/xe_reg_sr.c
··· 165 165 else if (entry->clr_bits + 1) 166 166 val = (reg.mcr ? 167 167 xe_gt_mcr_unicast_read_any(gt, reg_mcr) : 168 - xe_mmio_read32(gt, reg)) & (~entry->clr_bits); 168 + xe_mmio_read32(&gt->mmio, reg)) & (~entry->clr_bits); 169 169 else 170 170 val = 0; 171 171 ··· 181 181 if (entry->reg.mcr) 182 182 xe_gt_mcr_multicast_write(gt, reg_mcr, val); 183 183 else 184 - xe_mmio_write32(gt, reg, val); 184 + xe_mmio_write32(&gt->mmio, reg, val); 185 185 } 186 186 187 187 void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt) ··· 242 242 } 243 243 244 244 xe_reg_whitelist_print_entry(&p, 0, reg, entry); 245 - xe_mmio_write32(gt, RING_FORCE_TO_NONPRIV(mmio_base, slot), 245 + xe_mmio_write32(&gt->mmio, RING_FORCE_TO_NONPRIV(mmio_base, slot), 246 246 reg | entry->set_bits); 247 247 slot++; 248 248 } ··· 251 251 for (; slot < RING_MAX_NONPRIV_SLOTS; slot++) { 252 252 u32 addr = RING_NOPID(mmio_base).addr; 253 253 254 - xe_mmio_write32(gt, RING_FORCE_TO_NONPRIV(mmio_base, slot), addr); 254 + xe_mmio_write32(&gt->mmio, RING_FORCE_TO_NONPRIV(mmio_base, slot), addr); 255 255 } 256 256 257 257 err = xe_force_wake_put(gt_to_fw(gt), XE_FORCEWAKE_ALL);