drm/amd/display: Add check for headless for idle optimization
authorRoman Li <Roman.Li@amd.com>
Mon, 30 Sep 2024 22:18:35 +0000 (18:18 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Oct 2024 15:23:05 +0000 (11:23 -0400)
commitf79f4dd6001acd1e6ea6aae8e219060a566409b2
treedae026f972c1d891bf6016b290910b253123a6e0
parent60612f75992d96955fb7154468c58d5d168cf1ab
drm/amd/display: Add check for headless for idle optimization

[Why]
Currently idle worker thread that checks for HPD while system is in IPS2
only supports headless and static screen use-cases.
In other display-off scenarios hotplug may not work.

[How]
For display-off only allow idle optimization when no display is connected.

Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Roman Li <Roman.Li@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.c