Re: [PATCH] powerpc/64s: catch external interrupts going to host in POWER9

2017-04-12 Thread Nicholas Piggin
On Thu, 13 Apr 2017 07:34:51 +1000 Benjamin Herrenschmidt wrote: > On Thu, 2017-04-13 at 00:12 +1000, Nicholas Piggin wrote: > > Yeah sure that sounds good. How's this then? > > I suppose so :-) When I was testing all that I had a "b ." at 0x500 and > 0x4500 and I

Re: [PATCH] powerpc/64s: catch external interrupts going to host in POWER9

2017-04-12 Thread Benjamin Herrenschmidt
On Thu, 2017-04-13 at 00:12 +1000, Nicholas Piggin wrote: > Yeah sure that sounds good. How's this then? I suppose so :-) When I was testing all that I had a "b ." at 0x500 and 0x4500 and I didn't hit them :)

Re: [PATCH] powerpc/64s: catch external interrupts going to host in POWER9

2017-04-12 Thread Nicholas Piggin
On Wed, 12 Apr 2017 23:45:42 +1000 Benjamin Herrenschmidt wrote: > On Wed, 2017-04-12 at 23:11 +1000, Nicholas Piggin wrote: > > After setting LPES0 in the host on POWER9, the host external interrupt > > handler no longer works correctly, because it's set to HV mode

Re: [PATCH] powerpc/64s: catch external interrupts going to host in POWER9

2017-04-12 Thread Benjamin Herrenschmidt
On Wed, 2017-04-12 at 23:11 +1000, Nicholas Piggin wrote: > After setting LPES0 in the host on POWER9, the host external interrupt > handler no longer works correctly, because it's set to HV mode (HSRR) > for POWER7/8 with LPES0 clear. We don't expect to get any EE in the host > with XIVE, but it

[PATCH] powerpc/64s: catch external interrupts going to host in POWER9

2017-04-12 Thread Nicholas Piggin
After setting LPES0 in the host on POWER9, the host external interrupt handler no longer works correctly, because it's set to HV mode (HSRR) for POWER7/8 with LPES0 clear. We don't expect to get any EE in the host with XIVE, but it seems preferable to catch unexpected interrupts in case there are