From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, Matt Roper <matthew.d.roper@intel.com>
Subject: Re: [PATCH] drm/xe/mcr: Prefer GT-oriented WARN messages
Date: Mon, 8 Jun 2026 20:32:48 -0400 [thread overview]
Message-ID: <aidfMHxf-qfN36yU@intel.com> (raw)
In-Reply-To: <20260608182829.913-1-michal.wajdeczko@intel.com>
On Mon, Jun 08, 2026 at 08:28:29PM +0200, Michal Wajdeczko wrote:
> In all functions where xe_gt pointer is relevant, we should use
> GT-oriented diagnostic messages using macros from xe_gt_printk.h
>
> Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
> ---
> Cc: Matt Roper <matthew.d.roper@intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_mcr.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_mcr.c b/drivers/gpu/drm/xe/xe_gt_mcr.c
> index 04f0098070a4..d11cc9e25cdb 100644
> --- a/drivers/gpu/drm/xe/xe_gt_mcr.c
> +++ b/drivers/gpu/drm/xe/xe_gt_mcr.c
> @@ -507,7 +507,7 @@ void xe_gt_mcr_init_early(struct xe_gt *gt)
> spin_lock_init(>->mcr_lock);
>
> if (gt->info.type == XE_GT_TYPE_MEDIA) {
> - drm_WARN_ON(&xe->drm, MEDIA_VER(xe) < 13);
> + xe_gt_WARN_ON(gt, MEDIA_VER(xe) < 13);
>
> if (MEDIA_VER(xe) >= 30) {
> gt->steering[OADDRM].ranges = xe2lpm_gpmxmt_steering_table;
> @@ -662,9 +662,9 @@ bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt,
>
> for (int type = 0; type < IMPLICIT_STEERING; type++) {
> if (reg_in_steering_type_ranges(gt, reg, type)) {
> - drm_WARN(>_to_xe(gt)->drm, !gt->steering[type].initialized,
> - "Uninitialized usage of MCR register %s/%#x\n",
> - xe_steering_types[type].name, reg.addr);
> + xe_gt_WARN(gt, !gt->steering[type].initialized,
> + "Uninitialized usage of MCR register %s/%#x\n",
> + xe_steering_types[type].name, reg.addr);
>
> *group = gt->steering[type].group_target;
> *instance = gt->steering[type].instance_target;
> @@ -679,9 +679,9 @@ bool xe_gt_mcr_get_nonterminated_steering(struct xe_gt *gt,
> * Not found in a steering table and not a register with implicit
> * steering. Just steer to 0/0 as a guess and raise a warning.
> */
> - drm_WARN(>_to_xe(gt)->drm, true,
> - "Did not find MCR register %#x in any MCR steering table\n",
> - reg.addr);
> + xe_gt_WARN(gt, true,
> + "Did not find MCR register %#x in any MCR steering table\n",
> + reg.addr);
> *group = 0;
> *instance = 0;
>
> @@ -710,7 +710,7 @@ static void mcr_lock(struct xe_gt *gt) __acquires(>->mcr_lock)
> ret = xe_mmio_wait32(>->mmio, STEER_SEMAPHORE, 0x1, 0x1, 10, NULL,
> true);
>
> - drm_WARN_ON_ONCE(&xe->drm, ret == -ETIMEDOUT);
> + xe_gt_WARN_ON_ONCE(gt, ret == -ETIMEDOUT);
> }
>
> static void mcr_unlock(struct xe_gt *gt) __releases(>->mcr_lock)
> --
> 2.47.1
>
prev parent reply other threads:[~2026-06-09 0:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-08 18:28 [PATCH] drm/xe/mcr: Prefer GT-oriented WARN messages Michal Wajdeczko
2026-06-08 18:35 ` ✓ CI.KUnit: success for " Patchwork
2026-06-09 0:32 ` Rodrigo Vivi [this message]
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=aidfMHxf-qfN36yU@intel.com \
--to=rodrigo.vivi@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=michal.wajdeczko@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.