Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp328719imn; Mon, 25 Jul 2022 18:07:44 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t+kFo6S4qYIpkssE3CSiL5qCOpvZxVgfk5qpJQb4WITl+12r4qMyadDNbUwdANYw/rwvHK X-Received: by 2002:a05:6402:4307:b0:43c:2263:716a with SMTP id m7-20020a056402430700b0043c2263716amr5219651edc.69.1658797664353; Mon, 25 Jul 2022 18:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658797664; cv=none; d=google.com; s=arc-20160816; b=oYDMv6h9Wh+vrNyfBYz8N/jjqwxhLxr/6QHakY2cYCKFlk/kNPoK9PIMNRIaVmfmiJ 9U+5gWt08YY0NJwgFD3UeAcCot0jIlwxJ5rjgLKDe+o8sIgIVnStWP4EykySQM8i6Ven TUSmFyEOJcMSW2neQyKrCZbmi4YCvtl2CpTj5x8/JxbmHCwSetFzJWx67Xq2zdaI05WY X/D+bI0T0KiV31nps/LJXN7Y3qT2rsEoTrXWskkPbgmM/wGDTEYLw924j4emjD+3/dRw 7BcgXAMD84ruvN9xCCNpqfB6ZyPnPxPUyRRTR6RoH/hZjaa3yXlHCWT8u4Zq/CApuQrA KrjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=XM/sSLZCdmxU7N0ibsdjeo384f6+QLdmjSl5hrtE3HY=; b=yDgSKDuyf9SDG2BssvVNWllIx3RE+zidZcm9xlxlIZuQCaakrOhHidF7S8oD4Mzqri STPBD2W3COyoOIKpsThpcN4+2MJ7n4WfAm/6QUqC19MjhkmT5p2PbCImVCS7y96bLl5s ytQ0esSouDE6ONXWSE7I2uUqfOgxHRmZrEHmO57aYeKyQdyspMCH/R5xBWzmQARlRLmU NesUgq/SiPCprFAHjnUrr/8t4iYTG0U6PCM6uIZ/D03lhspVxvXwiLpkEsQY49eO88Jb UD5Vs+4fkmuqy8mBGFc0Lt7FEcOLJY9Gbz+O+G/+tCFHreRCJsRxAGIj7olkdDdNq+uI rJJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=kWgG78BP; 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 c13-20020aa7c98d000000b0043bc3512565si8901664edt.167.2022.07.25.18.07.19; Mon, 25 Jul 2022 18:07:44 -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=@ellerman.id.au header.s=201909 header.b=kWgG78BP; 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 S237015AbiGZA4L (ORCPT + 99 others); Mon, 25 Jul 2022 20:56:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43088 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiGZA4K (ORCPT ); Mon, 25 Jul 2022 20:56:10 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A570255BA for ; Mon, 25 Jul 2022 17:56:09 -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 4LsJPh01Psz4x1T; Tue, 26 Jul 2022 10:56:07 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1658796968; bh=XM/sSLZCdmxU7N0ibsdjeo384f6+QLdmjSl5hrtE3HY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=kWgG78BPwfOqjitCUhFJ1j7aQuatzG1Kzsf+7936A1WLUoNMph3bVIxIlABiTDJEJ hIIcGB/y8AFSlwe/+vhMtJcBEakfJHeQb/EPEh1G7QM8Fj1g7kmD4E4rDvBAscAEEQ Y9m7YoapBqwumAnrkXpPVFp4iTJcszdtuCXUjKZ3zAyIkxhYTxrIpZQ+9viWvCIJZN Lo+0ODKIoi8+wOoWZGyX2w81RnbtPvoDX+kaetTWOCl8t08KBgIfEZU4r9ji6GmqBD XC9xzCTHZvgPJML2QJUKrzkpJdrABgL2gtRQwE/S/p+qpY1A+EQDJrveHxPMK7Qwkp zoGf02DW07bSw== From: Michael Ellerman To: Linus Torvalds Cc: linuxppc-dev@lists.ozlabs.org, alexdeucher@gmail.com, amd-gfx@lists.freedesktop.org, linux@roeck-us.net, linux-kernel@vger.kernel.org, dan@danny.cz, tpearson@raptorengineering.com Subject: Re: [PATCH] drm/amdgpu: Re-enable DCN for 64-bit powerpc In-Reply-To: References: <20220725123918.1903255-1-mpe@ellerman.id.au> Date: Tue, 26 Jul 2022 10:56:07 +1000 Message-ID: <87k080bsk8.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 Linus Torvalds writes: > On Mon, Jul 25, 2022 at 5:39 AM Michael Ellerman wrote: >> >> Further digging shows that the build failures only occur with compilers >> that default to 64-bit long double. > > Where the heck do we have 'long double' things anywhere in the kernel? There's one or two uses, but not in any code that's relevant to this issue AFAICS. > I tried to grep for it, and failed miserably. I found some constants > that would qualify, but they were in the v4l colorspaces-details.rst > doc file. > > Strange. It doesn't seem to matter if you use long double or not. It's just that if the long double size is 64-bits the linker refuses to link a mixture of soft/hard-float objects. The 64-bit ABI says long double is 128-bits, so the compilers that are using 64-bit long double are either not built correctly, or we are not passing the correct flags to them. There's an -mlong-double-128 flag which we can pass at build time which seems to do the right thing, I will probably add that to the kernel CFLAGS, but I want that to get a bit more testing. cheers