]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Prevent PSR from being enabled if initialization fails
authorAnthony Koo <Anthony.Koo@amd.com>
Tue, 17 Jul 2018 13:43:44 +0000 (09:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jul 2018 14:07:43 +0000 (09:07 -0500)
commitd7b34655e8125384187deaf65624ca49d6b15ef3
tree8cfa1983a882dd61e27a030868598ab5beb5537e
parent23ecb76e7638600af3edd5fed2ea76486dde3ca1
drm/amd/display: Prevent PSR from being enabled if initialization fails

[Why]
PSR_SET command is sent to the microcontroller in order to initialize
parameters needed for PSR feature, such as telling the microcontroller
which pipe is driving the PSR supported panel. When this command is
skipped or fails, the microcontroller may program the wrong thing if
driver tries to enable PSR.

[How]
If PSR_SET fails, do not set psr_enable flag to indicate the feature is
not yet initialized.

Signed-off-by: Anthony Koo <Anthony.Koo@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c
drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h