aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Vivi <[email protected]>2023-07-25 18:11:58 -0400
committerRodrigo Vivi <[email protected]>2023-12-21 11:39:16 -0500
commita32d82b4cfd63a9bc198bd9faa54844b8d04c5d3 (patch)
treef63a118fab8fdac6c52fa4d91288ded08a0d37c9
parentbba2ec4144f5a7683d9a26cafffca6031361ee66 (diff)
drm/xe: Only init runtime PM after all d3cold config is in place.
We cannot allow runtime pm suspend after we configured the d3cold capable and threshold. Cc: Anshuman Gupta <[email protected]> Reviewed-by: Anshuman Gupta <[email protected]> Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r--drivers/gpu/drm/xe/xe_pm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_pm.c b/drivers/gpu/drm/xe/xe_pm.c
index 310e413c91a4..a20a2fb34a7d 100644
--- a/drivers/gpu/drm/xe/xe_pm.c
+++ b/drivers/gpu/drm/xe/xe_pm.c
@@ -141,10 +141,12 @@ void xe_pm_init(struct xe_device *xe)
struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
drmm_mutex_init(&xe->drm, &xe->d3cold.lock);
- xe_pm_runtime_init(xe);
+
xe->d3cold.capable = xe_pm_pci_d3cold_capable(pdev);
xe_device_sysfs_init(xe);
xe_pm_set_vram_threshold(xe, DEFAULT_VRAM_THRESHOLD);
+
+ xe_pm_runtime_init(xe);
}
void xe_pm_runtime_fini(struct xe_device *xe)