[PATCH v2 2/2] drm/xe/pm: Wait for vram ready in resume

Karthik Poosa karthik.poosa at intel.com
Thu May 8 09:08:16 UTC 2025


Add wait for vram ready during system and runtime resume.
This wait is there in probe and is missing during resume.
While there are no issues today without this check, it's
a prudent measure to prevent any future issues.

v2:
 - Use xe_device_wait_for_vram_ready function.
 - Improve commit message. (Lucas)

Signed-off-by: Karthik Poosa <karthik.poosa at intel.com>
---
 drivers/gpu/drm/xe/xe_pm.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index 693866def183..5aa7b006b50d 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -181,6 +181,10 @@ int xe_pm_resume(struct xe_device *xe)
 	if (err)
 		return err;
 
+	err = xe_device_wait_for_vram_ready(xe);
+	if (err)
+		goto err;
+
 	xe_display_pm_resume_early(xe);
 
 	/*
@@ -524,6 +528,10 @@ int xe_pm_runtime_resume(struct xe_device *xe)
 		if (err)
 			goto out;
 
+		err = xe_device_wait_for_vram_ready(xe);
+		if (err)
+			goto out;
+
 		xe_display_pm_resume_early(xe);
 
 		/*
-- 
2.25.1



More information about the Intel-xe mailing list