Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Raag Jadav" <raag.jadav@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [PATCH v2] drm/xe/ras: Distinguish between detailed and aggregate counters
Date: Mon, 23 Nov 2026 15:24:02 +0000	[thread overview]
Message-ID: <sashiko-outbox-229548@kernel.org> (raw)
In-Reply-To: <20261123151727.2115677-1-raag.jadav@intel.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] drm/xe/ras: build failure in xe_ras_get_counter_response()
--

commit 7755d9bbd553561b2196f8bbac1d6124dbf69eea
Author: Raag Jadav <raag.jadav@intel.com>

drm/xe/ras: Distinguish between detailed and aggregate counters

This commit updates xe_ras_get_counter_response() to log whether the
queried RAS counter is detailed or aggregate along with info queue
support.

> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 0fb891d00b36a..4c4f8af3a78a0 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -783,7 +783,9 @@ int xe_ras_get_counter_response(struct xe_device *xe, const struct xe_ras_error_
>  {
>  	struct xe_ras_get_counter_request request = {0};
>  	struct xe_sysctrl_mailbox_command command = {0};
> +	const struct xe_ras_error_product product = {0};
>  	struct xe_ras_error_common *common;
> +	bool detailed;
>  	size_t rlen;
>  	int ret;
>  
> @@ -808,9 +810,11 @@ int xe_ras_get_counter_response(struct xe_device *xe, const struct xe_ras_error_
>  		return -EBADMSG;
>  
>  	common = &response->counter.common;
> +	detailed = memcmp(&response->counter.product, &product, sizeof(product));
>  
> -	xe_dbg(xe, "[RAS]: get counter %u for %s %s\n", response->value,
> -	       comp_to_str(common->component), sev_to_str(common->severity));
> +	xe_dbg(xe, "[RAS]: get %s counter %u for %s %s %s info queue\n",
> +	       detailed ? "detailed" : "aggregate", response->value, comp_to_str(common->component),
> +	       sev_to_str(common->severity), response->has_info_queue ? "with" : "without");

[Severity: High]
Does this fail to build because struct xe_ras_get_counter_response has no
has_info_queue member?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261123151727.2115677-1-raag.jadav@intel.com?part=1

      reply	other threads:[~2026-11-23 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 15:17 [PATCH v2] drm/xe/ras: Distinguish between detailed and aggregate counters Raag Jadav
2026-11-23 15:24 ` sashiko-bot [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=sashiko-outbox-229548@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=raag.jadav@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox