Re: [PATCH] powerpc/xics: Properly set Edge/Level type and enable resend

2016-08-05 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > On Thu, 2016-08-04 at 14:40 +1000, Michael Ellerman wrote: >> > Finally now that edge interrupts are properly identified, we can enable >> > CONFIG_HARDIRQS_SW_RESEND which will make the core re-send them if >> > they occur while masked,

Re: [PATCH] powerpc/xics: Properly set Edge/Level type and enable resend

2016-08-04 Thread Benjamin Herrenschmidt
On Thu, 2016-08-04 at 14:40 +1000, Michael Ellerman wrote: > > Finally now that edge interrupts are properly identified, we can enable > > CONFIG_HARDIRQS_SW_RESEND which will make the core re-send them if > > they occur while masked, which some drivers rely upon. > > > > This fixes issues with

Re: [PATCH] powerpc/xics: Properly set Edge/Level type and enable resend

2016-08-03 Thread Michael Ellerman
Benjamin Herrenschmidt writes: > This sets the type of the interrupt appropriately. We set it as follow: > > - If not mapped from the device-tree, we use edge. This is the case > of the virtual interrupts and PCI MSIs for example. > > - If mapped from the device-tree

[PATCH] powerpc/xics: Properly set Edge/Level type and enable resend

2016-08-01 Thread Benjamin Herrenschmidt
This sets the type of the interrupt appropriately. We set it as follow: - If not mapped from the device-tree, we use edge. This is the case of the virtual interrupts and PCI MSIs for example. - If mapped from the device-tree and #interrupt-cells is 2 (PAPR compliant), we use the second cell to