|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] arm: gic-v3: clear GICR active interrupts
Hi, On 30/01/2019 13:36, Peng Fan wrote: Each ICACTIVER0 registers hold the active bit for 32 interrupts. However, this code assumes the register only hold 4 interrupts. So this will write to unwanted area. There are only 16 SGIs, so it fits in one write to ICACTIVER0. As wrote above, you also need to deactivate the PPIs. So the following shouldbe enough:/* * The activate state is unknown at boot, so make sure all SGIs and PPIsare* de-activated. */ writel_relaxed(0xffffffff, GICD_RDIST_SGI_BASE + GICR_ICACTIVER0); You can't clear SPIs through GICD_RDIST_SGI_BASE. You have to use the GICD.Furthermore, gic_cpu_init is called for every CPU so this is not a good place for clearing shared interrupts. Shared interrupts should be cleared in gic_dist_init as this is called only once. Cheers, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |