Re: [PATCH] drm/tests: reduce drm_mm_test stack usage

2022-12-23 Thread Maíra Canal
On 12/15/22 13:34, Arnd Bergmann wrote: From: Arnd Bergmann The check_reserve_boundaries function uses a lot of kernel stack, and it gets inlined by clang, which makes __drm_test_mm_reserve use even more of it, to the point of hitting the warning limit: drivers/gpu/drm/tests/drm_mm_test.c:344:

Re: [PATCH] drm/tests: reduce drm_mm_test stack usage

2022-12-20 Thread Maíra Canal
On 12/15/22 13:34, Arnd Bergmann wrote: > From: Arnd Bergmann > > The check_reserve_boundaries function uses a lot of kernel stack, > and it gets inlined by clang, which makes __drm_test_mm_reserve > use even more of it, to the point of hitting the warning limit: > > drivers/gpu/drm/tests/drm_mm

Re: [PATCH] drm/tests: reduce drm_mm_test stack usage

2022-12-16 Thread Nathan Chancellor
On Thu, Dec 15, 2022 at 05:34:49PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > The check_reserve_boundaries function uses a lot of kernel stack, > and it gets inlined by clang, which makes __drm_test_mm_reserve > use even more of it, to the point of hitting the warning limit: > > drive

[PATCH] drm/tests: reduce drm_mm_test stack usage

2022-12-15 Thread Arnd Bergmann
From: Arnd Bergmann The check_reserve_boundaries function uses a lot of kernel stack, and it gets inlined by clang, which makes __drm_test_mm_reserve use even more of it, to the point of hitting the warning limit: drivers/gpu/drm/tests/drm_mm_test.c:344:12: error: stack frame size (1048) exceed