]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Move Mode Support Prefetch Checks To Its Own Function
authorAustin Zheng <Austin.Zheng@amd.com>
Tue, 1 Apr 2025 18:38:31 +0000 (14:38 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 21 Apr 2025 15:27:39 +0000 (11:27 -0400)
commit8fc3959cd4da33d703ceb1166830407b673d8a78
tree63c78c0ff1f79dc087f9f79d3c5ffa1e01e0cfad
parent05185812ae3695fe049c14847ce3cbeccff1bf2e
drm/amd/display: Move Mode Support Prefetch Checks To Its Own Function

[Why]
Large stack size observed in DCN4 mode support when compiling with clang.
Additional instrumentation added by compiler adds to stack size.
dml_core_mode_support ends up going over the stack size limit
due to the size of the function.

[How]
Move checks and calculations for prefetch to its own function.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Austin Zheng <Austin.Zheng@amd.com>
Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c