]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Updated optc401_set_drr to use dcn401 functions
authorRelja Vojvodic <relja.vojvodic@amd.com>
Wed, 15 May 2024 18:15:48 +0000 (14:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 5 Jun 2024 15:25:13 +0000 (11:25 -0400)
why:
optc_401_set_drr was using an old optc3 function to update vtotal min and max,
causing crashes when disabling FAMS2

how:
Updated dcn401 to point to opt401 function for vtotal updates. This version of
the function has FAMS2 logic that allows for FAMS2 to be disabled.

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Relja Vojvodic <relja.vojvodic@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/optc/dcn401/dcn401_optc.c

index 8ab788b6e6c1dd7128eb33c3ec41a143d82547e5..fd1c8b45c40e8f23e0c3d3e9996f0726dce84fcb 100644 (file)
@@ -430,7 +430,7 @@ static struct timing_generator_funcs dcn401_tg_funcs = {
                .enable_optc_clock = optc1_enable_optc_clock,
                .set_drr = optc401_set_drr,
                .get_last_used_drr_vtotal = optc2_get_last_used_drr_vtotal,
-               .set_vtotal_min_max = optc3_set_vtotal_min_max,
+               .set_vtotal_min_max = optc401_set_vtotal_min_max,
                .set_static_screen_control = optc1_set_static_screen_control,
                .program_stereo = optc1_program_stereo,
                .is_stereo_left_eye = optc1_is_stereo_left_eye,