drm/amd/display: Add disable_ips_in_dpms_off flag for IPS
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tue, 12 Nov 2024 22:16:46 +0000 (17:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Dec 2024 15:26:48 +0000 (10:26 -0500)
commit7f81a80a6819959772d331314e7cf7891f08a875
tree82d683f2429b3fb6eea5ab7ff9730fb0dbe59e31
parent18509133862cc7d6e2cf6d186b870c97d1b04411
drm/amd/display: Add disable_ips_in_dpms_off flag for IPS

[WHY]
It's possible we still allow IPS2 when all streams are DPMS off but this
is unexpected.

[HOW]
Pass the DM config value into DC so it can use the pure stream count
to decide. We will be in 0 streams for S0i3 so this will still allow
it for D3.

Reviewed-by: Ovidiu Bunea <ovidiu.bunea@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c