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 v4] drm/xe/xe_ras: Add support for PCIe error component handling
Date: Thu, 12 Nov 2026 15:31:53 +0530 [thread overview]
Message-ID: <aa38cf1e-b2ae-47dc-a97d-a44eacaa0baf@intel.com> (raw)
In-Reply-To: <20261112095744.3520095-2-riana.tauro@intel.com>
On 12-11-2026 03:27 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>
LGTM,
Reviewed-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
> ---
> v2: add mapping to cper severity (Badal, Rodrigo)
> add abbreviations
> fix punctuations (Raag)
>
> v3: drop fabric patch
>
> v4: add global_error_status in log (Raag, Mallesh)
> ---
> 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..da57ff60c11d 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: 0x%08x\n", info->global_error_status);
> +
> + 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)
next prev parent reply other threads:[~2026-11-12 10:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 9:57 [PATCH v4] drm/xe/xe_ras: Add support for PCIe error component handling Riana Tauro
2026-11-12 10:01 ` Mallesh, Koujalagi [this message]
2026-11-12 10:07 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Add support for PCIe error component handling (rev2) Patchwork
2026-11-12 10:44 ` ✓ Xe.CI.BAT: " Patchwork
2026-11-12 11:13 ` [PATCH v4] drm/xe/xe_ras: Add support for PCIe error component handling Raag Jadav
2026-11-12 17:02 ` ✗ Xe.CI.FULL: failure for drm/xe/xe_ras: Add support for PCIe error component handling (rev2) 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=aa38cf1e-b2ae-47dc-a97d-a44eacaa0baf@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