All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Riana Tauro" <riana.tauro@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v4 2/3] drm/xe/sysctrl: Drain page offline queue on queue-full event
Date: Thu, 26 Nov 2026 08:52:31 +0000	[thread overview]
Message-ID: <sashiko-outbox-235060@kernel.org> (raw)
In-Reply-To: <20261126083516.1932195-7-riana.tauro@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] drm/xe/sysctrl: transposed #%x format specifier in
  get_pending_event()
--

commit 05276661aef276dde9798d0d35641aafb0f1b8d7
Author: Riana Tauro <riana.tauro@intel.com>

drm/xe/sysctrl: Drain page offline queue on queue-full event

This commit handles the System Controller page offline queue full event by
draining the offline queue and serializing page offline handling with a
mutex.

> diff --git a/drivers/gpu/drm/xe/xe_sysctrl_event.c b/drivers/gpu/drm/xe/xe_sysctrl_event.c
> index 3239c110a66a7..b6a414bb3df73 100644
> --- a/drivers/gpu/drm/xe/xe_sysctrl_event.c
> +++ b/drivers/gpu/drm/xe/xe_sysctrl_event.c
> @@ -37,11 +37,17 @@ static void get_pending_event(struct xe_sysctrl *sc, struct xe_sysctrl_mailbox_c
>  			return;
>  		}
>  
> -		if (response->event == XE_SYSCTRL_EVENT_THRESHOLD_CROSSED)
> +		switch (response->event) {
> +		case XE_SYSCTRL_EVENT_THRESHOLD_CROSSED:
>  			xe_ras_counter_threshold_crossed(xe, response);
> -		else
> +			break;
> +		case XE_SYSCTRL_EVENT_PAGE_OFFLINE_QUEUE_FULL:
> +			xe_ras_get_offline_queue(xe);
> +			break;
> +		default:
>  			xe_log_err_info(xe, SYSCTRL, -ENOPKG,
>  					"Unexpected event %#x\n", response->event);
> +		}
>  
>  		if (!--count) {
>  			xe_log_err(xe, SYSCTRL, -EXFULL,
> @@ -49,7 +55,8 @@ static void get_pending_event(struct xe_sysctrl *sc, struct xe_sysctrl_mailbox_c
>  			return;
>  		}
>  
> -		xe_dbg(xe, "sysctrl: %u events pending\n", response->count);
> +		xe_dbg(xe, "sysctrl: event code #%x received, %u events pending\n", response->event,
> +		       response->count);

[Severity: Low]
Should the format specifier for response->event be "%#x" rather than
"#%x", so it prints a "0x" prefix instead of a literal "#"?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261126083516.1932195-5-riana.tauro@intel.com?part=2

  reply	other threads:[~2026-11-26  8:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-26  8:35 [PATCH v4 0/3] Handle sysctrl event for page offline full Riana Tauro
2026-11-26  8:35 ` [PATCH v4 1/3] drm/xe/ras: Wedge the device on page offline failure in all callers Riana Tauro
2026-11-26  9:02   ` sashiko-bot
2026-11-26  8:35 ` [PATCH v4 2/3] drm/xe/sysctrl: Drain page offline queue on queue-full event Riana Tauro
2026-11-26  8:52   ` sashiko-bot [this message]
2026-11-26  8:35 ` [PATCH v4 3/3] drm/xe/ras: Skip offline queue processing after device unplug Riana Tauro
2026-11-26  8:46   ` sashiko-bot
2026-11-26  8:49     ` Tauro, Riana
2026-11-26  9:25   ` Raag Jadav
2026-11-26  9:40     ` Tauro, Riana
2026-11-26  8:43 ` ✗ CI.checkpatch: warning for Handle sysctrl event for page offline full Patchwork
2026-11-26  8:45 ` ✓ CI.KUnit: success " Patchwork
2026-11-26  9:27 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-26 14:29 ` ✓ Xe.CI.FULL: " 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=sashiko-outbox-235060@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=riana.tauro@intel.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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.