]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/amd/display: Fix PSR command version passed
authorMikita Lipski <mikita.lipski@amd.com>
Tue, 2 Apr 2024 23:22:42 +0000 (17:22 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Apr 2024 01:27:01 +0000 (21:27 -0400)
commit53ec5cc44b8e877454bde5522302252832715f8c
treead948f568f58058dfe4f9d5b6992616297741fd8
parent838a59cae36f2bbf4d444270ca407f9e24458517
drm/amd/display: Fix PSR command version passed

[why]
Driver was passing a wrong command version which to DMCUB which caused
the DMCUB to treat it as 0, so it wouldn't support dual eDP and would
override the panel index to 0 instead of choosing between 0/1.

[how]
Use DMUB_CMD_PSR_CONTROL_VERSION_1 instead of PSR_VERSION_1.

Reviewed-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@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.c