From: Riana Tauro <riana.tauro@intel.com>
To: "Mallesh, Koujalagi" <mallesh.koujalagi@intel.com>,
<intel-xe@lists.freedesktop.org>
Cc: <anshuman.gupta@intel.com>, <rodrigo.vivi@intel.com>,
<aravind.iddamsetty@linux.intel.com>, <badal.nilawar@intel.com>,
<raag.jadav@intel.com>, <ravi.kishore.koppuravuri@intel.com>
Subject: Re: [PATCH 6/8] drm/xe/xe_ras: Add structures and commands for Uncorrectable Core Compute Errors
Date: Mon, 23 Feb 2026 20:00:47 +0530 [thread overview]
Message-ID: <1fc467a4-e0d8-4890-ab40-eb5a92594763@intel.com> (raw)
In-Reply-To: <cf766405-5ce2-421e-a91a-16ab6473a816@intel.com>
On 2/23/2026 7:49 PM, Mallesh, Koujalagi wrote:
>
> On 22-01-2026 03:36 pm, Riana Tauro wrote:
>> Add the sysctrl commands and response structures for Uncorrectable
>> Core Compute errors.
>>
>> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
>> ---
>> drivers/gpu/drm/xe/xe_ras.c | 53 +++++++
>> drivers/gpu/drm/xe/xe_ras_types.h | 131 ++++++++++++++++++
>> drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h | 13 ++
>> 3 files changed, 197 insertions(+)
>> create mode 100644 drivers/gpu/drm/xe/xe_ras_types.h
>>
>> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
>> index ba5ed37aed28..ace08d8d8d46 100644
>> --- a/drivers/gpu/drm/xe/xe_ras.c
>> +++ b/drivers/gpu/drm/xe/xe_ras.c
>> @@ -4,9 +4,62 @@
>> */
>> #include <linux/pci.h>
>> +#include "xe_assert.h"
>> #include "xe_device_types.h"
>> #include "xe_ras.h"
>> +/* Severity classification of detected errors */
>> +enum xe_ras_severity {
>> + XE_RAS_SEVERITY_NOT_SUPPORTED = 0,
>> + XE_RAS_SEVERITY_CORRECTABLE,
>> + XE_RAS_SEVERITY_UNCORRECTABLE,
>> + XE_RAS_SEVERITY_INFORMATIONAL,
>> + XE_RAS_SEVERITY_MAX
>> +};
>> +
>> +/* major IP blocks where errors can originate */
>> +enum xe_ras_component {
>> + XE_RAS_COMPONENT_NOT_SUPPORTED = 0,
>> + XE_RAS_COMPONENT_DEVICE_MEMORY,
>> + XE_RAS_COMPONENT_CORE_COMPUTE,
>> + XE_RAS_COMPONENT_RESERVED,
>> + XE_RAS_COMPONENT_PCIE,
>> + XE_RAS_COMPONENT_FABRIC,
>> + XE_RAS_COMPONENT_SOC,
>> + XE_RAS_COMPONENT_MAX
>> +};
>> +
>> +static const char * const xe_ras_severities[] = {
>> + [XE_RAS_SEVERITY_NOT_SUPPORTED] = "Not Supported",
>> + [XE_RAS_SEVERITY_CORRECTABLE] = "Correctable",
>> + [XE_RAS_SEVERITY_UNCORRECTABLE] = "Uncorrectable",
>> + [XE_RAS_SEVERITY_INFORMATIONAL] = "Informational",
>> +};
>> +
>> +static const char * const xe_ras_components[] = {
>> + [XE_RAS_COMPONENT_NOT_SUPPORTED] = "Not Supported",
>> + [XE_RAS_COMPONENT_DEVICE_MEMORY] = "Device Memory",
>> + [XE_RAS_COMPONENT_CORE_COMPUTE] = "Core Compute",
>> + [XE_RAS_COMPONENT_RESERVED] = "Reserved",
>> + [XE_RAS_COMPONENT_PCIE] = "PCIe",
>> + [XE_RAS_COMPONENT_FABRIC] = "Fabric",
>> + [XE_RAS_COMPONENT_SOC] = "SoC",
>> +};
>> +
>> +static inline const char *severity_to_str(struct xe_device *xe, u32
>> severity)
>> +{
>> + xe_assert(xe, severity < XE_RAS_SEVERITY_MAX);
>> +
>> + return xe_ras_severities[severity];
>> +}
>> +
>> +static inline const char *comp_to_str(struct xe_device *xe, u32 comp)
>> +{
>> + xe_assert(xe, comp < XE_RAS_COMPONENT_MAX);
>> +
>> + return xe_ras_components[comp];
>> +}
>> +
>> #ifdef CONFIG_PCIEAER
>> static void unmask_and_downgrade_internal_error(struct xe_device *xe)
>> {
>> diff --git a/drivers/gpu/drm/xe/xe_ras_types.h b/drivers/gpu/drm/xe/
>> xe_ras_types.h
>> new file mode 100644
>> index 000000000000..c7a930c16f68
>> --- /dev/null
>> +++ b/drivers/gpu/drm/xe/xe_ras_types.h
>> @@ -0,0 +1,131 @@
>> +/* SPDX-License-Identifier: MIT */
>> +/*
>> + * Copyright © 2026 Intel Corporation
>> + */
>> +
>> +#ifndef _XE_RAS_TYPES_H_
>> +#define _XE_RAS_TYPES_H_
>> +
>> +#include <linux/types.h>
>> +
>> +#define XE_RAS_MAX_ERROR_DETAILS 16
>> +
>> +/**
>> + * struct xe_ras_error_common - Common RAS error class
>> + *
>> + * This structure contains error severity and component information
>> + * across all products
>> + */
>> +struct xe_ras_error_common {
>> + /** @severity: Error Severity */
>> + u8 severity;
>> + /** @component: IP where the error originated */
>> + u8 component;
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_error_unit - Error unit information
>> + */
>> +struct xe_ras_error_unit {
>> + /** @tile: Tile identifier */
>> + u8 tile;
>> + /** @instance: Instance identifier within a component */
>> + u32 instance;
>> +} __packed;
> Performance penalty for accessing unaligned u32.
These are response structures from firmware.
will check
>> +
>> +/**
>> + * struct xe_ras_error_cause - Error cause information
>> + */
>> +struct xe_ras_error_cause {
>> + /** @cause: Cause */
>> + u32 cause;
>> + /** @reserved: For future use */
>> + u8 reserved;
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_error_product - Error fields that are specific to
>> the product
>> + */
>> +struct xe_ras_error_product {
>> + /** @unit: Unit within IP block */
>> + struct xe_ras_error_unit unit;
>> + /** @error_cause: Cause/checker */
>> + struct xe_ras_error_cause error_cause;
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_error_class - Complete RAS Error Class
>> + *
>> + * This structure provides the complete error classification by
>> combining
>> + * the common error class with the product-specific error class.
>> + */
>> +struct xe_ras_error_class {
>> + /** @common: Common error severity and component */
>> + struct xe_ras_error_common common;
>> + /** @product: Product-specific unit and cause */
>> + struct xe_ras_error_product product;
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_error_array - Details of the error types
>> + */
>> +struct xe_ras_error_array {
>> + /** @error_class: Error class */
>> + struct xe_ras_error_class error_class;
>> + /** @timestamp: Timestamp */
>> + u64 timestamp;
>> + /** @error_details: Error details specific to the class */
>> + u32 error_details[XE_RAS_MAX_ERROR_DETAILS];
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_get_error_response - Response for
>> XE_SYSCTRL_GET_SOC_ERROR
>> + */
>> +struct xe_ras_get_error_response {
>> + /** @num_errors: No of errors reported in this response */
>> + u8 num_errors;
>> + /** @additional_errors: Indicates if the errors are pending */
>> + u8 additional_errors;
>> + /** @error_arr: Array of up to 3 errors */
>> + struct xe_ras_error_array error_arr[3];
>
> Use a Macro for a magic number 3.
Sure. Will fix
Thanks
Riana
>
> Thanks
>
> -/Mallesh
>
>> +} __packed;
>> +
>> +/**
>> + * struct xe_ras_compute_error: Error details of Compute error
>> + */
>> +struct xe_ras_compute_error {
>> + /** @error_log_header: Error Source and type */
>> + u32 error_log_header;
>> + /** @internal_error_log: Internal Error log */
>> + u32 internal_error_log;
>> + /** @fabric_log: Fabric Error log */
>> + u32 fabric_log;
>> + /** @internal_error_addr_log0: Internal Error addr log */
>> + u32 internal_error_addr_log0;
>> + /** @internal_error_addr_log1: Internal Error addr log */
>> + u32 internal_error_addr_log1;
>> + /** @packet_log0: Packet log */
>> + u32 packet_log0;
>> + /** @packet_log1: Packet log */
>> + u32 packet_log1;
>> + /** @packet_log2: Packet log */
>> + u32 packet_log2;
>> + /** @packet_log3: Packet log */
>> + u32 packet_log3;
>> + /** @packet_log4: Packet log */
>> + u32 packet_log4;
>> + /** @misc_log0: Misc log */
>> + u32 misc_log0;
>> + /** @misc_log1: Misc log */
>> + u32 misc_log1;
>> + /** @spare_log0: Spare log */
>> + u32 spare_log0;
>> + /** @spare_log1: Spare log */
>> + u32 spare_log1;
>> + /** @spare_log2: Spare log */
>> + u32 spare_log2;
>> + /** @spare_log3: Spare log */
>> + u32 spare_log3;
>> +} __packed;
>> +
>> +#endif
>> diff --git a/drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h b/drivers/
>> gpu/drm/xe/xe_sysctrl_mailbox_types.h
>> index 1f315ad1b996..45ef10f5cfa2 100644
>> --- a/drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h
>> +++ b/drivers/gpu/drm/xe/xe_sysctrl_mailbox_types.h
>> @@ -8,6 +8,19 @@
>> #include <linux/types.h>
>> +/**
>> + * enum xe_sysctrl_mailbox_command_id - RAS Command ID's for GFSP group
>> + *
>> + * @XE_SYSCTRL_CMD_GET_SOC_ERROR: Get basic error information
>> + */
>> +enum xe_sysctrl_mailbox_command_id {
>> + XE_SYSCTRL_CMD_GET_SOC_ERROR = 1
>> +};
>> +
>> +enum xe_sysctrl_group {
>> + XE_SYSCTRL_GROUP_GFSP = 1
>> +};
>> +
>> struct xe_sysctrl_mailbox_mkhi_msg_hdr {
>> __le32 data;
>> } __packed;
next prev parent reply other threads:[~2026-02-23 14:31 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-22 10:06 [PATCH 0/8] Introduce Xe Uncorrectable Error Handling Riana Tauro
2026-01-22 9:42 ` ✗ CI.checkpatch: warning for " Patchwork
2026-01-22 9:43 ` ✓ CI.KUnit: success " Patchwork
2026-01-22 10:06 ` [PATCH 1/8] drm/xe/xe_sysctrl: Add System controller patch Riana Tauro
2026-01-22 10:06 ` [PATCH 2/8] drm/xe/xe_pci_error: Implement PCI error recovery callbacks Riana Tauro
2026-01-27 22:49 ` Michal Wajdeczko
2026-02-02 9:45 ` Riana Tauro
2026-01-29 9:09 ` Nilawar, Badal
2026-02-02 13:19 ` Nilawar, Badal
2026-02-03 3:46 ` Riana Tauro
2026-02-03 3:41 ` Riana Tauro
2026-02-08 8:02 ` Raag Jadav
2026-02-24 3:23 ` Riana Tauro
2026-02-24 5:33 ` Raag Jadav
2026-02-16 8:53 ` Mallesh, Koujalagi
2026-02-24 3:26 ` Riana Tauro
2026-01-22 10:06 ` [PATCH 3/8] drm/xe/xe_pci_error: Group all devres to release them on PCIe slot reset Riana Tauro
2026-01-27 11:23 ` Mallesh, Koujalagi
2026-02-02 8:46 ` Riana Tauro
2026-01-22 10:06 ` [PATCH 4/8] drm/xe: Skip device access during PCI error recovery Riana Tauro
2026-01-22 10:06 ` [PATCH 5/8] drm/xe/xe_ras: Initialize Uncorrectable AER Registers Riana Tauro
2026-01-27 12:41 ` Mallesh, Koujalagi
2026-02-02 9:34 ` Riana Tauro
2026-02-04 8:38 ` Aravind Iddamsetty
2026-02-16 12:27 ` Mallesh, Koujalagi
2026-02-18 14:48 ` Riana Tauro
2026-01-22 10:06 ` [PATCH 6/8] drm/xe/xe_ras: Add structures and commands for Uncorrectable Core Compute Errors Riana Tauro
2026-02-23 14:19 ` Mallesh, Koujalagi
2026-02-23 14:30 ` Riana Tauro [this message]
2026-01-22 10:06 ` [PATCH 7/8] drm/xe/xe_ras: Add support for Uncorrectable Core-Compute errors Riana Tauro
2026-01-27 11:44 ` Mallesh, Koujalagi
2026-02-02 8:38 ` Riana Tauro
2026-01-27 14:03 ` Mallesh, Koujalagi
2026-02-02 8:54 ` Riana Tauro
2026-02-24 12:17 ` Mallesh, Koujalagi
2026-02-17 14:02 ` Raag Jadav
2026-02-23 14:10 ` Riana Tauro
2026-01-22 10:06 ` [PATCH 8/8] drm/xe/xe_pci_error: Process errors in mmio_enabled Riana Tauro
2026-02-24 12:46 ` Mallesh, Koujalagi
2026-01-22 10:21 ` ✓ Xe.CI.BAT: success for Introduce Xe Uncorrectable Error Handling Patchwork
2026-01-22 20:28 ` ✗ Xe.CI.Full: failure " 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=1fc467a4-e0d8-4890-ab40-eb5a92594763@intel.com \
--to=riana.tauro@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=aravind.iddamsetty@linux.intel.com \
--cc=badal.nilawar@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=mallesh.koujalagi@intel.com \
--cc=raag.jadav@intel.com \
--cc=ravi.kishore.koppuravuri@intel.com \
--cc=rodrigo.vivi@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