Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7092369rwp; Tue, 18 Jul 2023 09:55:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6pcrQKZRM4aJAxGcWxDieED/r03h95PKZsvobaXi8+B5PDjetRcJH1UbPzAlVxm6DzCv4 X-Received: by 2002:a05:6a20:4428:b0:133:7a67:b477 with SMTP id ce40-20020a056a20442800b001337a67b477mr20446689pzb.1.1689699334148; Tue, 18 Jul 2023 09:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689699334; cv=none; d=google.com; s=arc-20160816; b=wD/tNFP7Z0XwJP3U5wH8O579Kt10hfVEd1bryi2n2dwqLQdl55JByifJ5nslm2RnRi 2URdvy+LZynmDVJlx31PQK1yFZ+nCXD93+t/4Us33q1d5DThyvnYkmSzv7atn3uXgFv2 UJjv/WWOFNKF4pzE30Z5/lkwYu9sE/fuCvk9sqOU+aBQa5hzh8tieWzNLVqosdxkBJW0 tjmn1xwnEN4Z/fPkveP2pwlBjbSplGnQcbqHBtSVoIzQOqLeDl5ZsqddxGrbUBw4dFDL B/KTlPoibnLNd3U9YmCMn/qP2Xa+pKAfBqMh6hCZ+NWwsj22OG3b7S0tRinpI3cDxb7t hJfg== 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=FAU8mP75iZoRcpM1jhSzkL5Y4LfP5ewcQcBAYE6AqcA=; fh=pnJQ3W2tWUMYAuqA4aUvBOE/fNTj5CwXi6apHisX4CU=; b=mu3yK4oWiTO0dItDGyG1Aq2+6dh6bBNBoL0UuI3R3Tm73P5cndKLRK97UqD5VY4P1D QYssRHYm1D/XyxAdf2m832qS8nqLqbYjWhHLts9kSOPvBLlD7jpheYDGKScHfvWXIUTe NwlKC3wblUhzlFRnYvwF+NkrYj57tfXo8uctMHWunEXoIbq6d9Fy7aj9KK8TuoUvsEmh D3OsPrJ03BrDhDjRSAisyoAjeOZfP3KEdFcgPSMlTE8M2+YFW6BcNvqOtW4xIAHSKmhm AxzmqC+Dp+A5eV2AQgTX5wvWdyKCMQR2rYLNyyQZXUkDoJaSqHb1bx5c+amgaiToiMuA HWog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=irVoVVtk; 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 cl15-20020a056a0032cf00b0068219eb279bsi1775802pfb.245.2023.07.18.09.55.20; Tue, 18 Jul 2023 09:55:34 -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=irVoVVtk; 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 S233279AbjGRQkA (ORCPT + 99 others); Tue, 18 Jul 2023 12:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231305AbjGRQj7 (ORCPT ); Tue, 18 Jul 2023 12:39:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6795210D2 for ; Tue, 18 Jul 2023 09:39:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E916161662 for ; Tue, 18 Jul 2023 16:39:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6E21CC433C8; Tue, 18 Jul 2023 16:39:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689698396; bh=eWaZcHsWI81n6SkQbS3KA6jeCLJ0Qmcg3VQycKfRq14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=irVoVVtkRxdHhOFSKnVqtgvZ3OYBf/wX7sWiliHa85pGShBit+Mf6fuVvJjNhvpzJ NKq7zG53XEXYkMAOnXwMJzAOc5bYfz0VwhLdJORlF+eHibjZ9XVxwXRv/A7398a/cf P8wSN7Lfx1Blu7po8WM1dV067ahejkuV3ySjdHVZJ85pudBuayaYLHhcL1gfgwkhgs nK/3QXNeN5feJoTzN5ZP0McIx/Fk6FxTYxBhZLDrPRMdb3G0JAXAhqK+nC4kdIcBVJ 3RoKHDpPxComNB/XK2HaazBV9lBxmi8j2vwAHBiBG4tXj3JGGYJsKpJsYcRcNSPyxE Oe3QBcQurZjZw== Date: Tue, 18 Jul 2023 09:39:53 -0700 From: Nathan Chancellor To: Samuel Holland Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , Daniel Vetter , David Airlie , Nick Desaulniers , "Pan, Xinhui" , Tom Rix , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] drm/amd/display: Allow building DC with clang on RISC-V Message-ID: <20230718163953.GA1279879@dev-arch.thelio-3990X> References: <20230717222923.3026018-1-samuel.holland@sifive.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230717222923.3026018-1-samuel.holland@sifive.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Mon, Jul 17, 2023 at 03:29:23PM -0700, Samuel Holland wrote: > clang on RISC-V appears to be unaffected by the bug causing excessive > stack usage in calculate_bandwidth(). clang 16 with -fstack-usage > reports a 304 byte stack frame size with CONFIG_ARCH_RV32I, and 512 > bytes with CONFIG_ARCH_RV64I. > > Signed-off-by: Samuel Holland I built ARCH=riscv allmodconfig drivers/gpu/drm/amd/amdgpu/ (confirming that CONFIG_DRM_AMD_DC gets enabled) with LLVM 11 through 17 with and without CONFIG_KASAN=y and I never saw the -Wframe-larger-than instance that this was disabled for, so I agree. Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor > > drivers/gpu/drm/amd/display/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig > index bf0a655d009e..901d1961b739 100644 > --- a/drivers/gpu/drm/amd/display/Kconfig > +++ b/drivers/gpu/drm/amd/display/Kconfig > @@ -5,7 +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 > + depends on BROKEN || !CC_IS_CLANG || ARM64 || RISCV || SPARC64 || X86_64 > select SND_HDA_COMPONENT if SND_HDA_CORE > # !CC_IS_CLANG: https://github.com/ClangBuiltLinux/linux/issues/1752 > select DRM_AMD_DC_FP if (X86 || LOONGARCH || (PPC64 && ALTIVEC) || (ARM64 && KERNEL_MODE_NEON && !CC_IS_CLANG)) > -- > 2.40.1 >