e210101dbb
Realview EB with a rev B MPcore tile results in lots of warnings at boot because it can't allocate enough IRQs. Fix this by increasing the number of available IRQs. WARNING: at /home/rmk/git/linux-rmk/arch/arm/common/gic.c:757 gic_init_bases+0x12c/0x2ec() Cannot allocate irq_descs @ IRQ96, assuming pre-allocated Modules linked in: Backtrace: [<c00185d8>] (dump_backtrace+0x0/0x10c) from [<c03294e8>] (dump_stack+0x18/0x1c) r6:000002f5 r5:c042c62c r4:c044ff40 r3:c045f240 [<c03294d0>] (dump_stack+0x0/0x1c) from [<c00292c8>] (warn_slowpath_common+0x54/0x6c) [<c0029274>] (warn_slowpath_common+0x0/0x6c) from [<c0029384>] (warn_slowpath_fmt+0x38/0x40) [<c002934c>] (warn_slowpath_fmt+0x0/0x40) from [<c042c62c>] (gic_init_bases+0x12c/0x2ec) [<c042c500>] (gic_init_bases+0x0/0x2ec) from [<c042cdc8>] (gic_init_irq+0x8c/0xd8) [<c042cd3c>] (gic_init_irq+0x0/0xd8) from [<c042827c>] (init_IRQ+0x1c/0x24) [<c0428260>] (init_IRQ+0x0/0x24) from [<c04256c8>] (start_kernel+0x1a4/0x300) [<c0425524>] (start_kernel+0x0/0x300) from [<70008070>] (0x70008070) ---[ end trace 1b75b31a2719ed1c ]--- ------------[ cut here ]------------ WARNING: at /home/rmk/git/linux-rmk/kernel/irq/irqdomain.c:234 irq_domain_add_legacy+0x80/0x140() Modules linked in: Backtrace: [<c00185d8>] (dump_backtrace+0x0/0x10c) from [<c03294e8>] (dump_stack+0x18/0x1c) r6:000000ea r5:c0081a38 r4:00000000 r3:c045f240 [<c03294d0>] (dump_stack+0x0/0x1c) from [<c00292c8>] (warn_slowpath_common+0x54/0x6c) [<c0029274>] (warn_slowpath_common+0x0/0x6c) from [<c0029304>] (warn_slowpath_null+0x24/0x2c) [<c00292e0>] (warn_slowpath_null+0x0/0x2c) from [<c0081a38>] (irq_domain_add_legacy+0x80/0x140) [<c00819b8>] (irq_domain_add_legacy+0x0/0x140) from [<c042c64c>] (gic_init_bases+0x14c/0x2ec) [<c042c500>] (gic_init_bases+0x0/0x2ec) from [<c042cdc8>] (gic_init_irq+0x8c/0xd8) [<c042cd3c>] (gic_init_irq+0x0/0xd8) from [<c042827c>] (init_IRQ+0x1c/0x24) [<c0428260>] (init_IRQ+0x0/0x24) from [<c04256c8>] (start_kernel+0x1a4/0x300) [<c0425524>] (start_kernel+0x0/0x300) from [<70008070>] (0x70008070) ---[ end trace 1b75b31a2719ed1d ]--- ------------[ cut here ]------------ WARNING: at /home/rmk/git/linux-rmk/arch/arm/common/gic.c:762 gic_init_bases+0x170/0x2ec() Modules linked in: Backtrace: [<c00185d8>] (dump_backtrace+0x0/0x10c) from [<c03294e8>] (dump_stack+0x18/0x1c) r6:000002fa r5:c042c670 r4:00000000 r3:c045f240 [<c03294d0>] (dump_stack+0x0/0x1c) from [<c00292c8>] (warn_slowpath_common+0x54/0x6c) [<c0029274>] (warn_slowpath_common+0x0/0x6c) from [<c0029304>] (warn_slowpath_null+0x24/0x2c) [<c00292e0>] (warn_slowpath_null+0x0/0x2c) from [<c042c670>] (gic_init_bases+0x170/0x2ec) [<c042c500>] (gic_init_bases+0x0/0x2ec) from [<c042cdc8>] (gic_init_irq+0x8c/0xd8) [<c042cd3c>] (gic_init_irq+0x0/0xd8) from [<c042827c>] (init_IRQ+0x1c/0x24) [<c0428260>] (init_IRQ+0x0/0x24) from [<c04256c8>] (start_kernel+0x1a4/0x300) [<c0425524>] (start_kernel+0x0/0x300) from [<70008070>] (0x70008070) ---[ end trace 1b75b31a2719ed1e ]--- Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
133 lines
5.5 KiB
C
133 lines
5.5 KiB
C
/*
|
|
* arch/arm/mach-realview/include/mach/irqs-eb.h
|
|
*
|
|
* Copyright (C) 2007 ARM Limited
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
* MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __MACH_IRQS_EB_H
|
|
#define __MACH_IRQS_EB_H
|
|
|
|
#define IRQ_EB_GIC_START 32
|
|
|
|
/*
|
|
* RealView EB interrupt sources
|
|
*/
|
|
#define IRQ_EB_WDOG (IRQ_EB_GIC_START + 0) /* Watchdog timer */
|
|
#define IRQ_EB_SOFT (IRQ_EB_GIC_START + 1) /* Software interrupt */
|
|
#define IRQ_EB_COMMRx (IRQ_EB_GIC_START + 2) /* Debug Comm Rx interrupt */
|
|
#define IRQ_EB_COMMTx (IRQ_EB_GIC_START + 3) /* Debug Comm Tx interrupt */
|
|
#define IRQ_EB_TIMER0_1 (IRQ_EB_GIC_START + 4) /* Timer 0 and 1 */
|
|
#define IRQ_EB_TIMER2_3 (IRQ_EB_GIC_START + 5) /* Timer 2 and 3 */
|
|
#define IRQ_EB_GPIO0 (IRQ_EB_GIC_START + 6) /* GPIO 0 */
|
|
#define IRQ_EB_GPIO1 (IRQ_EB_GIC_START + 7) /* GPIO 1 */
|
|
#define IRQ_EB_GPIO2 (IRQ_EB_GIC_START + 8) /* GPIO 2 */
|
|
/* 9 reserved */
|
|
#define IRQ_EB_RTC (IRQ_EB_GIC_START + 10) /* Real Time Clock */
|
|
#define IRQ_EB_SSP (IRQ_EB_GIC_START + 11) /* Synchronous Serial Port */
|
|
#define IRQ_EB_UART0 (IRQ_EB_GIC_START + 12) /* UART 0 on development chip */
|
|
#define IRQ_EB_UART1 (IRQ_EB_GIC_START + 13) /* UART 1 on development chip */
|
|
#define IRQ_EB_UART2 (IRQ_EB_GIC_START + 14) /* UART 2 on development chip */
|
|
#define IRQ_EB_UART3 (IRQ_EB_GIC_START + 15) /* UART 3 on development chip */
|
|
#define IRQ_EB_SCI (IRQ_EB_GIC_START + 16) /* Smart Card Interface */
|
|
#define IRQ_EB_MMCI0A (IRQ_EB_GIC_START + 17) /* Multimedia Card 0A */
|
|
#define IRQ_EB_MMCI0B (IRQ_EB_GIC_START + 18) /* Multimedia Card 0B */
|
|
#define IRQ_EB_AACI (IRQ_EB_GIC_START + 19) /* Audio Codec */
|
|
#define IRQ_EB_KMI0 (IRQ_EB_GIC_START + 20) /* Keyboard/Mouse port 0 */
|
|
#define IRQ_EB_KMI1 (IRQ_EB_GIC_START + 21) /* Keyboard/Mouse port 1 */
|
|
#define IRQ_EB_CHARLCD (IRQ_EB_GIC_START + 22) /* Character LCD */
|
|
#define IRQ_EB_CLCD (IRQ_EB_GIC_START + 23) /* CLCD controller */
|
|
#define IRQ_EB_DMA (IRQ_EB_GIC_START + 24) /* DMA controller */
|
|
#define IRQ_EB_PWRFAIL (IRQ_EB_GIC_START + 25) /* Power failure */
|
|
#define IRQ_EB_PISMO (IRQ_EB_GIC_START + 26) /* PISMO interface */
|
|
#define IRQ_EB_DoC (IRQ_EB_GIC_START + 27) /* Disk on Chip memory controller */
|
|
#define IRQ_EB_ETH (IRQ_EB_GIC_START + 28) /* Ethernet controller */
|
|
#define IRQ_EB_USB (IRQ_EB_GIC_START + 29) /* USB controller */
|
|
#define IRQ_EB_TSPEN (IRQ_EB_GIC_START + 30) /* Touchscreen pen */
|
|
#define IRQ_EB_TSKPAD (IRQ_EB_GIC_START + 31) /* Touchscreen keypad */
|
|
|
|
/*
|
|
* RealView EB + ARM11MPCore interrupt sources (primary GIC on the core tile)
|
|
*/
|
|
#define IRQ_EB11MP_AACI (IRQ_EB_GIC_START + 0)
|
|
#define IRQ_EB11MP_TIMER0_1 (IRQ_EB_GIC_START + 1)
|
|
#define IRQ_EB11MP_TIMER2_3 (IRQ_EB_GIC_START + 2)
|
|
#define IRQ_EB11MP_USB (IRQ_EB_GIC_START + 3)
|
|
#define IRQ_EB11MP_UART0 (IRQ_EB_GIC_START + 4)
|
|
#define IRQ_EB11MP_UART1 (IRQ_EB_GIC_START + 5)
|
|
#define IRQ_EB11MP_RTC (IRQ_EB_GIC_START + 6)
|
|
#define IRQ_EB11MP_KMI0 (IRQ_EB_GIC_START + 7)
|
|
#define IRQ_EB11MP_KMI1 (IRQ_EB_GIC_START + 8)
|
|
#define IRQ_EB11MP_ETH (IRQ_EB_GIC_START + 9)
|
|
#define IRQ_EB11MP_EB_IRQ1 (IRQ_EB_GIC_START + 10) /* main GIC */
|
|
#define IRQ_EB11MP_EB_IRQ2 (IRQ_EB_GIC_START + 11) /* tile GIC */
|
|
#define IRQ_EB11MP_EB_FIQ1 (IRQ_EB_GIC_START + 12) /* main GIC */
|
|
#define IRQ_EB11MP_EB_FIQ2 (IRQ_EB_GIC_START + 13) /* tile GIC */
|
|
#define IRQ_EB11MP_MMCI0A (IRQ_EB_GIC_START + 14)
|
|
#define IRQ_EB11MP_MMCI0B (IRQ_EB_GIC_START + 15)
|
|
|
|
#define IRQ_EB11MP_PMU_CPU0 (IRQ_EB_GIC_START + 17)
|
|
#define IRQ_EB11MP_PMU_CPU1 (IRQ_EB_GIC_START + 18)
|
|
#define IRQ_EB11MP_PMU_CPU2 (IRQ_EB_GIC_START + 19)
|
|
#define IRQ_EB11MP_PMU_CPU3 (IRQ_EB_GIC_START + 20)
|
|
#define IRQ_EB11MP_PMU_SCU0 (IRQ_EB_GIC_START + 21)
|
|
#define IRQ_EB11MP_PMU_SCU1 (IRQ_EB_GIC_START + 22)
|
|
#define IRQ_EB11MP_PMU_SCU2 (IRQ_EB_GIC_START + 23)
|
|
#define IRQ_EB11MP_PMU_SCU3 (IRQ_EB_GIC_START + 24)
|
|
#define IRQ_EB11MP_PMU_SCU4 (IRQ_EB_GIC_START + 25)
|
|
#define IRQ_EB11MP_PMU_SCU5 (IRQ_EB_GIC_START + 26)
|
|
#define IRQ_EB11MP_PMU_SCU6 (IRQ_EB_GIC_START + 27)
|
|
#define IRQ_EB11MP_PMU_SCU7 (IRQ_EB_GIC_START + 28)
|
|
|
|
#define IRQ_EB11MP_L220_EVENT (IRQ_EB_GIC_START + 29)
|
|
#define IRQ_EB11MP_L220_SLAVE (IRQ_EB_GIC_START + 30)
|
|
#define IRQ_EB11MP_L220_DECODE (IRQ_EB_GIC_START + 31)
|
|
|
|
/*
|
|
* The 11MPcore tile leaves the following unconnected.
|
|
*/
|
|
#define IRQ_EB11MP_UART2 0
|
|
#define IRQ_EB11MP_UART3 0
|
|
#define IRQ_EB11MP_CLCD 0
|
|
#define IRQ_EB11MP_DMA 0
|
|
#define IRQ_EB11MP_WDOG 0
|
|
#define IRQ_EB11MP_GPIO0 0
|
|
#define IRQ_EB11MP_GPIO1 0
|
|
#define IRQ_EB11MP_GPIO2 0
|
|
#define IRQ_EB11MP_SCI 0
|
|
#define IRQ_EB11MP_SSP 0
|
|
|
|
#define NR_GIC_EB11MP 2
|
|
|
|
/*
|
|
* Only define NR_IRQS if less than NR_IRQS_EB
|
|
*/
|
|
#define NR_IRQS_EB (IRQ_EB_GIC_START + 128)
|
|
|
|
#if defined(CONFIG_MACH_REALVIEW_EB) \
|
|
&& (!defined(NR_IRQS) || (NR_IRQS < NR_IRQS_EB))
|
|
#undef NR_IRQS
|
|
#define NR_IRQS NR_IRQS_EB
|
|
#endif
|
|
|
|
#if defined(CONFIG_REALVIEW_EB_ARM11MP) || defined(CONFIG_REALVIEW_EB_A9MP) \
|
|
&& (!defined(MAX_GIC_NR) || (MAX_GIC_NR < NR_GIC_EB11MP))
|
|
#undef MAX_GIC_NR
|
|
#define MAX_GIC_NR NR_GIC_EB11MP
|
|
#endif
|
|
|
|
#endif /* __MACH_IRQS_EB_H */
|