From: "Mallesh, Koujalagi" <mallesh.koujalagi@intel.com>
To: Riana Tauro <riana.tauro@intel.com>, <intel-xe@lists.freedesktop.org>
Cc: <anshuman.gupta@intel.com>, <aravind.iddamsetty@linux.intel.com>,
<raag.jadav@intel.com>, <badal.nilawar@intel.com>,
<ravi.kishore.koppuravuri@intel.com>
Subject: Re: [PATCH v3] drm/xe/xe_ras: Add support for PCIe error component handling
Date: Thu, 12 Nov 2026 14:32:49 +0530 [thread overview]
Message-ID: <da57b7e4-a2e3-45df-b925-e840595b6b29@intel.com> (raw)
In-Reply-To: <20261111123021.3253044-2-riana.tauro@intel.com>
[-- Attachment #1: Type: text/plain, Size: 2541 bytes --]
On 11-11-2026 06:00 pm, Riana Tauro wrote:
> Add support for handling PCIe subsystem errors. PCIe subsystem power
> management errors require a Seconday bus reset(SBR) for recovery. Treat all
> others as recovered and take no further action.
>
> Signed-off-by: Riana Tauro<riana.tauro@intel.com>
> ---
> v2: add mapping to cper severity (Badal, Rodrigo)
> add abbreviations
> fix punctuations (Raag)
> ---
> drivers/gpu/drm/xe/xe_ras.c | 16 ++++++++++++++++
> drivers/gpu/drm/xe/xe_ras_types.h | 2 ++
> 2 files changed, 18 insertions(+)
>
> diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
> index 2c01c183d02b..bd3ad017f013 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -698,6 +698,19 @@ static u8 handle_device_memory_errors(struct xe_device *xe, struct xe_ras_error_
> return XE_RAS_RECOVERY_ACTION_RECOVERED;
> }
>
> +static u8 handle_pcie_errors(struct xe_device *xe, struct xe_ras_error_array *arr)
> +{
> + struct xe_ras_ieh_error *info = (void *)arr->details;
> +
> + xe_log_comp(xe, ras_sev_to_cper_sev(arr->counter.common.severity), PCIE, &arr->counter,
> + sizeof(arr->counter), "error detected\n");
For consistency, start message with capital letter and log
global_error_status as well.
Thanks,
-/Mallesh
> +
> + if (info->global_error_status & XE_RAS_PCIE_IEH_GPMA)
> + return XE_RAS_RECOVERY_ACTION_RESET;
> +
> + return XE_RAS_RECOVERY_ACTION_RECOVERED;
> +}
> +
> void xe_ras_counter_threshold_crossed(struct xe_device *xe,
> struct xe_sysctrl_event_response *response)
> {
> @@ -889,6 +902,9 @@ enum xe_ras_recovery_action xe_ras_process_errors(struct xe_device *xe)
> case XE_RAS_COMP_DEVICE_MEMORY:
> action = handle_device_memory_errors(xe, arr);
> break;
> + case XE_RAS_COMP_PCIE:
> + action = handle_pcie_errors(xe, arr);
> + break;
> default:
> /* For any other component, reset */
> action = XE_RAS_RECOVERY_ACTION_RESET;
> diff --git a/drivers/gpu/drm/xe/xe_ras_types.h b/drivers/gpu/drm/xe/xe_ras_types.h
> index a86f9d2b8c92..36435a3f52e7 100644
> --- a/drivers/gpu/drm/xe/xe_ras_types.h
> +++ b/drivers/gpu/drm/xe/xe_ras_types.h
> @@ -14,6 +14,8 @@
> #define XE_RAS_NUM_PAGES 25
> /* Error bits in IEH global error status register */
> #define XE_RAS_SOC_IEH_PUNIT BIT(1)
> +#define XE_RAS_PCIE_IEH_GPMA BIT(5)
> +
> /* Device memory error categories */
> #define XE_RAS_MEMORY_DB_ECC BIT(1)
> #define XE_RAS_MEMORY_POISON BIT(2)
[-- Attachment #2: Type: text/html, Size: 3101 bytes --]
next prev parent reply other threads:[~2026-11-12 9:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 12:30 [PATCH v3] drm/xe/xe_ras: Add support for PCIe error component handling Riana Tauro
2026-11-11 13:07 ` ✓ CI.KUnit: success for " Patchwork
2026-11-11 13:49 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-11 21:50 ` ✓ Xe.CI.FULL: " Patchwork
2026-11-12 5:34 ` [PATCH v3] " Raag Jadav
2026-11-12 9:08 ` Tauro, Riana
2026-11-12 9:02 ` Mallesh, Koujalagi [this message]
2026-11-12 9:14 ` Tauro, Riana
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=da57b7e4-a2e3-45df-b925-e840595b6b29@intel.com \
--to=mallesh.koujalagi@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=raag.jadav@intel.com \
--cc=ravi.kishore.koppuravuri@intel.com \
--cc=riana.tauro@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