drm/amd/display: Enable PSR Residency for multiple panels
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 19 May 2021 21:32:16 +0000 (17:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:20:20 +0000 (12:20 -0400)
commit74b4afad00dd70ee77ce2f3d31d6700f4dfb15ef
tree41d324331f871718a45edec867150a576879e444
parent5c69cc559afb76b729478c7abae8e27bfc401442
drm/amd/display: Enable PSR Residency for multiple panels

[why]
Allow specifying which panel to take PSR Residency
measurements from.
[how]
Pass panel instance to DMUB through GPINT in the upper
8 bits of the parameter.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@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/core/dc_link.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h