Re: [PATCH v3 1/2] irqchip/sifive-plic: Enable/Disable external interrupts upon cpu online/offline

From: Marc Zyngier
Date: Sun Mar 08 2020 - 10:41:23 EST


On Sun, 8 Mar 2020 13:59:31 +0000
Marc Zyngier <maz@xxxxxxxxxx> wrote:

> On Mon, 2 Mar 2020 15:11:45 -0800
> Atish Patra <atish.patra@xxxxxxx> wrote:
>
> > Currently, PLIC threshold is only initialized once in the beginning.
> > However, threshold can be set to disabled if a CPU is marked offline with
> > CPU hotplug feature. This will not allow to change the irq affinity to a
> > CPU that just came online.
> >
> > Add PLIC specific CPU hotplug callbacks and enable the threshold when a CPU
> > comes online. Take this opportunity to move the external interrupt enable
> > code from trap init to PLIC driver as well. On cpu offline path, the driver
> > performs the exact opposite operations i.e. disable the interrupt and
> > the threshold.
> >
> > Signed-off-by: Atish Patra <atish.patra@xxxxxxx>
> > Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
>
> Both patches queued for 5.7 (please add a cover letter when sending a
> patch series).

Apologies, there was a cover letter. I just messed my filters... ;-)

M.
--
Jazz is not dead. It just smells funny...