diff options
author | Duncan Ma <duncan.ma@amd.com> | 2023-08-16 19:28:05 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-09-20 23:24:08 +0300 |
commit | dc01c4b79bfe052ef0f9624b5e6ea9b05347f5f0 (patch) | |
tree | f66afb27b8da30cd7661a54a008b04049f72132d /drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | |
parent | 4f43d753bf9c709ff771eb6dff76269e657555a6 (diff) | |
download | linux-dc01c4b79bfe052ef0f9624b5e6ea9b05347f5f0.tar.xz |
drm/amd/display: Update driver and IPS interop
[Why]
Two issues fixed:
1. Currently, driver does not allow idle prior to PSR entry. Once
PSR1+IPS is enabled, there is intermittent hang due to DCN access
from IrqMgr during IPS2.
2. Driver is sending multiple commands to PMFW and dmcub to exit IPS
even during IPS0.
[How]
1. Set driver allow optimization prior to entering PSR mode with the
condition for eDP display only. Unregister all interrupts before
allowing driver idle and re-register interrupts when exiting from
idle. This will prevent IrqMgr to access DCN during IPS2.
2. Block sending PMFW and dmcub exit low power state commands when
driver is not in idle state.
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Jun Lei <jun.lei@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Duncan Ma <duncan.ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c index 2f98dfa06dad..91b3a4610957 100644 --- a/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +++ b/drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c @@ -1110,6 +1110,10 @@ void dc_dmub_srv_exit_low_power_state(const struct dc *dc) { if (dc->debug.dmcub_emulation) return; + + if (!dc->idle_optimizations_allowed) + return; + // Tell PMFW to exit low power state if (dc->clk_mgr->funcs->exit_low_power_state) dc->clk_mgr->funcs->exit_low_power_state(dc->clk_mgr); |