Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14318450rwb; Sun, 27 Nov 2022 22:19:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf5j93zllRCwAZYWjiaYyr7KXwmSdazkhQpksYjQOn33HrqIvkftGPlYRA95F7PwdkUY8LKk X-Received: by 2002:a17:906:3a41:b0:78d:9caa:31b7 with SMTP id a1-20020a1709063a4100b0078d9caa31b7mr27933595ejf.263.1669616388536; Sun, 27 Nov 2022 22:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669616388; cv=none; d=google.com; s=arc-20160816; b=XEBSphVRM5omxyJx8xVEc2VIEmi3T+IXmZRrFOpfo2CFgIdu3O/APtWKjvNZZpjucu fL0NRq712vWxH8KL00c3OH+kAMBy5/TYiExrXNhPUN7RMPpzIxnfWb4qso+jIbNDugiF j+C18ZI8D7pesuxiYr0A+vVjCwLeYs+m9nwdBchJ4oGlaw1VRAquYTZNVpX4CGfoUobo kFi83LY/2cA0ZE4+zMrS8xbGkuCmhZPGPjpj9tY+1cQ0taiiNTyCt5sA3kt3YnzHcX9L Yfl9R3zR/KLyeWKAl3rztn0GKkBI059ElErU5MtSHByqobcxSljHaDvhMbkyzlzNEqIR 2ZxA== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zMhEbq1713kVriTBckW80XMdFXo3w2ijkNRh+ciVlqc=; b=yTwCQRVaqyZVAu5C6H4/Im4ZHy60Q0u354Fh9edCbhXr2Ol8gfqLkO5GEKSWdapVc2 Jubhy+QzL77kxNUHLTP3rW9u07bxPwvquguyEwqNWNOuIf/2UnRZYFL5AJ+50JSoMBEV zb25Ll1klPS1onJxdU+b2S+APlNhgYQSUMTmxMEpm8gFCKKSlpuxP/UF2tDpytIcadBH NMDRs0HDQwgy7GIpBmQJFzgEKtPDAjKB0w3cQyJ5xDYmMl4f23W1UCk1kDozoL28bTHZ pwDHOZvdhwg4tsMkUXv/6dS7vtU7hFlE7t1OQ8Rqel1tz1n7yzHcmgIZFHMYX4VboZGG OCCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IaqVi0WC; 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 rq10-20020a17090788ca00b007aeef4dd9cfsi8533187ejc.908.2022.11.27.22.19.05; Sun, 27 Nov 2022 22:19:48 -0800 (PST) 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=IaqVi0WC; 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 S229696AbiK1Fww (ORCPT + 84 others); Mon, 28 Nov 2022 00:52:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229683AbiK1Fwo (ORCPT ); Mon, 28 Nov 2022 00:52:44 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 316B3BE07 for ; Sun, 27 Nov 2022 21:52:42 -0800 (PST) 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 16C8060FB0 for ; Mon, 28 Nov 2022 05:52:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C737C433D7; Mon, 28 Nov 2022 05:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669614761; bh=g/RZ0UhEagBW/SLujAuSB8moyipptP+kazhRSA5O92w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IaqVi0WCpcHqQW20yxVpj190d2mF0Bx2TQh7ApUO3RDT4RBc/TumLBFkhJDIbQc53 poUsRkAgy8YdLo0bO+6KrAp0DIg2UHWrwo1HJwWwwF2lLsQVmWPHEEQ80vih2+4+Pr V8cuVibYhxPM/AZsuBTk71P6PLjFBlMEUJNx5hcqQ1NlfMKs5EFawWnyDGmOtpBd6j vOJmoU+aH1I2So0Bfs7VXOWG4hnY+S1vud8gd0x5c0TYTm4NTIz82sLHWqXIxOBBQk 0RSZkEj2T1oWatsH0yiwpQuXdzYn+znbNiAzpZrjCxxt2QSmG6ydeFj59vF0yQSDZL Zt+iW832vcWRg== Date: Sun, 27 Nov 2022 22:52:38 -0700 From: Nathan Chancellor To: Lee Jones Cc: arnd@arndb.de, akpm@linux-foundation.org, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, ndesaulniers@google.com, trix@redhat.com, harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 1/2] drm/amdgpu: Temporarily disable broken Clang builds due to blown stack-frame Message-ID: References: <20221125120750.3537134-1-lee@kernel.org> <20221125120750.3537134-2-lee@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221125120750.3537134-2-lee@kernel.org> X-Spam-Status: No, score=-7.1 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 Fri, Nov 25, 2022 at 12:07:49PM +0000, Lee Jones wrote: > calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64) > architectures built with Clang (all released versions), whereby the stack > frame gets blown up to well over 5k. This would cause an immediate kernel > panic on most architectures. We'll revert this when the following bug report > has been resolved: https://github.com/llvm/llvm-project/issues/41896. > > Suggested-by: Arnd Bergmann > Signed-off-by: Lee Jones Reviewed-by: Nathan Chancellor > --- > drivers/gpu/drm/amd/display/Kconfig | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index 6925e0280dbe6..f4f3d2665a6b2 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -5,6 +5,7 @@ menu "Display Engine Configuration" > config DRM_AMD_DC > bool "AMD DC - Enable new display engine" > default y > + depends on BROKEN || !CC_IS_CLANG || X86_64 || SPARC64 || ARM64 > select SND_HDA_COMPONENT if SND_HDA_CORE > select DRM_AMD_DC_DCN if (X86 || PPC_LONG_DOUBLE_128) > help > @@ -12,6 +13,12 @@ config DRM_AMD_DC > support for AMDGPU. This adds required support for Vega and > Raven ASICs. > > + calculate_bandwidth() is presently broken on all !(X86_64 || SPARC64 || ARM64) > + architectures built with Clang (all released versions), whereby the stack > + frame gets blown up to well over 5k. This would cause an immediate kernel > + panic on most architectures. We'll revert this when the following bug report > + has been resolved: https://github.com/llvm/llvm-project/issues/41896. > + > config DRM_AMD_DC_DCN > def_bool n > help > -- > 2.38.1.584.g0f3c55d4c2-goog >