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 <sunpeng.li@amd.com> Reviewed-by: Roman Li <roman.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 181db30) Cc: stable@vger.kernel.org
1 parent 05af800 commit ef785ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)