Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1250961lqj; Mon, 3 Jun 2024 15:29:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFdeR5l8uyGdEqiNCel1VHhBJxp3WciHmaKti02LSSD/WRtzlmWQlPMWeykCk4AtnxH81k+ZoWQjGCuhwwjeZCk4sFcbLRj+qnTeytOQ== X-Google-Smtp-Source: AGHT+IFW9q6DQ1r4v3wts4pENMsd3l3MaZjR2HrXmfHVVSOKhj5Norf3L3CO1Le+GEuf63ICuVh4 X-Received: by 2002:a05:6a00:b8c:b0:702:cec:85a2 with SMTP id d2e1a72fcca58-702478a3f6dmr13950855b3a.27.1717453798429; Mon, 03 Jun 2024 15:29:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717453798; cv=pass; d=google.com; s=arc-20160816; b=UiOqxiUkTDiIsFIvbDyxh5ai3usv6OKz3XRTAPTHIXqNwzATOKucmj0xjMkmdQcKOz kXEHo4stPxAZtJKZ19uWMVTOARUqHMQuiUd832EwyPKqDIYt1BosOqhyhYIIPpQpDRZS HpqoEIDM6hp7k3dfB8ohROGpFWGn06K+2h5pImIVyngQQFouh1CpwGPKVvlLAaG8nBuA qxT9D530gZ2o6RsYUOJX/jxZ+84OL9qd7H1VKlJe3tEWxK+YbW282rI6JWuT4FOxK1xr BsIx88wKpueNyDB9gnafNrOC04aG6eKY8s6+xsxCAQ2Z6/yQANbQsLLDMRXO/TOwOhjI fSIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9Hcxb/2AL10Dvow6WTdYoZoeCdz1XI9SydAvdgbxoSU=; fh=QQ0KcwmMNhBTyWGg3HZ7k31OFNcgta9H51gqKLwenFw=; b=fCYGN2DzLyRqcWzyUJySIug1y476EExygpbaWryChoX6bCn7iFl8HTBB8H/FlOiBNV 4HMkvqgQp5nLcgJ7a8ejNv/+vCpyIIHOeIiG17BCG2dffTuCVuzhL+K6IL6vRVgSf31Q 8WE30XnAhwwI9whn2wtCVJPPgQAsO2azRQaNeL7Ecahfo09h52JVTqW7SZjITfCFT5Rh Z0XE8ZhdQJxKz2nmbNuONtgroYFAqH1teVAyDnxS+/7oKfxPM2RfiYBbqYDnMOvZgWmw nOMqF+btp1YcWPHfRYtNolsFqno77O6m9dDrscINwYf0dT5xT4WkYou2fc/OCXlSvyW3 9YaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oexfyiWu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199763-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c35b40c8d0si7066391a12.564.2024.06.03.15.29.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 15:29:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-199763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oexfyiWu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-199763-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-199763-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 045B62844A4 for ; Mon, 3 Jun 2024 22:29:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80A2A13C918; Mon, 3 Jun 2024 22:29:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="oexfyiWu" 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 A91FB522E for ; Mon, 3 Jun 2024 22:29:51 +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=1717453791; cv=none; b=AAM6wU6yg2bqW10PoM3H4NreyVE/kJdRWRvC+OVU2Da+OsvPJaO2RgjtlrFZfz5UCcq3IFwEDEgxW82n8e+cV9pCvQwDuwSq5EOOt9SYT/qvltlQ/t3jIoW6BQaQhMXz3ziXuWl/qseiFrc6tjs2wAGf2Lf06mgfZiIEH+lxzh8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717453791; c=relaxed/simple; bh=5f9a0R2mCrPvkK7KpP8RCriUj65yzs0VJ4Rq1HprCHo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tBVzfa/CrDHZpaEkUEKFs1TCZS+pvPYKFNtdPfEocgeE4LoOyrzNha/08ViFabUo7fI9P0Ib1zBXbrBXOyL6QvtRYaiWVGqxUvc/rkRNIyra6T9e95dAYRmJnLdKfaM29kJknjSBpFDSZzAxRkwzn/rI06n0U0Kr+1QGJDkmdj0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=oexfyiWu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6A8A0C2BD10; Mon, 3 Jun 2024 22:29:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717453791; bh=5f9a0R2mCrPvkK7KpP8RCriUj65yzs0VJ4Rq1HprCHo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oexfyiWuBGQ+/9Cg8ujHUG6B0riV65lkBjuEnePYZNcLjEyO+CI5qux2nR6ft7A5Q SXf7EZOnCmdmXC6OjEb7gZS7uQ+V6jY5UaKKgliYT0zquOr7UHIOUAfjxMaWHrIU0D ddvNEn0UfprFqMKm6zYhRg8gazeTZWCpa9E1YlbESM8vyNeF4TprsELiTfnjUr7fW2 dEzh1yaZAyklVjzntj8Vfsjm6z2crenrg34Y3ZRGYf0o++JdxPDI6hBMhzQBE4PmEU FHwQEws761kLwQ0G/ujr8U9tDNbH7aONIevDfdpYQbqcEQbEe58WoX742hcdBkWV59 08DJQcL/ECTAg== Date: Mon, 3 Jun 2024 15:29:48 -0700 From: Nathan Chancellor To: Palmer Dabbelt Cc: alexander.deucher@amd.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, Qingqing.Zhuo@amd.com, hamza.mahfooz@amd.com, chenhuacai@kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/amd/display: Increase frame-larger-than warning limit Message-ID: <20240603222948.GB1802995@thelio-3990X> References: <20240530145741.7506-2-palmer@rivosinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240530145741.7506-2-palmer@rivosinc.com> Hi Palmer, On Thu, May 30, 2024 at 07:57:42AM -0700, Palmer Dabbelt wrote: > From: Palmer Dabbelt > > I get a handful of build errors along the lines of > > linux/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:58:13: error: stack frame size (2352) exceeds limit (2048) in 'DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation' [-Werror,-Wframe-larger-than] > static void DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation( > ^ > linux/drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:1724:6: error: stack frame size (2096) exceeds limit (2048) in 'dml32_ModeSupportAndSystemConfigurationFull' [-Werror,-Wframe-larger-than] > void dml32_ModeSupportAndSystemConfigurationFull(struct display_mode_lib *mode_lib) > ^ Judging from the message, this is clang/LLVM? What version? I assume this showed up in 6.10-rc1 because of commit 77acc6b55ae4 ("riscv: add support for kernel-mode FPU"), which allows this driver to be built for RISC-V. Is this allmodconfig or some other configuration? > as of 6.10-rc1. > > Signed-off-by: Palmer Dabbelt > --- > drivers/gpu/drm/amd/display/dc/dml/Makefile | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/Makefile b/drivers/gpu/drm/amd/display/dc/dml/Makefile > index c4a5efd2dda5..b2bd72e63734 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/Makefile > +++ b/drivers/gpu/drm/amd/display/dc/dml/Makefile > @@ -62,9 +62,9 @@ endif > > ifneq ($(CONFIG_FRAME_WARN),0) > ifeq ($(filter y,$(CONFIG_KASAN)$(CONFIG_KCSAN)),y) > -frame_warn_flag := -Wframe-larger-than=3072 > +frame_warn_flag := -Wframe-larger-than=4096 > else > -frame_warn_flag := -Wframe-larger-than=2048 > +frame_warn_flag := -Wframe-larger-than=3072 > endif > endif > > -- > 2.45.1 >