drm/amd/display: Fix index may exceed array range within fpu_update_bw_bounding_box[Why]Coverity reports OVERRUN warning. soc.num_states couldbe 40. But array range of bw_params->clk_table.entrie
drm/amd/display: Fix index may exceed array range within fpu_update_bw_bounding_box[Why]Coverity reports OVERRUN warning. soc.num_states couldbe 40. But array range of bw_params->clk_table.entries is 8.[How]Assert if soc.num_states greater than 8.Reviewed-by: Alex Hung <[email protected]>Acked-by: Tom Chung <[email protected]>Signed-off-by: Hersen Wu <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
show more ...
drm/amd/display: Ensure populate uclk in bb construction[Description]- For some SKUs, the optimal DCFCLK for each UCLK is less than the smallest DCFCLK STA target due to low memory bandwidth. Th
drm/amd/display: Ensure populate uclk in bb construction[Description]- For some SKUs, the optimal DCFCLK for each UCLK is less than the smallest DCFCLK STA target due to low memory bandwidth. There is an assumption that the DCFCLK STA targets will always be less than one of the optimal DCFCLK values, but this is not true for SKUs that have low memory bandwidth. In this case we need to populate the optimal UCLK for each DCFCLK STA targets as the max UCLK freq.- Also fix a bug in DML where start_state is not assigned and used correctly.Reviewed-by: Samson Tam <[email protected]>Reviewed-by: Chaitanya Dhere <[email protected]>Acked-by: Alex Hung <[email protected]>Signed-off-by: Alvin Lee <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: Clean up some inconsistent indentingNo functional modification involved.smatch warnings:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn303/dcn303_fpu.c:205 dcn303_fpu_update_b
drm/amd/display: Clean up some inconsistent indentingNo functional modification involved.smatch warnings:drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn303/dcn303_fpu.c:205 dcn303_fpu_update_bw_bounding_box() warn: inconsistent indenting.drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn303/dcn303_fpu.c:355 dcn303_fpu_init_soc_bounding_box() warn: inconsistent indenting.Reported-by: Abaci Robot <[email protected]>Signed-off-by: Jiapeng Chong <[email protected]>Signed-off-by: Alex Deucher <[email protected]>
drm/amd/display: move FPU associated DCN303 code to DML folder[Why & How]As part of the FPU isolation work documented inhttps://patchwork.freedesktop.org/series/93042/, isolatecode that uses FPU
drm/amd/display: move FPU associated DCN303 code to DML folder[Why & How]As part of the FPU isolation work documented inhttps://patchwork.freedesktop.org/series/93042/, isolatecode that uses FPU in DCN303 to DML, where all FPU codeshould locate.Co-authored-by: Jasdeep Dhillon <[email protected]>Reviewed-by: Rodrigo Siqueira <[email protected]>Acked-by: Alan Liu <[email protected]>Signed-off-by: Jasdeep Dhillon <[email protected]>Tested-by: Daniel Wheeler <[email protected]>Signed-off-by: Alex Deucher <[email protected]>