diff options
author | Lucas De Marchi <lucas.demarchi@intel.com> | 2023-09-06 04:20:51 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 19:41:03 +0300 |
commit | 46c63b6485b9029aae0a79a82c8c3e03548abc1b (patch) | |
tree | f9a1b42d6541c32841ec2b4d75485138eeb3271e /drivers/gpu/drm/xe/xe_reg_sr.c | |
parent | a2112949e5f96c1b95aedfb9e2f0401e6c4f864f (diff) | |
download | linux-46c63b6485b9029aae0a79a82c8c3e03548abc1b.tar.xz |
drm/xe/reg_sr: Use xe_gt_dbg
Use xe_gt_dbg() instead of drm_dbg() so the GT is added to the log for
easy identification.
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20230906012053.1733755-3-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_reg_sr.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_reg_sr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/gpu/drm/xe/xe_reg_sr.c b/drivers/gpu/drm/xe/xe_reg_sr.c index 264520015861..87adefb56024 100644 --- a/drivers/gpu/drm/xe/xe_reg_sr.c +++ b/drivers/gpu/drm/xe/xe_reg_sr.c @@ -147,7 +147,6 @@ static struct xe_reg_mcr to_xe_reg_mcr(const struct xe_reg reg) static void apply_one_mmio(struct xe_gt *gt, struct xe_reg_sr_entry *entry) { - struct xe_device *xe = gt_to_xe(gt); struct xe_reg reg = entry->reg; struct xe_reg_mcr reg_mcr = to_xe_reg_mcr(reg); u32 val; @@ -176,7 +175,7 @@ static void apply_one_mmio(struct xe_gt *gt, struct xe_reg_sr_entry *entry) */ val |= entry->set_bits; - drm_dbg(&xe->drm, "REG[0x%x] = 0x%08x", reg.addr, val); + xe_gt_dbg(gt, "REG[0x%x] = 0x%08x", reg.addr, val); if (entry->reg.mcr) xe_gt_mcr_multicast_write(gt, reg_mcr, val); @@ -186,7 +185,6 @@ static void apply_one_mmio(struct xe_gt *gt, struct xe_reg_sr_entry *entry) void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt) { - struct xe_device *xe = gt_to_xe(gt); struct xe_reg_sr_entry *entry; unsigned long reg; int err; @@ -194,7 +192,7 @@ void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt) if (xa_empty(&sr->xa)) return; - drm_dbg(&xe->drm, "Applying %s save-restore MMIOs\n", sr->name); + xe_gt_dbg(gt, "Applying %s save-restore MMIOs\n", sr->name); err = xe_force_wake_get(>->mmio.fw, XE_FORCEWAKE_ALL); if (err) @@ -209,7 +207,7 @@ void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt) return; err_force_wake: - drm_err(&xe->drm, "Failed to apply, err=%d\n", err); + xe_gt_err(gt, "Failed to apply, err=%d\n", err); } void xe_reg_sr_apply_whitelist(struct xe_hw_engine *hwe) |