1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/dc/dml
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
..
calcs drm/amd/display: Optimizations for DML math 2022-09-13 14:32:59 -04:00
dcn10 drm/amd/display: move FPU code from dcn10 to dml/dcn10 folder 2022-03-15 14:25:16 -04:00
dcn20 drm/amd/display: Optimizations for DML math 2022-09-13 14:32:59 -04:00
dcn21 drm/amd/display: clean up some inconsistent indentings 2022-09-19 15:08:06 -04:00
dcn30 drm/amd/display: Mark dml30's UseMinimumDCFCLK() as noinline for stack usage 2022-09-13 14:33:01 -04:00
dcn31 drm/amd/display: fix dcn315 memory channel count and width read 2022-09-19 15:09:44 -04:00
dcn32 drm/amd/display: Do second pass through DML for DET calculation 2022-09-19 15:16:39 -04:00
dcn301 drm/amd/display: add debug option for dramclk_change_latency in apu 2022-09-19 15:09:05 -04:00
dcn302 drm/amd/display: move FPU associated DCN302 code to DML folder (#2266) 2022-01-18 17:42:26 -05:00
dcn303 drm/amd/display: Clean up some inconsistent indenting 2022-07-28 16:05:16 -04:00
dcn314 drm/amd/display: Reduce number of arguments of dml314's CalculateFlipSchedule() 2022-09-20 12:42:32 -04:00
dcn321 drm/amd/display: Fix urgent latency override for DCN32/DCN321 2022-09-19 15:13:37 -04:00
dsc drm/display: Move DSC header and helpers into display-helper module 2022-04-25 11:19:36 +02:00
dc_features.h drm/amd/display: Extend soc BB capabilitiy 2022-06-07 16:09:57 -04:00
display_mode_enums.h drm/amd/display: DML changes for DCN32/321 2022-06-03 16:43:37 -04:00
display_mode_lib.c drm/amd/display: Hook up DCN314 specific dml implementation 2022-09-13 14:32:59 -04:00
display_mode_lib.h drm/amd/display: Hook up DCN314 specific dml implementation 2022-09-13 14:32:59 -04:00
display_mode_structs.h drm/amd/display: Modify DML to adjust Vstartup Position 2022-09-19 15:16:19 -04:00
display_mode_vba.c drm/amd/display: Modify DML to adjust Vstartup Position 2022-09-19 15:16:19 -04:00
display_mode_vba.h drm/amd/display: Fix divide by zero in DML 2022-09-13 14:32:59 -04:00
display_rq_dlg_helpers.c drm/amdgpu/display: Remove t_srx_delay_us. 2022-01-27 15:47:34 -05:00
display_rq_dlg_helpers.h drm/amd/display: Pass all structs in display_rq_dlg_helpers by pointer 2021-09-23 15:17:29 -04:00
dml1_display_rq_dlg_calc.c drm/amdgpu/display: Remove t_srx_delay_us. 2022-01-27 15:47:34 -05:00
dml1_display_rq_dlg_calc.h drm/amd/display: Fix rest of pass-by-value structs in DML 2021-09-23 15:17:30 -04:00
dml_inline_defs.h drm/amd/display: Optimizations for DML math 2022-09-13 14:32:59 -04:00
dml_logger.h drm/amd/display: Use MACROS instead of dm_logger 2018-03-14 15:08:45 -05:00
Makefile drm/amd/display: Enable dlg and vba compilation for dcn314 2022-09-13 14:32:59 -04:00