Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Andi Shyti <andi.shyti@kernel.org>
To: Krzysztof Karas <krzysztof.karas@intel.com>
Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	 Jani Nikula <jani.nikula@linux.intel.com>,
	Andi Shyti <andi.shyti@linux.intel.com>,
	 Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>,
	Sebastian Brzezinka <sebastian.brzezinka@intel.com>,
	 Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Subject: Re: [PATCH v3 4/8] drm/i915/gt/selftests: Use drm_* prints in aggregated gt selftests
Date: Fri, 28 Aug 2026 18:18:35 +0200	[thread overview]
Message-ID: <apGwueLe3rE7gPLj@zenone.zhora.eu> (raw)
In-Reply-To: <20260828100339.72304-5-krzysztof.karas@intel.com>

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(&gt->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);

  reply	other threads:[~2026-08-28 16:18 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-28 10:03 [PATCH v3 0/8] drm/i915/selftests: Modernize printing in i915 selftests Krzysztof Karas
2026-08-28 10:03 ` [PATCH v3 1/8] drm/i915/selftest: Fix a typo in alloc_workqueue call Krzysztof Karas
2026-08-28 14:24   ` Andi Shyti
2026-08-28 16:54   ` Andi Shyti
2026-08-28 10:03 ` [PATCH v3 2/8] drm/i915/selftests: Use drm_* prints in live selftests Krzysztof Karas
2026-08-28 14:34   ` Andi Shyti
2026-08-31  8:35     ` Jani Nikula
2026-08-28 16:41   ` Krzysztof Niemiec
2026-08-31  8:39     ` Jani Nikula
2026-08-28 10:03 ` [PATCH v3 3/8] drm/i915/selftests: Use drm_* prints in selftest helpers Krzysztof Karas
2026-08-28 15:58   ` Andi Shyti
2026-08-28 16:49   ` Krzysztof Niemiec
2026-08-28 10:03 ` [PATCH v3 4/8] drm/i915/gt/selftests: Use drm_* prints in aggregated gt selftests Krzysztof Karas
2026-08-28 16:18   ` Andi Shyti [this message]
2026-09-03 12:39     ` Krzysztof Karas
2026-08-28 17:40   ` Krzysztof Niemiec
2026-08-28 10:03 ` [PATCH v3 5/8] drm/i915/gt/selftests: Use drm_* prints in gt standalone tests Krzysztof Karas
2026-08-28 16:23   ` Andi Shyti
2026-08-28 18:02   ` Krzysztof Niemiec
2026-08-28 10:03 ` [PATCH v3 6/8] drm/i915/gt/selftests: Use drm_* prints in gt selftest helpers Krzysztof Karas
2026-08-28 16:28   ` Andi Shyti
2026-08-28 18:06   ` Krzysztof Niemiec
2026-08-28 10:03 ` [PATCH v3 7/8] drm/i915/selftests: Use drm_* prints in selftest headers Krzysztof Karas
2026-08-28 16:30   ` Andi Shyti
2026-08-28 18:08   ` Krzysztof Niemiec
2026-08-28 10:03 ` [PATCH v3 8/8] drm/i915/selftests: Add drm_device to selftest wrappers Krzysztof Karas
2026-08-28 16:36   ` Andi Shyti
2026-08-28 11:31 ` ✗ i915.CI.BAT: failure for drm/i915/selftests: Modernize printing in i915 selftests (rev4) Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=apGwueLe3rE7gPLj@zenone.zhora.eu \
    --to=andi.shyti@kernel.org \
    --cc=andi.shyti@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jani.nikula@linux.intel.com \
    --cc=janusz.krzysztofik@linux.intel.com \
    --cc=krzysztof.karas@intel.com \
    --cc=krzysztof.niemiec@intel.com \
    --cc=sebastian.brzezinka@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox