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

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

+5 -5
+5 -5
drivers/gpu/drm/xe/xe_gt.c
··· 110 110 return; 111 111 112 112 if (!xe_gt_is_media_type(gt)) { 113 - xe_mmio_write32(gt, SCRATCH1LPFC, EN_L3_RW_CCS_CACHE_FLUSH); 113 + xe_mmio_write32(&gt->mmio, SCRATCH1LPFC, EN_L3_RW_CCS_CACHE_FLUSH); 114 114 reg = xe_gt_mcr_unicast_read_any(gt, XE2_GAMREQSTRM_CTRL); 115 115 reg |= CG_DIS_CNTLBUS; 116 116 xe_gt_mcr_multicast_write(gt, XE2_GAMREQSTRM_CTRL, reg); ··· 247 247 else if (entry->clr_bits + 1) 248 248 val = (reg.mcr ? 249 249 xe_gt_mcr_unicast_read_any(gt, reg_mcr) : 250 - xe_mmio_read32(gt, reg)) & (~entry->clr_bits); 250 + xe_mmio_read32(&gt->mmio, reg)) & (~entry->clr_bits); 251 251 else 252 252 val = 0; 253 253 ··· 442 442 * Stash hardware-reported version. Since this register does not exist 443 443 * on pre-MTL platforms, reading it there will (correctly) return 0. 444 444 */ 445 - gt->info.gmdid = xe_mmio_read32(gt, GMD_ID); 445 + gt->info.gmdid = xe_mmio_read32(&gt->mmio, GMD_ID); 446 446 447 447 err = xe_force_wake_put(gt_to_fw(gt), XE_FW_GT); 448 448 XE_WARN_ON(err); ··· 652 652 653 653 xe_gsc_wa_14015076503(gt, true); 654 654 655 - xe_mmio_write32(gt, GDRST, GRDOM_FULL); 656 - err = xe_mmio_wait32(gt, GDRST, GRDOM_FULL, 0, 5000, NULL, false); 655 + xe_mmio_write32(&gt->mmio, GDRST, GRDOM_FULL); 656 + err = xe_mmio_wait32(&gt->mmio, GDRST, GRDOM_FULL, 0, 5000, NULL, false); 657 657 if (err) 658 658 xe_gt_err(gt, "failed to clear GRDOM_FULL (%pe)\n", 659 659 ERR_PTR(err));