aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2022-08-30 20:34:07 +0000
committerAlex Deucher <[email protected]>2022-09-13 18:33:01 +0000
commitab2ac59c32dbec068954de30eda741d012be3c74 (patch)
tree12fd3dfd1d3eaa167ac7c8156a846fccb6c8a107 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amd/display: Reduce number of arguments of dml32_CalculatePrefetchSchedule() (diff)
downloadkernel-ab2ac59c32dbec068954de30eda741d012be3c74.tar.gz
kernel-ab2ac59c32dbec068954de30eda741d012be3c74.zip
drm/amd/display: Reduce number of arguments of dml31's CalculateWatermarksAndDRAMSpeedChangeSupport()
Most of the arguments are identical between the two call sites and they can be accessed through the 'struct vba_vars_st' pointer. This reduces the total amount of stack space that dml31_ModeSupportAndSystemConfigurationFull() uses by 240 bytes with LLVM 16 (2216 -> 1976), helping clear up the following clang warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/display_mode_vba_31.c:3908:6: error: stack frame size (2216) exceeds limit (2048) in 'dml31_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] void dml31_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) ^ 1 error generated. Link: https://github.com/ClangBuiltLinux/linux/issues/1681 Reported-by: "Sudip Mukherjee (Codethink)" <[email protected]> Tested-by: MaĆ­ra Canal <[email protected]> Reviewed-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Nathan Chancellor <[email protected]> Signed-off-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions