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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A41C9C43334 for ; Mon, 11 Jul 2022 21:52:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232063AbiGKVwK (ORCPT ); Mon, 11 Jul 2022 17:52:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232109AbiGKVwG (ORCPT ); Mon, 11 Jul 2022 17:52:06 -0400 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1896764E0A for ; Mon, 11 Jul 2022 14:52:04 -0700 (PDT) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 26BLmgGA018033; Mon, 11 Jul 2022 16:48:42 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 26BLmeGc018032; Mon, 11 Jul 2022 16:48:40 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 11 Jul 2022 16:48:40 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Arnd Bergmann , Pali =?iso-8859-1?Q?Roh=E1r?= , Michael Ellerman , linuxppc-dev , Linux Kernel Mailing List Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220711214840.GJ25951@gate.crashing.org> References: <20220524093939.30927-1-pali@kernel.org> <20220702094405.tp7eo4df7fjvn2ng@pali> <8D562851-304F-4153-9194-426CC22B7FF2@ellerman.id.au> <20220704103951.nm4m4kpgnus3ucqo@pali> <20220708171227.74nbcgsk63y4bdna@pali> <20220711161442.GD25951@gate.crashing.org> <2552726a-cca4-ecd4-6fca-4f73bbf7942e@csgroup.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2552726a-cca4-ecd4-6fca-4f73bbf7942e@csgroup.eu> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Mon, Jul 11, 2022 at 05:32:09PM +0000, Christophe Leroy wrote: > Le 11/07/2022 à 18:14, Segher Boessenkool a écrit : > >> CC arch/powerpc/kernel/irq.o > >> {standard input}: Assembler messages: > >> {standard input}:3535: Error: unrecognized opcode: `wrteei' > >> {standard input}:5608: Error: unrecognized opcode: `wrteei' > > > > What -mcpu= did it use here? > > -mcpu=powerpc64 > > > wrteei is not a PowerPC insn (it is BookE, instead), so it is not > > recognised without an appropriate -mcpu=. > > > >> If I select the e5500 (without altivec) or e6500 I get: > >> > >> CC arch/powerpc/kernel/io.o > >> {standard input}: Assembler messages: > >> {standard input}:381: Error: unrecognized opcode: `eieio' > > > > Same question. eieio is a base PowerPC instruction, so this one is > > "interesting" :-) > > -mcpu=e500mc64 (for e5500) > -mcpu=e6500 (for e6500) > > I had to replace 'eieio' instruction by 'mbar' instruction. I saw some patches fly by... you have it all fixed with that? > Seems like binutils added 'eieio' to e500 in 2010 via commit > e01d869a3be, but it seems it is only for the 85xx, not for the others. I believe the eieio instruction is disabled on some e500 models, because it does not work correctly, so EIEIO_EN=1 cannot work, something like that? Segher