Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: fix enable survivability mode
@ 2025-03-06  5:54 Riana Tauro
  2025-03-06  5:37 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 13+ messages in thread
From: Riana Tauro @ 2025-03-06  5:54 UTC (permalink / raw)
  To: intel-xe; +Cc: riana.tauro, lucas.demarchi, rodrigo.vivi

The current implementation skipped entering survivability mode even when
survivability enable returned success. Enter survivability mode
if enable returns success

Fixes: d40f275d96e8 ("drm/xe: Move survivability entirely to xe_pci")
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
---
 drivers/gpu/drm/xe/xe_pci.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index 6b5fa067b39b..ee0665e54489 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -857,9 +857,8 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
 	 * HW to be enabled. In that case enable it and return success.
 	 */
 	if (err) {
-		if (xe_survivability_mode_required(xe) &&
-		    xe_survivability_mode_enable(xe))
-			return 0;
+		if (xe_survivability_mode_required(xe))
+			return xe_survivability_mode_enable(xe);
 
 		return err;
 	}
-- 
2.47.1


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

end of thread, other threads:[~2025-03-06 13:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06  5:54 [PATCH] drm/xe: fix enable survivability mode Riana Tauro
2025-03-06  5:37 ` ✓ CI.Patch_applied: success for " Patchwork
2025-03-06  5:37 ` ✓ CI.checkpatch: " Patchwork
2025-03-06  5:39 ` ✓ CI.KUnit: " Patchwork
2025-03-06  5:55 ` ✓ CI.Build: " Patchwork
2025-03-06  5:57 ` ✓ CI.Hooks: " Patchwork
2025-03-06  5:59 ` ✓ CI.checksparse: " Patchwork
2025-03-06  6:04 ` [PATCH] " Lucas De Marchi
2025-03-06  6:05   ` Lucas De Marchi
2025-03-06 11:00     ` Francois Dugast
2025-03-06  7:43   ` Riana Tauro
2025-03-06  6:20 ` ✓ Xe.CI.BAT: success for " Patchwork
2025-03-06 13:15 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox