From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4EDE1C5475B for ; Wed, 6 Mar 2024 16:49:27 +0000 (UTC) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Q+XtvBMf; dkim-atps=neutral Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4Tqdgn6fSSz3vdG for ; Thu, 7 Mar 2024 03:49:25 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=Q+XtvBMf; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2604:1380:40e1:4800::1; helo=sin.source.kernel.org; envelope-from=nathan@kernel.org; receiver=lists.ozlabs.org) Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4Tqdg06BHLz2y1Y for ; Thu, 7 Mar 2024 03:48:44 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 62A96CE226F; Wed, 6 Mar 2024 16:48:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02D1DC433C7; Wed, 6 Mar 2024 16:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709743722; bh=0QVMuhO8tv+yD3wGofv4vd1QwlfUDwn6eLrDolYC9js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q+XtvBMfqHnTWiAQDZ8gmGdBrn5wJ0nauughUwkeXvnk/yXYoJIVAHxMcc/zanr7f vg+r3Mgg6Z/cI2QQ44tNs16macvizUbJHML4KZ/Hkj5LnE2sUVZ4TFhN2/GvBYHUic +SruEao4Ms/6vRSwBrRzsuIpWHPgqKcCbK8a2oPYC7KwLZa+Joagn22T6X2g+tnssU 2Pysjy4xZGG/IZ80vBiyhxntD4brOS+0Z1StfKp9ZXnbZphRrxvUA15xMdfCNvp1hO NxusReLi/PpMSggNg25a8S8EMLwjkkdH0aC5mXlKQ32kbkH45ovDO/ZYgyRyXOIAio uJLjHjJEVcAUw== Date: Wed, 6 Mar 2024 09:48:40 -0700 From: Nathan Chancellor To: Michael Ellerman Subject: Re: [PATCH] powerpc: xor_vmx: Add '-mhard-float' to CFLAGS Message-ID: <20240306164840.GA3659677@dev-arch.thelio-3990X> References: <20240127-ppc-xor_vmx-drop-msoft-float-v1-1-f24140e81376@kernel.org> <20240305224315.GA2361659@dev-arch.thelio-3990X> <874jdkp409.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874jdkp409.fsf@mail.lhotse> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: llvm@lists.linux.dev, patches@lists.linux.dev, aneesh.kumar@kernel.org, npiggin@gmail.com, justinstitt@google.com, naveen.n.rao@linux.ibm.com, stable@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, morbo@google.com Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, Mar 06, 2024 at 12:01:42PM +1100, Michael Ellerman wrote: > Nathan Chancellor writes: > > Ping? We have been applying this in our CI since it was sent, it would > > be nice to have this upstream soon so it can start filtering through the > > stable trees. > > Sorry, I was away in January and missed this. Will pick it up. No worries, I've done that more times than I would like to admit. Thanks a lot for the quick response and picking it up! Cheers, Nathan > > On Sat, Jan 27, 2024 at 11:07:43AM -0700, Nathan Chancellor wrote: > >> arch/powerpc/lib/xor_vmx.o is built with '-msoft-float' (from the main > >> powerpc Makefile) and '-maltivec' (from its CFLAGS), which causes an > >> error when building with clang after a recent change in main: > >> > >> error: option '-msoft-float' cannot be specified with '-maltivec' > >> make[6]: *** [scripts/Makefile.build:243: arch/powerpc/lib/xor_vmx.o] Error 1 > >> > >> Explicitly add '-mhard-float' before '-maltivec' in xor_vmx.o's CFLAGS > >> to override the previous inclusion of '-msoft-float' (as the last option > >> wins), which matches how other areas of the kernel use '-maltivec', such > >> as AMDGPU. > >> > >> Cc: stable@vger.kernel.org > >> Closes: https://github.com/ClangBuiltLinux/linux/issues/1986 > >> Link: https://github.com/llvm/llvm-project/commit/4792f912b232141ecba4cbae538873be3c28556c > >> Signed-off-by: Nathan Chancellor > >> --- > >> arch/powerpc/lib/Makefile | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile > >> index 6eac63e79a89..0ab65eeb93ee 100644 > >> --- a/arch/powerpc/lib/Makefile > >> +++ b/arch/powerpc/lib/Makefile > >> @@ -76,7 +76,7 @@ obj-$(CONFIG_PPC_LIB_RHEAP) += rheap.o > >> obj-$(CONFIG_FTR_FIXUP_SELFTEST) += feature-fixups-test.o > >> > >> obj-$(CONFIG_ALTIVEC) += xor_vmx.o xor_vmx_glue.o > >> -CFLAGS_xor_vmx.o += -maltivec $(call cc-option,-mabi=altivec) > >> +CFLAGS_xor_vmx.o += -mhard-float -maltivec $(call cc-option,-mabi=altivec) > >> # Enable > >> CFLAGS_xor_vmx.o += -isystem $(shell $(CC) -print-file-name=include) > >> > >> > >> --- > >> base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d > >> change-id: 20240127-ppc-xor_vmx-drop-msoft-float-ad68b437f86c > >> > >> Best regards, > >> -- > >> Nathan Chancellor > >> >