Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1079553imn; Sat, 30 Jul 2022 14:32:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s4F0n38QOVL4Lus8+YAHRXaKA8AYgYGUfPTIrl6PvRbf2ktsPbwxel48+tNMmWzyr8mCLE X-Received: by 2002:a05:6402:e96:b0:43a:f21f:42a0 with SMTP id h22-20020a0564020e9600b0043af21f42a0mr9167106eda.382.1659216741241; Sat, 30 Jul 2022 14:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659216741; cv=none; d=google.com; s=arc-20160816; b=l2uZmQilRIzScNHuo2UagcYrZ8MPI9VyT/veygjKN1arqk2JkpZFkNmVEPBW4Mtb1a GlTuQ/MKNT3f5/QGU229bLvnPr33ziS9J1JhmpzVb2PEDfm5oEpLWQirfEyWsWmSgTH+ IO9GWAUxrDgKH1v02ZZQAF2V2VXUBz55XbUIMsr9S28O4muCXoMEDlCLaq/HwWlgjxb2 AiOdLSHRQbDUglaW4ESaKUJt5hu5EOxEMlK1HuW0cSdgQ6ipAJYwgyYdTNUyEnorBLDu EIQklJrWFGa+NZLtf0UE+esaL6ojk7FfoAgDAyQercCarBfhb70xBpCEO/hF4sXu58s3 zKow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=W3kW41jjlG9GFXXeqvHJu1tQb6f7fB9uWUwdXC+F7UE=; b=mDOjgglLWW5lC3pyqZ30RWBC+Dk/hR8A/P0Zz5q2UO9tT99MI8/E6X0Ep1xZFMzU+H G3LAkF0oOkPNERa5v5YPCJVT2HN/tyK7r6bOOKagxRoB4sUEnxmP+U8KLdwB2jE78IgS PNdEQd8TAK/OCLPfRKaftWu7zLzLMwcNMfcpjNY52qv2A22aEec6sGLpkHAz2GfTb+k+ 3Y3Yg6Yc8pL1NyzWJQtgJr/tLpPXHWjZjD0kzW/2sp5j/+/KRCsYxWZf25N9IlEjyqcO 7tXxXrfZr4TTLakBmg+DCNIvSjxGGxvuz/taJnfsgncw+1OJCqbKKy/dJ9OOtjdRKAHI FN3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ndyN8CSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020aa7c3cc000000b0043bd24198desi5882878edr.526.2022.07.30.14.31.56; Sat, 30 Jul 2022 14:32:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ndyN8CSr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235448AbiG3VKC (ORCPT + 99 others); Sat, 30 Jul 2022 17:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232244AbiG3VJ7 (ORCPT ); Sat, 30 Jul 2022 17:09:59 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA02D65D2; Sat, 30 Jul 2022 14:09:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7122AB80B4E; Sat, 30 Jul 2022 21:09:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20A7FC433C1; Sat, 30 Jul 2022 21:09:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659215395; bh=ePqpEWYI6NuRsWft+lvrNOptjvzOQrmx491q5KinAVw=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=ndyN8CSrdlsjDcPhVIsaxHZ4YEF3xB2rzS/C+brd9fsD3iszC0Rvn4FI0njZ/iqqc gNxXzYaGv21bea0XtXuTmzhCRxFEiuyiosjaEMtBVYy5lQSzwoK7MoDeTnIUdndmsz Ijfl1ATZDneRrXnu6pzsncTcukFhhNxxX79K2Io6XpLzolvDPbEJrY1cxXkXd198Ja 6yVI0F4pKdc3QBGxW4deitGpV8te+bZKg+EnKFHhX8RgPGsLF4P4anpu/v0NRRZBHN ZZ8Ylqu2Tj6jjCxok+hL5C5grj9gDg4Y48QeeJLCQjkpz4gf+f0Ft+7tyYXkNwrLHv rEitkSY0gu9Mg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BB4B05C034F; Sat, 30 Jul 2022 14:09:54 -0700 (PDT) Date: Sat, 30 Jul 2022 14:09:54 -0700 From: "Paul E. McKenney" To: Guenter Roeck Cc: =?iso-8859-1?Q?Andr=E9?= Almeida , sfr@canb.auug.org.au, harry.wentland@amd.com, sunpeng.li@amd.com, arnd@arndb.de, alexander.deucher@amd.com, linux-next@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: Stack-frame warnings in display_mode_vba_32.c Message-ID: <20220730210954.GU2860372@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org References: <20220730022532.GA1234397@paulmck-ThinkPad-P17-Gen-1> <85a49b72-8bb7-b3b3-8a69-2c90cda8079d@igalia.com> <20220730051238.GR2860372@paulmck-ThinkPad-P17-Gen-1> <80410e6e-838b-fa3d-1f87-710eb3c751c5@roeck-us.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <80410e6e-838b-fa3d-1f87-710eb3c751c5@roeck-us.net> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 30, 2022 at 02:06:10AM -0700, Guenter Roeck wrote: > On 7/29/22 22:12, Paul E. McKenney wrote: > > On Fri, Jul 29, 2022 at 11:41:55PM -0300, André Almeida wrote: > > > Hi Paul, > > > > > > Às 23:25 de 29/07/22, Paul E. McKenney escreveu: > > > > Hello! > > > > > > > > I am seeing the following in allmodconfig builds of recent -next on x86: > > > > > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c: In function ‘DISPCLKDPPCLKDCFCLKDeepSleepPrefetchParametersWatermarksAndPerformanceCalculation’: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:1659:1: error: the frame size of 2144 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] > > > > 1659 | } > > > > | ^ > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c: In function ‘dml32_ModeSupportAndSystemConfigurationFull’: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c:3799:1: error: the frame size of 2480 bytes is larger than 2048 bytes [-Werror=frame-larger-than=] > > > > 3799 | } // ModeSupportAndSystemConfigurationFull > > > > | ^ > > > > > > I think they are fixed at amd-staging-drm-next: > > > > > > git log --oneline amd/amd-staging-drm-next > > > drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > > > 953daa61981b drm/amd/display: Reduce stack size in the mode support function > > > 361e705e712d drm/amd/display: reduce stack for > > > dml32_CalculatePrefetchSchedule > > > f2dbf5a4dd1e drm/amd/display: reduce stack for > > > dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport > > > a0a68cda2ef8 drm/amd/display: reduce stack for dml32_CalculateVMRowAndSwath > > > ca6730ca0f01 drm/amd/display: reduce stack for > > > dml32_CalculateSwathAndDETConfiguration > > > 593eef8c1a5e drm/amd/display: reduce stack size in dcn32 dml (v2) > > > > > > https://gitlab.freedesktop.org/agd5f/linux/-/commits/amd-staging-drm-next/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_32.c > > > > Very good, thank you! I will test again on the next -next. > > > > Did you try next-20220728 ? > > groeck@server:~/src/linux-next$ git describe > next-20220728 > groeck@server:~/src/linux-next$ git log --oneline drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn32/display_mode_vba_32.c > 1b54a0121dba drm/amd/display: Reduce stack size in the mode support function > 86e4863e67a9 drm/amd/display: reduce stack for dml32_CalculatePrefetchSchedule > 3c3abac60117 drm/amd/display: reduce stack for dml32_CalculateWatermarksMALLUseAndDRAMSpeedChangeSupport > c3b3f9ba25e6 drm/amd/display: reduce stack for dml32_CalculateVMRowAndSwath > bac4b41d917a drm/amd/display: reduce stack for dml32_CalculateSwathAndDETConfiguration > 7acc487ab57e drm/amd/display: reduce stack size in dcn32 dml (v2) Indeed, next-20220728 does avoid the problem, thank you! Thanx, Paul