Hi Krzysztof,
On Fri, Aug 28, 2026 at 10:03:35AM +0000, Krzysztof Karas wrote:
> Move away from generic pr prints to device context aware drm
> versions.
>
> Assisted-by: GitHub-Copilot:claude-opus-5
what a ride!
While reviewing everything I was thinking whether it would make
sense to add an i915_err() like xe and gt.
...
> @@ -540,7 +551,7 @@ static void spinner_kill(struct timer_list *timer)
> struct spinner_timer *st = timer_container_of(st, timer, timer);
>
> igt_spinner_end(&st->spin);
> - pr_info("%s\n", __func__);
> + drm_info(st->spin.hws->base.dev, "killing spinner\n");
considering that you kept the __func__ reference everywhere else,
you could have also kept it here. I like that you have added a
message, though.
As you are going to resend, anyway, please fix this little nit.
> }
...
> sort(t, ARRAY_SIZE(t), sizeof(*t), wrap_ktime_compare, NULL);
> - pr_info("%s: %zd KiB copy: %lld MiB/s\n",
> - ce->engine->name, sz >> 10,
> - div64_u64(mul_u32_u32(4 * sz,
> - 1000 * 1000 * 1000),
> - t[1] + 2 * t[2] + t[3]) >> 20);
> + drm_info(&ce->engine->i915->drm, "%s: %zd KiB copy: %lld MiB/s\n",
Not a binding comment: rq->i915 would have made it a bit shorter.
> + ce->engine->name, sz >> 10,
> + div64_u64(mul_u32_u32(4 * sz, 1000 * 1000 * 1000),
> + t[1] + 2 * t[2] + t[3]) >> 20);
> return 0;
> }
...
> @@ -1211,7 +1231,7 @@ live_gpu_reset_workarounds(void *arg)
> if (!lists)
> return -ENOMEM;
>
> - pr_info("Verifying after GPU reset...\n");
> + drm_info(>->i915->drm, "Verifying after GPU reset...\n");
I'm thinking whether it's better to use gt_info() when we have
the gt reference.
Andi
>
> igt_global_reset_lock(gt);
> wakeref = intel_runtime_pm_get(gt->uncore->rpm);