Re: [PATCH 1/2] irqchip: RISC-V Local Interrupt Controller Driver

2017-07-03 Thread Palmer Dabbelt
On Mon, 03 Jul 2017 04:13:34 PDT (-0700), t...@linutronix.de wrote: > On Thu, 29 Jun 2017, Palmer Dabbelt wrote: >> On Wed, 28 Jun 2017 13:47:40 PDT (-0700), t...@linutronix.de wrote: >> In this case the software interrupt is to handle IPIs, so it doesn't really >> make any sense to handle one with

Re: [PATCH 1/2] irqchip: RISC-V Local Interrupt Controller Driver

2017-07-03 Thread Thomas Gleixner
On Thu, 29 Jun 2017, Palmer Dabbelt wrote: > On Wed, 28 Jun 2017 13:47:40 PDT (-0700), t...@linutronix.de wrote: > In this case the software interrupt is to handle IPIs, so it doesn't really > make any sense to handle one without SMP. I'm OK with just warning, though, > as > the IPIs are just for

Re: [PATCH 1/2] irqchip: RISC-V Local Interrupt Controller Driver

2017-06-29 Thread Palmer Dabbelt
On Wed, 28 Jun 2017 13:47:40 PDT (-0700), t...@linutronix.de wrote: > On Mon, 26 Jun 2017, Palmer Dabbelt wrote: >> +DEFINE_PER_CPU(struct riscv_irq_data, riscv_irq_data); >> +DEFINE_PER_CPU(atomic_long_t, riscv_early_sie); >> + >> +static void riscv_software_interrupt(void) >> +{ >> +#ifdef CONFIG

Re: [PATCH 1/2] irqchip: RISC-V Local Interrupt Controller Driver

2017-06-28 Thread Thomas Gleixner
On Mon, 26 Jun 2017, Palmer Dabbelt wrote: > +DEFINE_PER_CPU(struct riscv_irq_data, riscv_irq_data); > +DEFINE_PER_CPU(atomic_long_t, riscv_early_sie); > + > +static void riscv_software_interrupt(void) > +{ > +#ifdef CONFIG_SMP > + irqreturn_t ret; > + > + ret = handle_ipi(); > + if (re

[PATCH 1/2] irqchip: RISC-V Local Interrupt Controller Driver

2017-06-26 Thread Palmer Dabbelt
This patch adds a driver that manages the local interrupts on each RISC-V hart, as specifiec by the RISC-V supervisor level ISA manual. The local interrupt controller manages software interrupts, timer interrupts, and hardware interrupts (which are routed via the platform level interrupt controller