drm/amd/display: feed PSR-SU as psr version to dmub FW
authorDavid Zhang <dingchen.zhang@amd.com>
Tue, 3 May 2022 22:36:28 +0000 (18:36 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 Jun 2022 18:40:32 +0000 (14:40 -0400)
[why & how]
set psr version as PSR-SU in kernel-FW interface function to ensure
the correct dmub command parameter is fed into FW.

Signed-off-by: David Zhang <dingchen.zhang@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c

index 1d4f0c4..f1411a2 100644 (file)
@@ -133,6 +133,9 @@ static bool dmub_psr_set_version(struct dmub_psr *dmub, struct dc_stream_state *
        case DC_PSR_VERSION_1:
                cmd.psr_set_version.psr_set_version_data.version = PSR_VERSION_1;
                break;
+       case DC_PSR_VERSION_SU_1:
+               cmd.psr_set_version.psr_set_version_data.version = PSR_VERSION_SU_1;
+               break;
        case DC_PSR_VERSION_UNSUPPORTED:
        default:
                cmd.psr_set_version.psr_set_version_data.version = PSR_VERSION_UNSUPPORTED;