Commit 4981bd47 authored by Tom Chung's avatar Tom Chung Committed by Alex Deucher

drm/amd/display: Add a missing PSR state

[Why & How]
Add a missing PSR state to make the dmub_psr_get_state() return a
correct PSR state.
Signed-off-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Reviewed-by: default avatarSun peng Li <sunpeng.li@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarRodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 093b79d0
...@@ -590,6 +590,7 @@ enum dc_psr_state { ...@@ -590,6 +590,7 @@ enum dc_psr_state {
PSR_STATE5c, PSR_STATE5c,
PSR_STATE_HWLOCK_MGR, PSR_STATE_HWLOCK_MGR,
PSR_STATE_POLLVUPDATE, PSR_STATE_POLLVUPDATE,
PSR_STATE_RELEASE_HWLOCK_MGR_FULL_FRAME,
PSR_STATE_INVALID = 0xFF PSR_STATE_INVALID = 0xFF
}; };
......
...@@ -94,6 +94,8 @@ static enum dc_psr_state convert_psr_state(uint32_t raw_state) ...@@ -94,6 +94,8 @@ static enum dc_psr_state convert_psr_state(uint32_t raw_state)
state = PSR_STATE_HWLOCK_MGR; state = PSR_STATE_HWLOCK_MGR;
else if (raw_state == 0x61) else if (raw_state == 0x61)
state = PSR_STATE_POLLVUPDATE; state = PSR_STATE_POLLVUPDATE;
else if (raw_state == 0x62)
state = PSR_STATE_RELEASE_HWLOCK_MGR_FULL_FRAME;
else else
state = PSR_STATE_INVALID; state = PSR_STATE_INVALID;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment