From: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
To: "Gupta, Anshuman" <anshuman.gupta@intel.com>,
"Tauro, Riana" <riana.tauro@intel.com>,
"intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>
Cc: "Vivi, Rodrigo" <rodrigo.vivi@intel.com>,
"Jadav, Raag" <raag.jadav@intel.com>,
"Koppuravuri, Ravi Kishore" <ravi.kishore.koppuravuri@intel.com>,
"Roper, Matthew D" <matthew.d.roper@intel.com>
Subject: Re: [PATCH 1/2] drm/xe/xe_pci_error: Wait for pcode init post SBR
Date: Mon, 31 Aug 2026 18:02:59 +0530 [thread overview]
Message-ID: <0bad9269-ddae-4ab9-9823-9fef7363323a@linux.intel.com> (raw)
In-Reply-To: <BN9PR11MB524232BB439BB10F87C48D2395AC2@BN9PR11MB5242.namprd11.prod.outlook.com>
On 28-08-2026 19:36, Gupta, Anshuman wrote:
>
>> -----Original Message-----
>> From: Tauro, Riana <riana.tauro@intel.com>
>> Sent: Friday, August 28, 2026 5:01 PM
>> To: intel-xe@lists.freedesktop.org
>> Cc: Tauro, Riana <riana.tauro@intel.com>; Gupta, Anshuman
>> <anshuman.gupta@intel.com>; Vivi, Rodrigo <rodrigo.vivi@intel.com>;
>> aravind.iddamsetty@linux.intel.com; Jadav, Raag <raag.jadav@intel.com>;
>> Koppuravuri, Ravi Kishore <ravi.kishore.koppuravuri@intel.com>; Roper,
>> Matthew D <matthew.d.roper@intel.com>
>> Subject: [PATCH 1/2] drm/xe/xe_pci_error: Wait for pcode init post SBR
>>
>> Pcode init complete indicates the device is ready, with device memory
>> initialization complete. Wait for Pcode init before accessing the device post
>> Secondary Bus Reset (SBR).
>>
>> Signed-off-by: Riana Tauro <riana.tauro@intel.com>
>> ---
>> drivers/gpu/drm/xe/xe_pci_error.c | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/drivers/gpu/drm/xe/xe_pci_error.c
>> b/drivers/gpu/drm/xe/xe_pci_error.c
>> index 79ce0c671549..3e9c77f8483d 100644
>> --- a/drivers/gpu/drm/xe/xe_pci_error.c
>> +++ b/drivers/gpu/drm/xe/xe_pci_error.c
>> @@ -9,6 +9,7 @@
>> #include "xe_gt.h"
>> #include "xe_log.h"
>> #include "xe_pci.h"
>> +#include "xe_pcode.h"
>> #include "xe_pm.h"
>> #include "xe_printk.h"
>> #include "xe_ras.h"
>> @@ -109,6 +110,10 @@ static pci_ers_result_t
>> xe_pci_error_slot_reset(struct pci_dev *pdev)
>> return PCI_ERS_RESULT_DISCONNECT;
>> }
>>
>> + err = xe_pcode_probe_early(xe);
> This can be a 3-minute wait in worst case, after PCIe core pci_bridge_wait_for_secondary_bus() is already waited for 1 second*[1].
> What will be the impact on already running workload and any worker thread tries to access the mmio or PCIe bar here?
The existing workloads are expected to crash or terminate for an error
that needs SBR to recover, before we reach to this state driver declares
the device as wedged anyways.
Thanks,
Aravind.
>
> [1]
> /*
> * Devices may extend the 1 sec period through Request Retry Status
> * completions (PCIe r6.0 sec 2.3.1). The spec does not provide an upper
> * limit, but 60 sec ought to be enough for any device to become
> * responsive.
> */
> #define PCIE_RESET_READY_POLL_MS 60000 /* msec */
>
> Thanks,
> Anshuman
>> + if (err)
>> + return PCI_ERS_RESULT_DISCONNECT;
>> +
>> /*
>> * Secondary Bus Reset causes all VRAM state to be lost along with
>> * hardware state. As an initial step, re-probe the device to
>> --
>> 2.47.1
next prev parent reply other threads:[~2026-08-31 12:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-28 11:31 [PATCH 0/2] Xe Pci error handling fixes Riana Tauro
2026-08-28 11:31 ` [PATCH 1/2] drm/xe/xe_pci_error: Wait for pcode init post SBR Riana Tauro
2026-08-28 11:41 ` sashiko-bot
2026-08-28 14:06 ` Gupta, Anshuman
2026-08-29 14:00 ` Raag Jadav
2026-08-31 12:32 ` Aravind Iddamsetty [this message]
2026-09-03 12:53 ` Gupta, Anshuman
2026-08-28 11:31 ` [PATCH 2/2] drm/xe/xe_guc: Skip GuC reset " Riana Tauro
2026-08-28 11:44 ` sashiko-bot
2026-09-03 16:34 ` Teres Alexis, Alan Previn
2026-08-28 11:38 ` ✓ CI.KUnit: success for Xe Pci error handling fixes Patchwork
2026-08-28 12:21 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-28 13:30 ` ✓ 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=0bad9269-ddae-4ab9-9823-9fef7363323a@linux.intel.com \
--to=aravind.iddamsetty@linux.intel.com \
--cc=anshuman.gupta@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.d.roper@intel.com \
--cc=raag.jadav@intel.com \
--cc=ravi.kishore.koppuravuri@intel.com \
--cc=riana.tauro@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