mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-09 08:02:05 +00:00
drm/amdgpu: check dpm state before pm system fs initialized.
Make sure powerplay initialized properly before enabling debugfs pm files. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed- by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
4cd05a74cc
commit
5349ece706
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ static int amdgpu_pp_late_init(void *handle)
|
||||||
adev->powerplay.pp_handle);
|
adev->powerplay.pp_handle);
|
||||||
|
|
||||||
#ifdef CONFIG_DRM_AMD_POWERPLAY
|
#ifdef CONFIG_DRM_AMD_POWERPLAY
|
||||||
if (adev->pp_enabled) {
|
if (adev->pp_enabled && adev->pm.dpm_enabled) {
|
||||||
amdgpu_pm_sysfs_init(adev);
|
amdgpu_pm_sysfs_init(adev);
|
||||||
amdgpu_dpm_dispatch_task(adev, AMD_PP_EVENT_COMPLETE_INIT, NULL, NULL);
|
amdgpu_dpm_dispatch_task(adev, AMD_PP_EVENT_COMPLETE_INIT, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue