Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8175487rwp; Wed, 19 Jul 2023 06:22:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGcs5yjyfHGfbw/HwP4CvIKKqjID7DSs03gufoTntxyZs+t0RNr7oCDfAoYEgiMf/iEA9if X-Received: by 2002:a17:903:338e:b0:1b0:3d03:4179 with SMTP id kb14-20020a170903338e00b001b03d034179mr2281357plb.6.1689772919615; Wed, 19 Jul 2023 06:21:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689772919; cv=none; d=google.com; s=arc-20160816; b=JRg6WvRoXiUUHSFPhLEwRlpSh+pMwM0KgpZVbKGfDIlzjMxWUnX3/EgqrIgWpBlsrz o39Pm2GalAiHFAr9vycJ7ejc4WH+Njgq4I5bzFRHomx03golT2D2fttmd5qroOxW++DV sucXqNK7pP/+Lq9P5mbOAoMwXpP9o2D1dHs/ZIL8W+1KFaETf85FCHKz18QBjEVBsMED GaHtoAQoQuElP07pbzmeqV/D5oPfBzbJsEG1Rl7ltGBlfqEFsVPhUGtjKzp2O7rkOFZm 8BiMgZX+1GTiUKM7C71quEZzX9T6pKsP9oDM7ZDGB7VBQY1U3RorL+am4ClPel+qudMg KQtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+Ob33aJpEVflG5uQou9d1IRsAjTkbB0H29vIYmLFG+w=; fh=/LAhSiHbGh62/I7aZscL5Wn9vuMbkH4dmvmn28aDQUE=; b=wMZE6h5PuZg4znU+0pOnTY2WPgCMre0pE0gypwejEGzswcc72VDA9El4mry/3qi7gg zwTJhbZ2uCJndWlY01Lo8FnFw+bIIPbyGc5DDVbRvmVUTnIoMD6PSB8/0BiUeeQUw9MW HfZU0A1MZviqXRbYQ3U8pte6a5xBu8jVZ4nZ0tLJB6So25aZC/vxoQmVrDHD/BlhewHX 5Y66MlLnGXtctkjLaCZi2yRWRKwGbt0B+VB95kSOdq8tI1tXw2i7wTV992cueTkSYXzU gFkA5j4I5lPajlEYecvI0myWiLjNkTnVcdTbrBOBfnWI5h2yKZNVIzCz0KSeY65RXMEV nSxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=Jj+8Q1YB; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ka8-20020a170903334800b001b9d95078d9si3267022plb.404.2023.07.19.06.21.46; Wed, 19 Jul 2023 06:21:59 -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=@gmail.com header.s=20221208 header.b=Jj+8Q1YB; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229476AbjGSMyw (ORCPT + 99 others); Wed, 19 Jul 2023 08:54:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230061AbjGSMyu (ORCPT ); Wed, 19 Jul 2023 08:54:50 -0400 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3088B1BFC for ; Wed, 19 Jul 2023 05:54:47 -0700 (PDT) Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-565a8d74daeso505586eaf.1 for ; Wed, 19 Jul 2023 05:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689771286; x=1692363286; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=+Ob33aJpEVflG5uQou9d1IRsAjTkbB0H29vIYmLFG+w=; b=Jj+8Q1YBMe8h479/EM5nnl3jJ5xPG0W7eLhHi2H+mcna+HquVrBIJMcD/smzGOmwM7 ie3LZItQUxdSI0xMbCo1PJjzDdJsrHuwnNUU348rCV5T9FRW3dOxXa5K77hFvFKwyzF0 Xq74ZvO0+Y76KYqOHLFf5E3TvLisnIgXaGCUG52Etj+JSehbCfm0tEAOhpnSBjemzxMs JM+cjERlRLPRT/vP1esVY1YcA0z4kcagF5bL9o/6aiG4wmsSXPHtJ5b3tdsJoJl3G0DK QVpC8kqCRTiFy2GtMCWsSON9lNGw1oPeFjUGcthkClYhI01n+UjS3kZGu/eshF8aq5MQ OlUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689771286; x=1692363286; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+Ob33aJpEVflG5uQou9d1IRsAjTkbB0H29vIYmLFG+w=; b=EU04eCi5eeIeNOV619um6ZQ6ajOYnyF/3yO7Er4Puk3by/q9+ZBkm7cJQhKVPQrnTr lUjCbap6rjPARWHJjwX/RIzbDucTob4ftEAYsbcy4PHL7H+r9RFMw4FowYDPNguCys/d pDG2ZD2vm+sLZJrqjvH8f+RnZ9L77IZdqXksuPIQv4W6a2jztLJGu9Vvk9NGfX4DOIN7 c4xgs/GYwI7X/QbBHNAmNTFmovVWZ6JKK0su0YGTS7ZMRQi9WWZcwx6yWPapzW06/idN lrVmkg4mFx2HUdjm3UMOlSodDCiER4oTbVCIcAPGVboO6peGQPBwN9HoWYL7sAV4X8D1 jgLg== X-Gm-Message-State: ABy/qLapjhSLs7e+ebADaa96w6D3BAmC0RIF8kNrh56iB4AYpwyl5RMn JsH4FumqVUwPdP+ZGZ1nrx5T/eutFIuuxfaoFdw= X-Received: by 2002:a4a:3350:0:b0:564:e465:5d5c with SMTP id q77-20020a4a3350000000b00564e4655d5cmr1635961ooq.2.1689771286177; Wed, 19 Jul 2023 05:54:46 -0700 (PDT) MIME-Version: 1.0 References: <20230717222923.3026018-1-samuel.holland@sifive.com> <20230718163953.GA1279879@dev-arch.thelio-3990X> In-Reply-To: <20230718163953.GA1279879@dev-arch.thelio-3990X> From: Alex Deucher Date: Wed, 19 Jul 2023 08:54:34 -0400 Message-ID: Subject: Re: [PATCH] drm/amd/display: Allow building DC with clang on RISC-V To: Nathan Chancellor Cc: Samuel Holland , Nick Desaulniers , llvm@lists.linux.dev, Leo Li , "Pan, Xinhui" , Rodrigo Siqueira , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Tom Rix , Alex Deucher , =?UTF-8?Q?Christian_K=C3=B6nig?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Applied. Thanks! On Tue, Jul 18, 2023 at 12:40=E2=80=AFPM Nathan Chancellor wrote: > > 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=3Driscv allmodconfig drivers/gpu/drm/amd/amdgpu/ (confirming > that CONFIG_DRM_AMD_DC gets enabled) with LLVM 11 through 17 with and > without CONFIG_KASAN=3Dy 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/1= 752 > > select DRM_AMD_DC_FP if (X86 || LOONGARCH || (PPC64 && ALTIVEC) |= | (ARM64 && KERNEL_MODE_NEON && !CC_IS_CLANG)) > > -- > > 2.40.1 > >