Received: from eggs.gnu.org ([2001:4830:134:3::10]:43955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8zyS-0004sF-Fb for qemu-devel@nongnu.org; Mon, 21 Nov 2016 20:34:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8zyP-0003ez-7B for qemu-devel@nongnu.org; Mon, 21 Nov 2016 20:34:16 -0500 Date: Tue, 22 Nov 2016 02:34:03 +0100 (CET) From: BALATON Zoltan In-Reply-To: Message-ID: References: <20161120231605.D90DD745789@zero.eik.bme.hu> <20161121230529.GC8681@umbus.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc: Make uninorth interrupt swizzling identical to Grackle List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark Cave-Ayland Cc: David Gibson , Benjamin Herrenschmidt , qemu-ppc@nongnu.org, qemu-devel@nongnu.org On Tue, 22 Nov 2016, Mark Cave-Ayland wrote: > On 21/11/16 23:05, David Gibson wrote: >> On Mon, Nov 21, 2016 at 12:12:31AM +1000, BALATON Zoltan wrote: >>> From: Benjamin Herrenschmidt >>> >>> It's currently broken as it uses an incorrect shift, it tries >>> to use the slot number but uses the top bits of the bus number >>> instead. >>> >>> Note: Neither implementation matches what OpenBIOS ends up putting >>> in the device-tree either, which will have to be fixed separately. >>> >>> This is not quite correct for modelling a real Mac since Apple >>> tend to tie all 4 interrupt lines of a slot together and have >>> separate interrupts for every slot and every motherboard devices >>> going straight to the PIC but we'll sort that out later. >>> >>> Signed-off-by: Benjamin Herrenschmidt >>> --- >>> hw/pci-host/uninorth.c | 4 +--- >>> 1 file changed, 1 insertion(+), 3 deletions(-) >>> >>> This needs a corresponding fix in OpenBIOS but this has to be >>> committed first for that. As this is already broken making this change >>> should not make things worse as they are now. Could we get this in now >>> as a bugfix commit? >> >> Applied to ppc-for-2.8. > > Is this going in for 2.8? If so, I'll need to apply the corresponding > patch to OpenBIOS to match and also do a PPC testing cycle to make sure > that there are no regressions on other OSs. Plus it would be useful to > get both pull requests in close proximity as this will break bisection. (Adding BenH as these are his patches I just apparently forgot the cc.) I'd appreciate if this could get in 2.8. As this is a bugfix this should be OK during the freeze. Likely there will be more rc cycles where it could be reverted if found to cause problems. But since it's already broken, applying this patch to QEMU should not break it more and adding the fix on the OpenBIOS side (patch 4/4) would complete the fix and may actually make it work. This should only affect mac99 and this one patch is independent from the other three I've sent to OpenBIOS so this could be applied independently to get at least the interrupts fixed if you can't test and apply the other three until the next pull. Regards, BALATON Zoltan