[PATCH 7/9] drm/i915/rpm: switch from drm_debug_printer() to device specific drm_dbg_printer()
Jani Nikula
jani.nikula at intel.com
Thu Sep 21 11:18:51 UTC 2023
Prefer the device specific debug printer. With this, there are no users
of drm_debug_printer() left in i915.
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
drivers/gpu/drm/i915/intel_runtime_pm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c
index 5ebaa74fa60b..c02eaef5e5bc 100644
--- a/drivers/gpu/drm/i915/intel_runtime_pm.c
+++ b/drivers/gpu/drm/i915/intel_runtime_pm.c
@@ -219,7 +219,10 @@ static void
dump_and_free_wakeref_tracking(struct intel_runtime_pm_debug *debug)
{
if (debug->count) {
- struct drm_printer p = drm_debug_printer("i915");
+ struct intel_runtime_pm *rpm =
+ container_of(debug, struct intel_runtime_pm, debug);
+ struct drm_i915_private *i915 = rpm_to_i915(rpm);
+ struct drm_printer p = drm_dbg_printer(&i915->drm, DRM_UT_DRIVER, NULL);
__print_intel_runtime_pm_wakeref(&p, debug);
}
--
2.39.2
More information about the Intel-gfx-trybot
mailing list