From: Rodrigo Vivi <rodrigo.vivi@intel.com>
To: Riana Tauro <riana.tauro@intel.com>
Cc: <intel-xe@lists.freedesktop.org>, <anshuman.gupta@intel.com>,
<aravind.iddamsetty@linux.intel.com>, <raag.jadav@intel.com>,
<badal.nilawar@intel.com>, <ravi.kishore.koppuravuri@intel.com>,
<mallesh.koujalagi@intel.com>, <soham.purkait@intel.com>
Subject: Re: [PATCH v5] drm/xe/xe_ras: Add support for PCIe error component handling
Date: Fri, 4 Dec 2026 09:10:00 -0500 [thread overview]
Message-ID: <axLJuDF_bxM7PfLH@intel.com> (raw)
In-Reply-To: <20261203093922.3917965-2-riana.tauro@intel.com>
On Thu, Dec 03, 2026 at 03:09:23PM +0530, 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>
> Reviewed-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
> Reviewed-by: Raag Jadav <raag.jadav@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)
>
> v5: rebase
pushed to drm-xe-next. Thanks
> ---
> 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 57d3f4b92fad..4001560b46b0 100644
> --- a/drivers/gpu/drm/xe/xe_ras.c
> +++ b/drivers/gpu/drm/xe/xe_ras.c
> @@ -691,6 +691,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)
> {
> @@ -892,6 +905,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;
> case XE_RAS_COMP_FABRIC:
> xe_log_comp(xe, ras_sev_to_cper_sev(severity), FABRIC,
> &arr->counter, sizeof(arr->counter),
> diff --git a/drivers/gpu/drm/xe/xe_ras_types.h b/drivers/gpu/drm/xe/xe_ras_types.h
> index 63c8ed3aaf17..64fd816e6abc 100644
> --- a/drivers/gpu/drm/xe/xe_ras_types.h
> +++ b/drivers/gpu/drm/xe/xe_ras_types.h
> @@ -16,6 +16,8 @@
>
> /* 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)
> --
> 2.47.1
>
next prev parent reply other threads:[~2026-12-04 14:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 9:39 [PATCH v5] drm/xe/xe_ras: Add support for PCIe error component handling Riana Tauro
2026-12-03 10:18 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Add support for PCIe error component handling (rev3) Patchwork
2026-12-03 10:50 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-04 6:51 ` ✓ CI.KUnit: success for drm/xe/xe_ras: Add support for PCIe error component handling (rev4) Patchwork
2026-12-04 7:26 ` ✓ Xe.CI.BAT: " Patchwork
2026-12-04 14:10 ` Rodrigo Vivi [this message]
2026-12-05 5:00 ` ✓ Xe.CI.FULL: " 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=axLJuDF_bxM7PfLH@intel.com \
--to=rodrigo.vivi@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=riana.tauro@intel.com \
--cc=soham.purkait@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.