Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp646597imn; Fri, 29 Jul 2022 19:45:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uLrpe7mu9fiT78BTnodWYbGuFekK9sHt7TWQJ7O5U2g0lwiUZXgIIgaOJGeMw3NZm+ezdH X-Received: by 2002:a17:906:cc13:b0:72b:31d5:a899 with SMTP id ml19-20020a170906cc1300b0072b31d5a899mr4873553ejb.184.1659149100536; Fri, 29 Jul 2022 19:45:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659149100; cv=none; d=google.com; s=arc-20160816; b=O+xBiLS8paxviIhHdi8dhpfBU4+bQ8v3fsz7SL7NodDGaLgSciehk3GqPADVsCSkoO SJ6d8E6DsTBDyDJy14JMrS+RlyQ3McRSODXxtEh1ZA8YRv6+DvbacCvPhsUydyODTL4y GX/72hPcNdfY6cUov5RmUi2Xu0vEg0WfupLMZ5K2l6a8A+fRaqrHGfdsiewDZ21AymlG nvN+nadClsaM9I7/g8Oe+v2ZAXDyhGovPkQwWzFmGA1vgY33MaVhF9IpCBoBQ2nHxHYD ef8Yvd9Nx0dAdldd9qW84eFsGApj4Pvv9PSgV2HnobsJ3USQZCpTRnDzSbyVDkNOJx84 WRjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-disposition :mime-version:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EcOtadrOum+8COglLbYq8p1rQT6WPdzxexfvljhP5D8=; b=Be3yTA10ROhQry9Ou1RNIX4W2Em2iXXfX1upuNpji9aaJA4OfZAGhvvCt17xbtWxE+ RareiDW5qxaiC/AiCfpUPK4NiM+++E3t9vgBaBY5fVfP+5a5y2/tuxgfUFIx55Y6FzFq r7pasFp2cEEw0tENnUDz5sYDSCMwYSo9wMrNuYiz/knHOQLIBA544FWgwdDC2v7KPfbC kdusmz2ksZfRYJ9eYvULtXN0Ql18WP7jipq0CjnlBZbdR/JQrAtl8ipDYM//RsDXW2Da ObSyJEYo1sZAgaLq4RsyEsZPzKAD7xF8WdQ2dbohfsjYFq7kCYE7vrJYY/b/gnJnlSaO IMlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=B4+6uWnY; 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 m20-20020a056402511400b0043c0593d522si573638edd.9.2022.07.29.19.44.36; Fri, 29 Jul 2022 19:45:00 -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=B4+6uWnY; 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 S232165AbiG3CZi (ORCPT + 99 others); Fri, 29 Jul 2022 22:25:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231201AbiG3CZe (ORCPT ); Fri, 29 Jul 2022 22:25:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F602186F7; Fri, 29 Jul 2022 19:25:34 -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 dfw.source.kernel.org (Postfix) with ESMTPS id AA34961D96; Sat, 30 Jul 2022 02:25:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1974CC433C1; Sat, 30 Jul 2022 02:25:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659147933; bh=EsersN85TttPaQcdVgjli1UBcGalAzLNzoI5+PJX7dM=; h=Date:From:To:Cc:Subject:Reply-To:From; b=B4+6uWnYV7ESdirnk7ZjgWGid8KnJI6m1JBH5aa0AERpBYWc5YSvyj63GgbXIJHu6 KFVTFuUJ2Asl0NdjuPGKjFUJQ0o4VsAqxulR3d+78OluLQYI+JnvIgSuHEMvaIvwon wpl2pY3m2PjaUv/nU1Zl0G8RBD8nDYznCDESmclu/N+4mC4mtfIWGaKPEQvXniwk5A uG98IJjh1LYDKXGV6rI2Ukcml2jJjxrajTJBucWOh6cWR7vUA5WnMfArM98ICarnmt x76yt4QwANCleBOa2tCk4mKQ9MJ1QvT+ddlwncWT31DitJ3XS4A82P4SvxfdjD4amA WkgB8qMacyB/w== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id A2F845C04B1; Fri, 29 Jul 2022 19:25:32 -0700 (PDT) Date: Fri, 29 Jul 2022 19:25:32 -0700 From: "Paul E. McKenney" To: linux@roeck-us.net, alexander.deucher@amd.com, arnd@arndb.de, sunpeng.li@amd.com, harry.wentland@amd.com Cc: sfr@canb.auug.org.au, linux-next@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Stack-frame warnings in display_mode_vba_32.c Message-ID: <20220730022532.GA1234397@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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 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 | ^ Bisection located the commit shown below. Doing an allmodconfig build on this commit reproduces the error, its parent builds fine. Thoughts? Thanx, Paul ------------------------------------------------------------------------ commit 3876a8b5e241081b2a519f848a65c00d8e6cd124 Author: Guenter Roeck Date: Tue Jul 12 15:42:47 2022 -0700 drm/amd/display: Enable building new display engine with KCOV enabled The new display engine uses floating point math, which is not supported by KCOV. Commit 9d1d02ff3678 ("drm/amd/display: Don't build DCN1 when kcov is enabled") tried to work around the problem by disabling CONFIG_DRM_AMD_DC_DCN if KCOV_INSTRUMENT_ALL and KCOV_ENABLE_COMPARISONS are enabled. The result is that KCOV can not be enabled on systems which require this display engine. A much simpler and less invasive solution is to disable KCOV selectively when compiling the display enagine while keeping it enabled for the rest of the kernel. Fixes: 9d1d02ff3678 ("drm/amd/display: Don't build DCN1 when kcov is enabled") Cc: Arnd Bergmann Cc: Leo Li Reviewed-by: Harry Wentland Signed-off-by: Guenter Roeck Signed-off-by: Alex Deucher diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index b4029c0d5d8c5..96cbc87f7b6b8 100644 --- a/drivers/gpu/drm/amd/display/Kconfig +++ b/drivers/gpu/drm/amd/display/Kconfig @@ -6,7 +6,7 @@ config DRM_AMD_DC bool "AMD DC - Enable new display engine" default y select SND_HDA_COMPONENT if SND_HDA_CORE - select DRM_AMD_DC_DCN if (X86 || PPC64) && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) + select DRM_AMD_DC_DCN if (X86 || PPC64) help Choose this option if you want to use the new display engine support for AMDGPU. This adds required support for Vega and diff --git a/drivers/gpu/drm/amd/display/dc/Makefile b/drivers/gpu/drm/amd/display/dc/Makefile index 273f8f2c8e020..b9effadfc4bb7 100644 --- a/drivers/gpu/drm/amd/display/dc/Makefile +++ b/drivers/gpu/drm/amd/display/dc/Makefile @@ -25,6 +25,9 @@ DC_LIBS = basics bios dml clk_mgr dce gpio irq link virtual ifdef CONFIG_DRM_AMD_DC_DCN + +KCOV_INSTRUMENT := n + DC_LIBS += dcn20 DC_LIBS += dsc DC_LIBS += dcn10