From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 890115158B7; Wed, 30 Sep 2026 16:59:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790787594; cv=none; b=LCFrXHntkxlWDTPThkFaButK8+nRr3NSDkANv4mflrR73Xqo61wWswywcTZvQhKmEJGb6vL1E/upTnT6PTBkpQGpKO5ECZhcvmAGrwZ7/NsH/Jux1gGwaoyyOLpIK3c8NLf9j5EODrRaNwNo50XZWMTKomyiUSRuI4hgmPBgTUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790787594; c=relaxed/simple; bh=Ui8BT0Tpj6tQ+uFfeeHZw/24oTz5r1vgPIuA+dOOcj8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lieGymrmkNTyt3qD/ns+OIM5+dlJ5gnHKofSztA0x0Q3FoGRe69VFckMhrPgBIFexYN4tkWDscIuFGjt6F/Xo8XHYbfCNnQAPnI620cCClMjhvR/tbuQY16TNTygEIUu4VEShqxUKzAqSnI22jfkLKb4JEw75RgU9My9TJv9wL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=s4reWgHo; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="s4reWgHo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4EBC1F000FF; Wed, 30 Sep 2026 16:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790787593; bh=z+2saDFLUwz7IWNVs5aE+bF9VnHNS0XchD1ArMWshZc=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=s4reWgHoFu+4p7YDP4dfEquH+Xhpt7MMrHkCa1//hzoaeOW9wlB4UikH2Wx+H0NBh hFBIrxSuwilLLdXEBg26urZWgSfSouav590Cqt1CyV+OqFyWVystCmDhYXYJXyXogm BwO0X+hmqp4KlWJd35p76LEmx5zS4n7Pm/ikCuLI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ivan Lipski , Alex Deucher Subject: [PATCH 7.2 284/457] drm/amd/display: Bump frame warning limit for clang builds of dml Date: Wed, 30 Sep 2026 17:26:29 +0200 Message-ID: <20260930152352.163200650@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152346.024115587@linuxfoundation.org> References: <20260930152346.024115587@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.2-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ivan Lipski commit 18779dd84515db093fedb4ebaf0998c9b165a5fb upstream. [Why&How] When building the DML files with clang without any sanitizer or LTO, the following -Wframe-larger-than errors break the build under CONFIG_WERROR: display_mode_vba_30.c: error: stack frame size (2512) exceeds limit (2048) in 'dml30_ModeSupportAndSystemConfigurationFull' display_mode_vba_31.c: error: stack frame size (2416) exceeds limit (2048) in 'dml31_ModeSupportAndSystemConfigurationFull' display_mode_vba_314.c: error: stack frame size (2392) exceeds limit (2048) in 'dml314_ModeSupportAndSystemConfigurationFull' Clang consistently spills more than gcc, pushing the frame past the 2048 byte limit. Apply an existing approach of increasing the warn stack size to the non-sanitizer path so plain clang builds use a 3072 byte limit. Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5642 Signed-off-by: Ivan Lipski Signed-off-by: Alex Deucher (cherry picked from commit 21711b6e66bb7b41b1aec67b2d99aafe768c8fcb) Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/dml/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -36,7 +36,11 @@ ifneq ($(CONFIG_FRAME_WARN),0) frame_warn_limit := 3072 endif else - frame_warn_limit := 2048 + ifeq ($(CONFIG_CC_IS_CLANG),y) + frame_warn_limit := 3072 + else + frame_warn_limit := 2048 + endif endif ifeq ($(call test-lt, $(CONFIG_FRAME_WARN), $(frame_warn_limit)),y)