Re: [PATCH v3 4/6] irqchip: sifive-plic: Add warning in plic_init() if handler already present

2018-12-18 Thread Anup Patel
On Mon, Dec 17, 2018 at 11:58 PM Christoph Hellwig wrote: > > On Fri, Nov 30, 2018 at 01:32:05PM +0530, Anup Patel wrote: > > We have two enteries (one for M-mode and another for S-mode) in the > > interrupts-extended DT property of PLIC DT node for each HART. It is > > expected that

Re: [PATCH v3 4/6] irqchip: sifive-plic: Add warning in plic_init() if handler already present

2018-12-17 Thread Christoph Hellwig
On Fri, Nov 30, 2018 at 01:32:05PM +0530, Anup Patel wrote: > We have two enteries (one for M-mode and another for S-mode) in the > interrupts-extended DT property of PLIC DT node for each HART. It is > expected that firmware/bootloader will set M-mode HWIRQ line of each > HART to 0x (i.e.

[PATCH v3 4/6] irqchip: sifive-plic: Add warning in plic_init() if handler already present

2018-11-30 Thread Anup Patel
We have two enteries (one for M-mode and another for S-mode) in the interrupts-extended DT property of PLIC DT node for each HART. It is expected that firmware/bootloader will set M-mode HWIRQ line of each HART to 0x (i.e. -1) in interrupts-extended DT property because Linux runs in S-mode

[PATCH v3 4/6] irqchip: sifive-plic: Add warning in plic_init() if handler already present

2018-11-30 Thread Anup Patel
We have two enteries (one for M-mode and another for S-mode) in the interrupts-extended DT property of PLIC DT node for each HART. It is expected that firmware/bootloader will set M-mode HWIRQ line of each HART to 0x (i.e. -1) in interrupts-extended DT property because Linux runs in S-mode