From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 030A2DDE34 for ; Sat, 6 Oct 2007 08:17:58 +1000 (EST) Subject: Re: [PATCH 5/6] PowerPC 440EPx: Sequoia board support From: Benjamin Herrenschmidt To: Valentine Barshak In-Reply-To: <47068433.7060803@ru.mvista.com> References: <20070730151628.GA5100@ru.mvista.com> <200708030844.13895.sr@denx.de> <46B31352.1060503@ru.mvista.com> <200708031425.19475.sr@denx.de> <1186144536.5981.5.camel@gruick> <47068433.7060803@ru.mvista.com> Content-Type: text/plain Date: Sat, 06 Oct 2007 08:17:52 +1000 Message-Id: <1191622672.6416.0.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Stefan Roese Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2007-10-05 at 22:36 +0400, Valentine Barshak wrote: > Benjamin Herrenschmidt wrote: > >> Depends on interpretation. IIRC currently the same die is used for 440EPx and > >> 440GRx. I could be wrong here though and it is just a bug in the chip. But > >> anyway we should support this somehow. Could be that I missed this in the > >> current 440GRx (Rainier) arch/ppc support too. I have to admit, that no > >> clever solution comes to my mind right away though. > > > > We can always come up with some kind of runtime detection, by turning on > > MSR:FP, issuing an fp instruction and catching the illegal instruction > > fault if any :-) > > > > Ben. > > > > > > Is it OK to workaround the GRX/EPX having the same PVR issue using > device tree? > Say, check the PVR value and if we have 440EPx PVR, but 440GRX node in > the device tree, fix the cputable entry and omit FPU initialization code. Fixing the CPU features based on the tree is definitely legit. We do that on pseries. In fact, with paulus latest patch, the cputable is __initdata and the cur CPU features is a -copy- which makes it even more legitimate to whack it. Ben.