From 948aa13bbeb43b3176ac087a736a57d322ffa0d7 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 3 Oct 2022 11:59:53 +0000 Subject: [PATCH] drm/amd/display: Mark dml30's UseMinimumDCFCLK() as noinline for stack usage From Nathan Chancellor 1c26968caf181add92bbf556e3eb3c14ccbe7fa2 in linux 5.15.y/5.15.71 41012d715d5d7b9751ae84b8fb255e404ac9c5d0 in mainline linux --- sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c b/sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c index 9964b5b09d0..43b6c69252c 100644 --- a/sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +++ b/sys/dev/pci/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c @@ -6660,8 +6660,7 @@ static double CalculateUrgentLatency( return ret; } - -static void UseMinimumDCFCLK( +static noinline_for_stack void UseMinimumDCFCLK( struct display_mode_lib *mode_lib, int MaxInterDCNTileRepeaters, int MaxPrefetchMode, -- 2.20.1