[PATCH 14/32] drm/amd/display: Updated optc401_set_drr to use dcn401 functions
Zaeem Mohamed
zaeem.mohamed at amd.com
Fri May 31 16:51:27 UTC 2024
From: Relja Vojvodic <relja.vojvodic at amd.com>
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 at amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed at amd.com>
Signed-off-by: Relja Vojvodic <relja.vojvodic at amd.com>
---
drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c b/drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c
index 8ab788b6e6c1..fd1c8b45c40e 100644
--- a/drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c
+++ b/drivers/gpu/drm/amd/display/dc/optc/dcn401/dcn401_optc.c
@@ -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,
--
2.34.1
More information about the amd-gfx
mailing list