Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756410Ab1CHXOU (ORCPT ); Tue, 8 Mar 2011 18:14:20 -0500 Received: from gate.crashing.org ([63.228.1.57]:33453 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754819Ab1CHXOT (ORCPT ); Tue, 8 Mar 2011 18:14:19 -0500 Subject: Re: RFC: x86: kill binutils 2.16.x? From: Benjamin Herrenschmidt To: Kyle Moffett Cc: Ingo Molnar , "H. Peter Anvin" , Thomas Gleixner , linux-kbuild , Linux Kernel Mailing List , Andrew Morton , linuxppc-dev@lists.ozlabs.org, Kyle Moffett , Kumar Gala In-Reply-To: References: <4D6E8932.1010405@zytor.com> <4D6EB07C.5040004@zytor.com> <4D6ECBDB.6090307@zytor.com> <20110303083035.GB14854@elte.hu> <1299619716.22236.32.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Wed, 09 Mar 2011 10:13:28 +1100 Message-ID: <1299626008.22236.47.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1938 Lines: 46 On Tue, 2011-03-08 at 16:59 -0500, Kyle Moffett wrote: > > The problem is not with the kernel compile itself, but with the 2.12 > "dssall" binutils test. Basically, recent binutils treats e500 as > effectively a separate architecture that happens to share *most* of > the opcodes with regular PowerPC. This is bogus. Newer e500 don't have that SPE crap afaik and BookI and II of the architecture have been converged. In fact, Scott, don't newer FSL chips also support real lwsync ? > Any opcode which is not understood > by the e500 chip is either convert to an equivalent opcode which is > understood (IE: lwsync => sync), or failed with an error. This means > that the kernel compile aborts early telling me to upgrade to a newer > version of binutils. This is more bogosity in binutils. lwsync is designed to fallback as sync if not supported in -HW-, binutils shouldn't silently swallow it. Or is it that FSL failed on the original e500 and make lwsync actually trap ? > This was *critical* for getting an actual Debian distribution > bootstrapped on the e500 cores, because so much software assumes > PowerPC == altivec (ffmpeg), hardcodes 'asm("lwsync")' for memory > barriers (80+ packages in Debian), or includes hand-coded > floating-point ASM instructions (libffi). Noisy build errors are > better than silent runtime failures any day of the week. > > At the very least that test needs to be turned off if > CONFIG_ALTIVEC=n, because the kernel builds and runs fine otherwise. I think the right thing is to keep that as e500-legacy or something, because afaik, newer e500's don't have most of these issues and could be treated as "normal" powerpc again. Cheers, Ben. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/