Commit a32d82b4 authored by Rodrigo Vivi's avatar Rodrigo Vivi

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 <anshuman.gupta@intel.com>
Reviewed-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent bba2ec41
...@@ -141,10 +141,12 @@ void xe_pm_init(struct xe_device *xe) ...@@ -141,10 +141,12 @@ void xe_pm_init(struct xe_device *xe)
struct pci_dev *pdev = to_pci_dev(xe->drm.dev); struct pci_dev *pdev = to_pci_dev(xe->drm.dev);
drmm_mutex_init(&xe->drm, &xe->d3cold.lock); drmm_mutex_init(&xe->drm, &xe->d3cold.lock);
xe_pm_runtime_init(xe);
xe->d3cold.capable = xe_pm_pci_d3cold_capable(pdev); xe->d3cold.capable = xe_pm_pci_d3cold_capable(pdev);
xe_device_sysfs_init(xe); xe_device_sysfs_init(xe);
xe_pm_set_vram_threshold(xe, DEFAULT_VRAM_THRESHOLD); xe_pm_set_vram_threshold(xe, DEFAULT_VRAM_THRESHOLD);
xe_pm_runtime_init(xe);
} }
void xe_pm_runtime_fini(struct xe_device *xe) void xe_pm_runtime_fini(struct xe_device *xe)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment