Skip to content

Commit ef785ca

Browse files
leo-sunli1alexdeucher
authored andcommitted
drm/amd/display: Enable idle workqueue for more IPS modes
[Why] There are more IPS modes other than DMUB_IPS_ENABLE that enables IPS. We need to enable the hotplug detect idle workqueue for those modes as well. [How] Modify the if condition to initialize the workqueue in all IPS modes except for DMUB_IPS_DISABLE_ALL. Fixes: 6544458 ("drm/amd/display: Determine IPS mode by ASIC and PMFW versions") Signed-off-by: Leo Li <[email protected]> Reviewed-by: Roman Li <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]> (cherry picked from commit 181db30) Cc: [email protected]
1 parent 05af800 commit ef785ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
20262026
DRM_ERROR("amdgpu: failed to initialize vblank_workqueue.\n");
20272027
}
20282028

2029-
if (adev->dm.dc->caps.ips_support && adev->dm.dc->config.disable_ips == DMUB_IPS_ENABLE)
2029+
if (adev->dm.dc->caps.ips_support &&
2030+
adev->dm.dc->config.disable_ips != DMUB_IPS_DISABLE_ALL)
20302031
adev->dm.idle_workqueue = idle_create_workqueue(adev);
20312032

20322033
if (adev->dm.dc->caps.max_links > 0 && adev->family >= AMDGPU_FAMILY_RV) {

0 commit comments

Comments
 (0)