]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: Don't skip clock updates in overclocking
authorAlvin Lee <Alvin.Lee2@amd.com>
Thu, 20 Jun 2024 18:32:21 +0000 (14:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Aug 2024 21:51:44 +0000 (17:51 -0400)
[Description]
Skipping clock updates is not a hard requirement for overclocking
and only an optimization. Remove the skip as this can cause issues
for FAMS transitions during the overclock sequence. If FAMS
is enabled we must disable UCLK switch on any full update (which
requires update clocks to be called).

Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Alvin Lee <Alvin.Lee2@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@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/clk_mgr/dcn401/dcn401_clk_mgr.c

index 01ea3a31e54da64f1b8d735970e9be53b93c8609..8cfc5f4359374d1d93b5b66405d2c71f630fcc0c 100644 (file)
@@ -1366,9 +1366,6 @@ static void dcn401_update_clocks(struct clk_mgr *clk_mgr_base,
 
        unsigned int num_steps = 0;
 
-       if (dc->work_arounds.skip_clock_update)
-               return;
-
        if (dc->debug.enable_legacy_clock_update) {
                dcn401_update_clocks_legacy(clk_mgr_base, context, safe_to_lower);
                return;