Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1900250lql; Wed, 13 Mar 2024 11:14:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXaCJEPOk/jcLVKYITeNCIvCdAHn1B92JCVfz+XmuR/Z7HaJaAe8Pd3FagNTRr/CQ4pqzwlg/McKZoocses509yK1G9qLpfzEXa+NYlRQ== X-Google-Smtp-Source: AGHT+IEJlxogI4jMAX9d+FrANQsCHfbfw2AaJLFkgMml5/GhMSyTTaw6QKiGJbd4kJJucHNxCfJH X-Received: by 2002:a17:907:a809:b0:a44:7bbe:d774 with SMTP id vo9-20020a170907a80900b00a447bbed774mr11279863ejc.9.1710353657550; Wed, 13 Mar 2024 11:14:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710353657; cv=pass; d=google.com; s=arc-20160816; b=SeTD2T6Fqs3oIRs06kpCLz8jF/oV6M0DBc3Zqk/3HdfTPnYhl3tvqEdYayNY2RuDZj jjM8GOnvxj3/cY9ex6bF18aAospKu1LayiKErUEDGjwuqIXWEJAVHbMFcw/AROyUWNGI SHCFGtp7B4F3+1ItNBYKHyhk7JCwA6wKwwGu1H15RV20DZMkKjzoACHbL7dGkIcU8ZTI WNfePpZ5NHhlhPFnc7smLwC+1j8kyWeaR0nPQM6RmOf8K+UlG8P/1nfZXJKMTN6FikXg KzDmxVUbcLbIqFretODZ/jyrr6BGc5ucGIa7AIlv6pAl83Bsi7u73zb1eBVlleXzJlMI paFw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nkorh3YaKDB12vwV7D7LnSvZbme3JuKIlDWyeH8/G4k=; fh=K95gI1sMXQn+komIOCP2yltzLZPM/4RCNf4Ztkx2R2Y=; b=GeSZA2oKf1jigirUfwiB2dxILM5Z2+B3ScgO3B81C1l6EzO7oCE4lyr1ePHXibxo/r klWnVrr6+IO1Z0BIvDf0WwLF/LRMe+jlYgPQZ53v5oTX+mOx+rc3s2mBvZ+4MMaDa1TS lVXoqNz8LXO5a4kKLCx4zcQtoD2BGkDLe/rhUBOvVuQfdKEtNX3rKZrNcxwbexAd8ZJ/ 1ZpNgfc786FGYcNBM5TeENdLjxN6Pz2vPPCMkfx74jYJS8OlIZzGTWgWWuQ9jQoVVlO6 eGQK6ZRp7lsJ0B6HEOV5du23uhVsFdNcxERKZifd+bB7q0AJb7cL04WLFhB0bQkExsp3 49Sg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2F7ZTtG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id x17-20020a1709064bd100b00a4666226cc8si289939ejv.644.2024.03.13.11.14.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Mar 2024 11:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b2F7ZTtG; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-102001-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 306FB1F2B6DD for ; Wed, 13 Mar 2024 17:36:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AAF2F14BD5F; Wed, 13 Mar 2024 16:43:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b2F7ZTtG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 A599814AD3F; Wed, 13 Mar 2024 16:43:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348213; cv=none; b=PD22/Bxi1/pZopX+hlZMXlM4i2bhXwTXx9a5KpNnP5HTtIvsdFV+psyA+yFmi4YBbtuMygDO6nfTIt7/KRrn8IZHKszwTSzMEoYpHAJsSX3QqnN+XWnoJbnDBvJY8jdr65fHm5KdzcoEBAy3pRvVM5IncUo52rqZ6kqqzLdkQIY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710348213; c=relaxed/simple; bh=xWXNefaQZBQdWGtaZwmaLJIxt24HwXX91agyZD8u11Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=NshoR0LX6sE239jYs90G58dpYi3G+ZFNWlBN+/JyhLwatBnyKVDAeI6poaH4cPBEMlsYlFVbzbS4VtcD1wIKPWJdHEUPlcvj5tg9OvvjFxp0bx+FOZH+7GBG8Em7fyhXOxIZCt4eGJkEtzkfGYjz5XzvdKLlTRnAR9H0siRs4lI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b2F7ZTtG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68672C433F1; Wed, 13 Mar 2024 16:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710348212; bh=xWXNefaQZBQdWGtaZwmaLJIxt24HwXX91agyZD8u11Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b2F7ZTtGXi1HXtMmTOeSQt0s8qJBdKMM2ygvyFkrDCDZccgClqFjImR91PBv5IFcT iaB6t4CkYUNl9Ywnu0AwkUJkD/AWnrlvmy2DGWKlu4Q3YgoiDW37HzxoTRdDw2c05G I7gH75RiCDKDYIICubIAyYDVTKHal0wnph0+FY9rxJcNqa//BhGQDoHIgbCWIkcokX oAro/1yxG5p/rcSURHeaSA/URpINx7h6kMWGoNamh/k+I2YmDjJBaY6346oBNfGJbx 8QFegkD1tHZHkc0/OPVEWLW1EJIIv+IR++i4i5FiFKiuIAGBmJiO5h4eCG1Jbc4ren vLbSddt8uyTkA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Alex Deucher , Sasha Levin Subject: [PATCH 5.15 59/76] drm/amd/display: Increase frame-larger-than for all display_mode_vba files Date: Wed, 13 Mar 2024 12:42:06 -0400 Message-ID: <20240313164223.615640-60-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240313164223.615640-1-sashal@kernel.org> References: <20240313164223.615640-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.15.152-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.15.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.15.152-rc1 X-KernelTest-Deadline: 2024-03-15T16:42+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Nathan Chancellor [ Upstream commit e63e35f0164c43fbc1adb481d6604f253b9f9667 ] After a recent change in LLVM, allmodconfig (which has CONFIG_KCSAN=y and CONFIG_WERROR=y enabled) has a few new instances of -Wframe-larger-than for the mode support and system configuration functions: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/display_mode_vba_20v2.c:3393:6: error: stack frame size (2144) exceeds limit (2048) in 'dml20v2_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] 3393 | void dml20v2_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) | ^ 1 error generated. drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn21/display_mode_vba_21.c:3520:6: error: stack frame size (2192) exceeds limit (2048) in 'dml21_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] 3520 | void dml21_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) | ^ 1 error generated. drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/display_mode_vba_20.c:3286:6: error: stack frame size (2128) exceeds limit (2048) in 'dml20_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] 3286 | void dml20_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) | ^ 1 error generated. Without the sanitizers enabled, there are no warnings. This was the catalyst for commit 6740ec97bcdb ("drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml2") and that same change was made to dml in commit 5b750b22530f ("drm/amd/display: Increase frame warning limit with KASAN or KCSAN in dml") but the frame_warn_flag variable was not applied to all files. Do so now to clear up the warnings and make all these files consistent. Cc: stable@vger.kernel.org Closes: https://github.com/ClangBuiltLinux/linux/issue/1990 Signed-off-by: Nathan Chancellor Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dml/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile index 93cc3086783fa..96e70832c7423 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile @@ -59,11 +59,11 @@ CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_lib.o := $(dml_ccflags) ifdef CONFIG_DRM_AMD_DC_DCN CFLAGS_$(AMDDALPATH)/dc/dml/display_mode_vba.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/dcn20_fpu.o := $(dml_ccflags) -CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20.o := $(dml_ccflags) +CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20.o := $(dml_ccflags) $(frame_warn_flag) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_rq_dlg_calc_20.o := $(dml_ccflags) -CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20v2.o := $(dml_ccflags) +CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_mode_vba_20v2.o := $(dml_ccflags) $(frame_warn_flag) CFLAGS_$(AMDDALPATH)/dc/dml/dcn20/display_rq_dlg_calc_20v2.o := $(dml_ccflags) -CFLAGS_$(AMDDALPATH)/dc/dml/dcn21/display_mode_vba_21.o := $(dml_ccflags) +CFLAGS_$(AMDDALPATH)/dc/dml/dcn21/display_mode_vba_21.o := $(dml_ccflags) $(frame_warn_flag) CFLAGS_$(AMDDALPATH)/dc/dml/dcn21/display_rq_dlg_calc_21.o := $(dml_ccflags) CFLAGS_$(AMDDALPATH)/dc/dml/dcn30/display_mode_vba_30.o := $(dml_ccflags) $(frame_warn_flag) CFLAGS_$(AMDDALPATH)/dc/dml/dcn30/display_rq_dlg_calc_30.o := $(dml_ccflags) -- 2.43.0