drm/amd/display: Add psr get_state call
authorWyatt Wood <wyatt.wood@amd.com>
Mon, 20 Jan 2020 20:52:44 +0000 (15:52 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Feb 2020 16:50:55 +0000 (11:50 -0500)
commit115c7e7f0501716c05d2df5b1b9e06df9241a48c
tree16e15280be50288aab5014a7af78340edadd481c
parent71bbb1fcb1920347b87a7b24efe754769fc5924c
drm/amd/display: Add psr get_state call

[Why]
Driver needs to know PSR state.

[How]
Use GPINT to call to firmware and get psr state.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h