Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3769318imw; Mon, 11 Jul 2022 15:44:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1voMeWchKpxlJPts2VS5xMaJcdNoo2UoLxMvxWDs17l4dHjUih+FmeNPsOcobIk9nikLOhw X-Received: by 2002:a17:902:c94e:b0:16c:4d5e:5dfc with SMTP id i14-20020a170902c94e00b0016c4d5e5dfcmr6593571pla.56.1657579463857; Mon, 11 Jul 2022 15:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657579463; cv=none; d=google.com; s=arc-20160816; b=ASbTCGh2DJWcRCzUQE1t7gl91qUorx6Y3ie06kWR2F+RScdSPUCH2oWzT2HfcUpIrj yflbehuPELYQ9JhJ5cY08p/DmcO/7//Q0S9VyAFkQJ706c2Ba1+vqVmhm2GJv1uISHD8 J30QNZUAXv2GUT2cIu8pIaPPnyCWGAE4JaAGEorSYSbM2ijrGNOjHx9qEPuYSPPv7823 uBwx+c3ou7GotXJ5NTppPduGOO3F/JKs6/x6L+PNKOPSi4Pq+sB8WuoOcO5kvAgurQsm DmHUB7G09A0SkkAOqFH0gIeoeIgCFY/uQFRkoXteXi6EGLIrSaC4lfPCPFzP/c4j3x62 ifqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZSlKQArgXnx2KMsXMCOM5D5z3gQ65byi661H/c7O+Zw=; b=poHeh1A6k/KHj7ezuKXnHTenw0epQmek1m5MxM1enZ4rkAAIgBtnIh1mHjSLoSok2C mFta1La5i0dcMDn5ZNyLH8bXi8Clpr4rQSI7hqZk6cTNNmAaZ/sd8NMtWI5d3PsZMDJj fqJpGgJALh+wb4ngjKnEdDVjymQTmOtOjlIeqaeR/RY5VOjE2rBXL46bcs1dEWMrcZrU iFoZxX7xJTufUXdEB7tC0No7BPd1ZWKxKxKxTST7N7BTblzN40PIMYoZyvNh47xHGhtW v3hMhpDDLb+NjVULonu3fY3YRhPGubeDL9CU6dbOEmavwsfnz29BjgAQLO7DjIsGXymu 7Viw== 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 z136-20020a63338e000000b0040cf8f016b8si12812217pgz.524.2022.07.11.15.44.11; Mon, 11 Jul 2022 15:44:23 -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 S231990AbiGKVwK (ORCPT + 99 others); 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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, 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 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