Re: [RFC PATCH 3/5] RISC-V: Select useful GENERIC_IRQ kconfig options
From: Christoph Hellwig
Date: Wed Sep 05 2018 - 14:57:31 EST
On Wed, Sep 05, 2018 at 10:22:27AM +0530, Anup Patel wrote:
> I am sure we will see both Level and Edge triggered interrupts
> in RISC-V system. The MMIO device interrupts will be mostly
> Level triggered and PCI MSIs will be mapped as Edge triggered
> by MSI controller.
>
> We should definitely select GENERIC_IRQ_SHOW_LEVEL
> so that nature of IRQ interrupt line is evident in /proc/interrupts.
Please settle the argument with Thomas and Marc on what the default
for this option should be - in the end it just shows another line
in procfs, and I see no reason for RISC-V to ever deviated from the
global Linux default here, whatever that default is.
> >> HANDLE_DOMAIN_IRQ
> >
> > We aren't using handle_domain_irq anywhere in RISC-V, no need to
> > build this.
>
> The new RISC-V local interrupt controller driver introduced by
> this patchset uses handle_domain_irq().
So select it in the patch that needs it, not anywhere else.