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: Tom Chung <chiahsuan.chung@amd.com> Reviewed-by: Sun peng Li <sunpeng.li@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -590,6 +590,7 @@ enum dc_psr_state {
|
||||
PSR_STATE5c,
|
||||
PSR_STATE_HWLOCK_MGR,
|
||||
PSR_STATE_POLLVUPDATE,
|
||||
PSR_STATE_RELEASE_HWLOCK_MGR_FULL_FRAME,
|
||||
PSR_STATE_INVALID = 0xFF
|
||||
};
|
||||
|
||||
|
||||
@@ -94,6 +94,8 @@ static enum dc_psr_state convert_psr_state(uint32_t raw_state)
|
||||
state = PSR_STATE_HWLOCK_MGR;
|
||||
else if (raw_state == 0x61)
|
||||
state = PSR_STATE_POLLVUPDATE;
|
||||
else if (raw_state == 0x62)
|
||||
state = PSR_STATE_RELEASE_HWLOCK_MGR_FULL_FRAME;
|
||||
else
|
||||
state = PSR_STATE_INVALID;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user