Skip to content

Commit

Permalink
drm/amd/display: Move Mode Support Prefetch Checks To Its Own Function
Browse files Browse the repository at this point in the history
[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>
  • Loading branch information
Austin Zheng authored and Alex Deucher committed Apr 21, 2025
1 parent 0518581 commit 8fc3959
Showing 1 changed file with 642 additions and 635 deletions.
Loading

0 comments on commit 8fc3959

Please sign in to comment.