drm/amd/display: Allow IPS2 during Replay
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Thu, 7 Dec 2023 19:12:03 +0000 (14:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 15 Jan 2024 23:35:37 +0000 (18:35 -0500)
commitac9c748362fd8d4c678de5a411e5df376f2d1de9
tree2de1059c436e4d3cc6f5445b597878dab4494732
parent166225e79ccc3d02c4c46e1b3c09d03eb91473ca
drm/amd/display: Allow IPS2 during Replay

[Why & How]
Add regkey to block video playback in IPS2 by default

Allow idle optimizations in the same spot we allow Replay for
video playback usecases.

Avoid sending it when there's an external display connected by
modifying the allow idle checks to check for active non-eDP screens.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@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
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/hwss/dcn35/dcn35_hwseq.c