Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/ras: Distinguish between detailed and aggregate counters
@ 2026-11-23 15:17 Raag Jadav
  2026-11-23 15:24 ` sashiko-bot
  2026-11-23 15:45 ` ✗ CI.KUnit: failure for drm/xe/ras: Distinguish between detailed and aggregate counters (rev3) Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Raag Jadav @ 2026-11-23 15:17 UTC (permalink / raw)
  To: intel-xe; +Cc: riana.tauro, Raag Jadav

xe_ras_get_counter_response() only logs counter value, severity and
component. Also log the type of counter and info queue support for
easier debugging.

Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
v2: Drop BUILD_BUG_ON() (Riana)
    Log info queue support
---
 drivers/gpu/drm/xe/xe_ras.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index b35c77caeaae..d5c15e17007a 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -782,7 +782,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;
 
@@ -807,9 +809,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");
 
 	return 0;
 }
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-23 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2026-11-23 15:45 ` ✗ CI.KUnit: failure for drm/xe/ras: Distinguish between detailed and aggregate counters (rev3) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox