drm/amd/display: Align static screen idle worker with IPX mode
authorRoman Li <Roman.Li@amd.com>
Thu, 26 Sep 2024 20:36:15 +0000 (16:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 7 Oct 2024 18:16:19 +0000 (14:16 -0400)
commit442702b490246df4b926fa36bac09193b231f100
treea83069eb933515daaf26a08fb6e145bd67d26f67
parente982310c9ce074e428abc260dc3cba1b1ea62b78
drm/amd/display: Align static screen idle worker with IPX mode

[Why]
Idle worker thread serves for periodic detection of HPD while system is in IPS2.
Currently it is used in headless and static screen scenarios.
IPX can be configured not to execute IPS2 for static screen.
In this case idle worker is redundant.

[How]
Only use periodic detection for static screen if IPS is fully enabled.

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c