Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-20 Thread Arnd Bergmann
On Sun, Oct 20, 2019 at 11:47 PM Alexander Sverdlin wrote: > On 20/10/2019 13:49, Arnd Bergmann wrote: > >>> Ah, that makes sense. so all interrupt numbers need to > >>> be shifted by a fixed number (e.g. 1) like we did for > >>> other platforms (see attachment). > >> Yes, the below patch resolved

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-20 Thread Alexander Sverdlin
Hi! On 20/10/2019 13:49, Arnd Bergmann wrote: >>> Ah, that makes sense. so all interrupt numbers need to >>> be shifted by a fixed number (e.g. 1) like we did for >>> other platforms (see attachment). >> Yes, the below patch resolved both GPIO and DMA issues. ^^^ >> Previous pa

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-20 Thread Arnd Bergmann
On Sat, Oct 19, 2019 at 11:14 PM Alexander Sverdlin wrote: > On Sat, 19 Oct 2019 22:44:18 +0200 > Arnd Bergmann wrote: > > Ah, that makes sense. so all interrupt numbers need to > > be shifted by a fixed number (e.g. 1) like we did for > > other platforms (see attachment). > > Yes, the below patc

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-19 Thread Alexander Sverdlin
Hi! On Sat, 19 Oct 2019 22:44:18 +0200 Arnd Bergmann wrote: > > > > # cat /proc/interrupts > > > >CPU0 > > > > 39:146 VIC 7 Edge eth0 > > > > 51: 162161 VIC 19 Edge ep93xx timer > > > > 52:139 VIC 20 Edge uart-pl010 > > > >

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-19 Thread Arnd Bergmann
On Sat, Oct 19, 2019 at 10:24 PM Alexander Sverdlin wrote: > On Sat, 19 Oct 2019 22:08:40 +0200 > Arnd Bergmann wrote: > > > > # cat /proc/interrupts > > >CPU0 > > > 39:146 VIC 7 Edge eth0 > > > 51: 162161 VIC 19 Edge ep93xx timer > > > 52:

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-19 Thread Alexander Sverdlin
Hi! On Sat, 19 Oct 2019 22:08:40 +0200 Arnd Bergmann wrote: > > # cat /proc/interrupts > >CPU0 > > 39:146 VIC 7 Edge eth0 > > 51: 162161 VIC 19 Edge ep93xx timer > > 52:139 VIC 20 Edge uart-pl010 > > 53: 4 VI

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-19 Thread Arnd Bergmann
On Sat, Oct 19, 2019 at 6:43 PM Alexander Sverdlin wrote: > On Fri, 18 Oct 2019 18:29:15 +0200 > Arnd Bergmann wrote: > > > Without CONFIG_SPARSE_IRQ, we rely on mach/irqs.h to define NR_IRQS > > globally. Do the minimal conversion by setting .nr_irqs in each > > machine descriptor. > > > > Only

Re: [PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-19 Thread Alexander Sverdlin
Hello Arnd, On Fri, 18 Oct 2019 18:29:15 +0200 Arnd Bergmann wrote: > Without CONFIG_SPARSE_IRQ, we rely on mach/irqs.h to define NR_IRQS > globally. Do the minimal conversion by setting .nr_irqs in each > machine descriptor. > > Only the vision_ep9307 machine has extra IRQs for GPIOs, so make

[PATCH 2/6] ARM: ep93xx: enable SPARSE_IRQ

2019-10-18 Thread Arnd Bergmann
Without CONFIG_SPARSE_IRQ, we rely on mach/irqs.h to define NR_IRQS globally. Do the minimal conversion by setting .nr_irqs in each machine descriptor. Only the vision_ep9307 machine has extra IRQs for GPIOs, so make .nr_irqs the original value there, while using the plain NR_EP93XX_IRQS everywher