1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dml/dcn314
Nathan Chancellor 25ea501ed8 drm/amd/display: Reduce number of arguments of dml314's CalculateFlipSchedule()
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
dml314_ModeSupportAndSystemConfigurationFull() uses by 112 bytes with
LLVM 16 (1976 -> 1864), helping clear up the following clang warning:

  drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/display_mode_vba_314.c:4020:6: error: stack frame size (2216) exceeds limit (2048) in 'dml314_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than]
  void dml314_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib)
       ^
  1 error generated.

Link: https://github.com/ClangBuiltLinux/linux/issues/1710
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Tested-by: Maíra Canal <mairacanal@riseup.net>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2022-09-20 12:42:32 -04:00
..
dcn314_fpu.c drm/amd/display: Modify DML to adjust Vstartup Position 2022-09-19 15:16:19 -04:00
dcn314_fpu.h drm/amd/display: Move populate dml pipes from DCN314 to dml 2022-08-10 15:11:08 -04:00
display_mode_vba_314.c drm/amd/display: Reduce number of arguments of dml314's CalculateFlipSchedule() 2022-09-20 12:42:32 -04:00
display_mode_vba_314.h drm/amd/display: Add DCN314 DML calculation support 2022-07-13 20:57:04 -04:00
display_rq_dlg_calc_314.c drm/amd/display: Add DCN314 DML calculation support 2022-07-13 20:57:04 -04:00
display_rq_dlg_calc_314.h drm/amd/display: Add DCN314 DML calculation support 2022-07-13 20:57:04 -04:00