Skip to content

Commit 0bbf06d

Browse files
Aurabindo Pillaialexdeucher
authored andcommitted
drm/amd/display: Update number of DCN3 clock states
[Why & How] The DCN3 SoC parameter num_states was calculated but not saved into the object. Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1403 Cc: [email protected] Signed-off-by: Aurabindo Pillai <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 192fb63 commit 0bbf06d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/amd/display/dc/dcn30/dcn30_resource.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,7 @@ void dcn30_update_bw_bounding_box(struct dc *dc, struct clk_bw_params *bw_params
24672467
dram_speed_mts[num_states++] = bw_params->clk_table.entries[j++].memclk_mhz * 16;
24682468
}
24692469

2470+
dcn3_0_soc.num_states = num_states;
24702471
for (i = 0; i < dcn3_0_soc.num_states; i++) {
24712472
dcn3_0_soc.clock_limits[i].state = i;
24722473
dcn3_0_soc.clock_limits[i].dcfclk_mhz = dcfclk_mhz[i];

0 commit comments

Comments
 (0)