mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
drm/xe/mocs: 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-71-matthew.d.roper@intel.com
This commit is contained in:
@@ -55,7 +55,7 @@ static void read_l3cc_table(struct xe_gt *gt,
|
||||
if (regs_are_mcr(gt))
|
||||
reg_val = xe_gt_mcr_unicast_read_any(gt, XEHP_LNCFCMOCS(i >> 1));
|
||||
else
|
||||
reg_val = xe_mmio_read32(gt, XELP_LNCFCMOCS(i >> 1));
|
||||
reg_val = xe_mmio_read32(>->mmio, XELP_LNCFCMOCS(i >> 1));
|
||||
|
||||
mocs_dbg(gt, "reg_val=0x%x\n", reg_val);
|
||||
} else {
|
||||
@@ -94,7 +94,7 @@ static void read_mocs_table(struct xe_gt *gt,
|
||||
if (regs_are_mcr(gt))
|
||||
reg_val = xe_gt_mcr_unicast_read_any(gt, XEHP_GLOBAL_MOCS(i));
|
||||
else
|
||||
reg_val = xe_mmio_read32(gt, XELP_GLOBAL_MOCS(i));
|
||||
reg_val = xe_mmio_read32(>->mmio, XELP_GLOBAL_MOCS(i));
|
||||
|
||||
mocs_expected = get_entry_control(info, i);
|
||||
mocs = reg_val;
|
||||
|
||||
Reference in New Issue
Block a user