]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Increase frame size limit for display_mode_vba_util_32.o
authorGuenter Roeck <linux@roeck-us.net>
Thu, 13 Oct 2022 18:25:23 +0000 (11:25 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Oct 2022 02:13:03 +0000 (22:13 -0400)
commitf3e35fe78ec42627087bfe4746b834d8da52db3d
treea102a13efdba253e726c04e92a6d0b2111fc02bf
parentcee795b93b22e79918bbf8cd2b3f1604e6628e81
drm/amd/display: Increase frame size limit for display_mode_vba_util_32.o

Building 32-bit images may fail with the following error.

drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:
In function ‘dml32_UseMinimumDCFCLK’:
drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_util_32.c:3142:1:
error: the frame size of 1096 bytes is larger than 1024 bytes

This is seen when building i386:allmodconfig with any of the following
compilers.

gcc (Debian 12.2.0-3) 12.2.0
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

The problem is not seen if the compiler supports GCC_PLUGIN_LATENT_ENTROPY
because in that case CONFIG_FRAME_WARN is already set to 2048 even for
32-bit builds.

dml32_UseMinimumDCFCLK() was introduced with commit 74ab93a2ce7f
("drm/amd/display: DML changes for DCN32/321"). It declares a large
number of local variables. Increase the frame size for the affected
file to 2048, similar to other files in the same directory, to enable
32-bit build tests with affected compilers.

Fixes: 74ab93a2ce7f ("drm/amd/display: DML changes for DCN32/321")
Cc: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reported-by: Łukasz Bartosik <ukaszb@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/Makefile