dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
To: Andi Shyti <andi.shyti@kernel.org>,
	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>,
	Sebastian Brzezinka <sebastian.brzezinka@intel.com>,
	Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Subject: Re: [PATCH v2 5/8] drm/i915/gt/selftests: Use drm_* prints in aggregated gt selftests
Date: Fri, 28 Aug 2026 11:08:59 +0200	[thread overview]
Message-ID: <756222a03760054ffebf187e581c60ce4025c023.camel@linux.intel.com> (raw)
In-Reply-To: <apDJpcatw9isIKdL@zenone.zhora.eu>

On Fri, 2026-08-28 at 01:38 +0200, Andi Shyti wrote:
> Hi Krzysztof,
> 
> ...
> 
> > @@ -400,11 +400,10 @@ static int intel_mmio_bases_check(void *arg)
> >  			u32 base = info->mmio_bases[j].base;
> >  
> >  			if (ver >= prev) {
> > -				pr_err("%s(%s, class:%d, instance:%d): mmio base for graphics ver %u is before the one for ver %u\n",
> > -				       __func__,
> > -				       intel_engine_class_repr(info->class),
> > -				       info->class, info->instance,
> > -				       prev, ver);
> > +				drm_err(NULL,
> > +					"%s(%s, class:%d, instance:%d): mmio base for graphics ver %u is before the one for ver %u\n",
> > +					__func__, intel_engine_class_repr(info->class),
> > +					info->class, info->instance, prev, ver);
> 
> yah! drm_err(NULL, ...) is quite pointless. If there is no way
> for retrieving the drm device, then let's just stick to pr_*,
> this is their role.

While I said in one of my comments to 3/5 that I'm not sure if that makes 
sense, maybe it does.  With drm_*(NULL, ...), log messages are still
tagged with [drm] at least.  So as a minimum, in line with my comment to 
1/5, I think commit message of 1/5 that introduces only drm_*(NULL, ...) 
could tell us that we want that [drm] tag even without context, unless we 
don't want it, then prefer to keep pr_*().

Thanks,
Janusz

> 
> Thanks,
> Andi
> 
> >  				return -EINVAL;
> >  			}

  reply	other threads:[~2026-08-28  9:09 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-18  9:56 [PATCH v2 0/8] drm/i915/selftests: Modernize printing in i915 selftests Krzysztof Karas
2026-08-18  9:56 ` [PATCH v2 1/8] drm/i915/selftests: Use drm_* prints in mock selftests Krzysztof Karas
2026-08-18 10:05   ` sashiko-bot
2026-08-24  7:10   ` Janusz Krzysztofik
2026-08-18  9:56 ` [PATCH v2 2/8] drm/i915/selftest: Fix a typo in alloc_workqueue call Krzysztof Karas
2026-08-24  7:11   ` Janusz Krzysztofik
2026-08-27 23:28   ` Andi Shyti
2026-08-18  9:56 ` [PATCH v2 3/8] drm/i915/selftests: Use drm_* prints in live selftests Krzysztof Karas
2026-08-24  8:31   ` Janusz Krzysztofik
2026-08-27 23:32   ` Andi Shyti
2026-08-18  9:56 ` [PATCH v2 4/8] drm/i915/selftests: Use drm_* prints in selftest helpers Krzysztof Karas
2026-08-27 23:34   ` Andi Shyti
2026-08-18  9:56 ` [PATCH v2 5/8] drm/i915/gt/selftests: Use drm_* prints in aggregated gt selftests Krzysztof Karas
2026-08-27 23:38   ` Andi Shyti
2026-08-28  9:08     ` Janusz Krzysztofik [this message]
2026-08-18  9:56 ` [PATCH v2 6/8] drm/i915/gt/selftests: Use drm_* prints in gt standalone tests Krzysztof Karas
2026-08-27 23:41   ` Andi Shyti
2026-08-18  9:56 ` [PATCH v2 7/8] drm/i915/gt/selftests: Use drm_* prints in gt selftest helpers Krzysztof Karas
2026-08-27 23:44   ` Andi Shyti
2026-08-18  9:56 ` [PATCH v2 8/8] drm/i915/selftests: Use drm_* prints in selftest headers Krzysztof Karas
2026-08-18 10:08   ` sashiko-bot
2026-08-18 10:09   ` Krzysztof Karas

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=756222a03760054ffebf187e581c60ce4025c023.camel@linux.intel.com \
    --to=janusz.krzysztofik@linux.intel.com \
    --cc=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=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