All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/xe_pci_error: Wait for pcode init post SBR
@ 2026-10-28  7:28 Riana Tauro
  2026-10-28  7:40 ` sashiko-bot
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Riana Tauro @ 2026-10-28  7:28 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, rodrigo.vivi, aravind.iddamsetty,
	raag.jadav, mallesh.koujalagi

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).

In case of failure, enter survivability mode.

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com>
---
 drivers/gpu/drm/xe/xe_pci_error.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_pci_error.c b/drivers/gpu/drm/xe/xe_pci_error.c
index 9bf0da3a3d15..0675b5a8f643 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"
@@ -112,6 +113,12 @@ static pci_ers_result_t xe_pci_error_slot_reset(struct pci_dev *pdev)
 		return PCI_ERS_RESULT_DISCONNECT;
 	}
 
+	err = xe_pcode_ready(xe, true);
+	if (err) {
+		xe_survivability_mode_runtime_enable(xe);
+		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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-28 16:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-28  7:28 [PATCH v2] drm/xe/xe_pci_error: Wait for pcode init post SBR Riana Tauro
2026-10-28  7:40 ` sashiko-bot
2026-10-28  8:38 ` ✓ CI.KUnit: success for " Patchwork
2026-10-28  9:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-10-28 16:02 ` ✗ Xe.CI.FULL: failure " Patchwork

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.