[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-ppc] [RFC PATCH v2 13/21] ppc/xive: handle interrupt acknowled
From: |
Benjamin Herrenschmidt |
Subject: |
Re: [Qemu-ppc] [RFC PATCH v2 13/21] ppc/xive: handle interrupt acknowledgment by the O/S |
Date: |
Thu, 28 Sep 2017 10:14:35 +0200 |
On Wed, 2017-09-20 at 11:40 +0200, Cédric Le Goater wrote:
> > Plus, this doesn't seem right. Shouldn't this
> > recheck the CPPR against the PIPR, in case a higher priority irq has
> > been delivered since the one the cpu is acking.
>
> If a higher priority is delivered, it means that the CPPR was more
> privileged and that we have now two bits set in the IPB by the time
> the interrupt is acked. The high priority PIPR will become the new
> CPPR and the IBP will be modified keeping only the lower priority.
>
> if the CPPR is modified to the lower priority level, then the
> first interrupt will be delivered again.
>
> I think this is fine.
Also remember the HW PIPR behaviour, its a bit odd, it will be clamped
by the CPPR. So if CPPR is 0 PIPR will be 0.
If CPPR is 7, PIPR will be <= 7, etc...
Cheers,
Ben.
- [Qemu-ppc] [RFC PATCH v2 11/21] ppc/xive: push the EQ data in OS event queue, (continued)
[Qemu-ppc] [RFC PATCH v2 12/21] ppc/xive: notify the CPU when interrupt priority is more privileged, Cédric Le Goater, 2017/09/11
[Qemu-ppc] [RFC PATCH v2 13/21] ppc/xive: handle interrupt acknowledgment by the O/S, Cédric Le Goater, 2017/09/11
[Qemu-ppc] [RFC PATCH v2 14/21] ppc/xive: add support for the SET_OS_PENDING command, Cédric Le Goater, 2017/09/11
[Qemu-ppc] [RFC PATCH v2 15/21] spapr: modify spapr_populate_pci_dt() to use a 'nr_irqs' argument, Cédric Le Goater, 2017/09/11
[Qemu-ppc] [RFC PATCH v2 16/21] spapr: add a XIVE object to the sPAPR machine, Cédric Le Goater, 2017/09/11