提交 1ea6c1e8 编写于 作者: R Rex Zhu 提交者: Alex Deucher

drm/amd/powerplay: check whether enable dpm in powerplay.

Change-Id: I0a2dbf8ef7d4a3e9788fe211fc5964dd2487c519
Signed-off-by: NRex Zhu <Rex.Zhu@amd.com>
上级 7ad4e7f0
......@@ -145,8 +145,11 @@ static int amdgpu_pp_sw_init(void *handle)
#ifdef CONFIG_DRM_AMD_POWERPLAY
if (adev->pp_enabled) {
adev->pm.dpm_enabled = true;
amdgpu_pm_sysfs_init(adev);
if (amdgpu_dpm == 0)
adev->pm.dpm_enabled = false;
else
adev->pm.dpm_enabled = true;
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册