mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 03:31:04 -04:00
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>
This commit is contained in:
@@ -154,6 +154,7 @@ static void amdgpu_dm_crtc_set_panel_sr_feature(
|
||||
|
||||
amdgpu_dm_psr_enable(vblank_work->stream);
|
||||
if (dm->idle_workqueue &&
|
||||
(dm->dc->config.disable_ips == DMUB_IPS_ENABLE) &&
|
||||
dm->dc->idle_optimizations_allowed &&
|
||||
dm->idle_workqueue->enable &&
|
||||
!dm->idle_workqueue->running)
|
||||
|
||||
Reference in New Issue
Block a user