Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp599240imi; Fri, 22 Jul 2022 05:43:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHYauRc3YyqrT0Iu1Q1BT03nTWKHAJxuy0PKUJ5I40XNcNQlDnUqgAY7/EOQVlJnqOzLBa X-Received: by 2002:a05:6402:4411:b0:437:b723:72 with SMTP id y17-20020a056402441100b00437b7230072mr534648eda.38.1658493779666; Fri, 22 Jul 2022 05:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658493779; cv=none; d=google.com; s=arc-20160816; b=txbqqLSZ8H6E0VilhNTZSIACGV3lUDSDSIkhinpqboWVKlJolR2PkuB8VX+L5/8DWL BALG0YZ593QDTO5KmdVzj2Zo0mWAyV6HOUOjH2Mof4Tdxjb8YOtHm3CXS9gvul0FqXv3 +MRr41UWq+yO+P7GewG7VU34iM8Nw7Tn6MMc1u48bziEXJ1mxm9haq3EqyI2q+tsMs3S JSHd0r/TuZFmGuXwFoGpYDuLwV0ctSPFScvt7IYUVwjmwo31F0oHoBRHwIYvf/LtyL6A gODdMd10YD0PrW+ujQVKdTnUzKiKGAUjvqllC/pUiy3U+gwJotJ7ogXfNScLYibK6zis PUTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=AhRZetYjSRrrtvrGhFxOFMDMhxuk5niRwF2I6YcZSwI=; b=u84U06ViGL/F3pItwdIvHqlXOS5lGAtkIHZojuW+00vSGF/PbMoJ51VfVkgRs/NAMc 1nJbcCCT+D1iy85V8FAZRFD61PKobkJzkc5MKmHiUzJud4bf3ouVDJVxj96ntitxG7YE FsH2mRo21hny9WFc4gkSydmXbgyW/xpavXyi0RkLv3xS+N97A+P25xaKAJC0cR8gwg7q Z8Pj2WYRJu5VhGCchM00Ad4UvK+cABAufMvnP8xGRO8Y+FFYu9BHLF+/FtsJ+R0cZElo ZveRHOatDmyn76Uzs7mEJa+5Ii2n7ocvcOtEpzmJBIaJRgzFaOTJpz3Me2s+lVoxjIcz 8voQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr18-20020a170907721200b00726be0cce7bsi6462557ejc.24.2022.07.22.05.42.34; Fri, 22 Jul 2022 05:42: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234864AbiGVMcR convert rfc822-to-8bit (ORCPT + 99 others); Fri, 22 Jul 2022 08:32:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbiGVMcP (ORCPT ); Fri, 22 Jul 2022 08:32:15 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E703CDF0C for ; Fri, 22 Jul 2022 05:32:13 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Lq82f5Q7Kz4xG6; Fri, 22 Jul 2022 22:32:09 +1000 (AEST) From: Michael Ellerman To: Dan =?utf-8?Q?Hor=C3=A1k?= , amd-gfx@lists.freedesktop.org, Linus Torvalds , Guenter Roeck , linux-kernel@vger.kernel.org Cc: Alex Deucher , Subject: Re: [PATCH] amdgpu: re-enable DCN for ppc64le In-Reply-To: <20220722082122.571974-1-dan@danny.cz> References: <20220722082122.571974-1-dan@danny.cz> Date: Fri, 22 Jul 2022 22:32:06 +1000 Message-ID: <87o7xhcoqh.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 Hi Dan, [ Cc += linuxppc-dev ] Dan HorĂ¡k writes: > Commit d11219ad53dc disabled the DCN driver for all platforms that > define PPC64 due long build issues during "make allmodconfig" using > cross-compilation. Cross-compilation defaults to the ppc64_defconfig > and thus big-endian toolchain configuration. The ppc64le platform uses a > different ABI and doesn't suffer from the build issues. Unfortunately it's a bit messier than that. The build error occurs when the compiler is built to use a 64-bit long double type. The ppc64le ABI document says that long double should be 128-bits, but there are ppc64le compilers out there that are configured to use 64-bit long double, notably the kernel.org crosstool compilers. So just testing for CPU_LITTLE_ENDIAN means we'll still get build errors on those compilers. But I think we can detect the long double size and key off that. Can you test the patch below works for you? cheers diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index 7aa12e88c580..e9f8cd50af99 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig @@ -281,6 +281,9 @@ config PPC # Please keep this list sorted alphabetically. # +config PCC_LONG_DOUBLE_128 + def_bool $(success,test "$(shell,echo __LONG_DOUBLE_128__ | $(CC) -E -P -)" = 1) + config PPC_BARRIER_NOSPEC bool default y diff --git a/drivers/gpu/drm/amd/display/Kconfig b/drivers/gpu/drm/amd/display/Kconfig index b4029c0d5d8c..ec6771e87e73 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 || PPC_LONG_DOUBLE_128) && !(KCOV_INSTRUMENT_ALL && KCOV_ENABLE_COMPARISONS) help Choose this option if you want to use the new display engine support for AMDGPU. This adds required support for Vega and