forked from luck/tmp_suning_uos_patched
bfc9136824
Eiger machine vector definition has nr_irqs 128, and working 2.6.26 boot shows SCSI getting IRQ-s 64 and 65. Current kernel boot fails because Symbios SCSI fails to request IRQ-s and does not find the disks. It has been broken at least since 3.18 - the earliest I could test with my gcc-5. The headers have moved around and possibly another order of defines has worked in the past - but since 128 seems to be correct and used, fix arch/alpha/include/asm/irq.h to have NR_IRQS=128 for Eiger. This fixes 4.19-rc7 boot on my Force Flexor A264 (Eiger subarch). Cc: stable@vger.kernel.org # v3.18+ Signed-off-by: Meelis Roos <mroos@linux.ee> Signed-off-by: Matt Turner <mattst88@gmail.com>
93 lines
2.3 KiB
C
93 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _ALPHA_IRQ_H
|
|
#define _ALPHA_IRQ_H
|
|
|
|
/*
|
|
* linux/include/alpha/irq.h
|
|
*
|
|
* (C) 1994 Linus Torvalds
|
|
*/
|
|
|
|
#include <linux/linkage.h>
|
|
|
|
#if defined(CONFIG_ALPHA_GENERIC)
|
|
|
|
/* Here NR_IRQS is not exact, but rather an upper bound. This is used
|
|
many places throughout the kernel to size static arrays. That's ok,
|
|
we'll use alpha_mv.nr_irqs when we want the real thing. */
|
|
|
|
/* When LEGACY_START_ADDRESS is selected, we leave out:
|
|
TITAN
|
|
WILDFIRE
|
|
MARVEL
|
|
|
|
This helps keep the kernel object size reasonable for the majority
|
|
of machines.
|
|
*/
|
|
|
|
# if defined(CONFIG_ALPHA_LEGACY_START_ADDRESS)
|
|
# define NR_IRQS (128) /* max is RAWHIDE/TAKARA */
|
|
# else
|
|
# define NR_IRQS (32768 + 16) /* marvel - 32 pids */
|
|
# endif
|
|
|
|
#elif defined(CONFIG_ALPHA_CABRIOLET) || \
|
|
defined(CONFIG_ALPHA_EB66P) || \
|
|
defined(CONFIG_ALPHA_EB164) || \
|
|
defined(CONFIG_ALPHA_PC164) || \
|
|
defined(CONFIG_ALPHA_LX164)
|
|
# define NR_IRQS 35
|
|
|
|
#elif defined(CONFIG_ALPHA_EB66) || \
|
|
defined(CONFIG_ALPHA_EB64P) || \
|
|
defined(CONFIG_ALPHA_MIKASA)
|
|
# define NR_IRQS 32
|
|
|
|
#elif defined(CONFIG_ALPHA_ALCOR) || \
|
|
defined(CONFIG_ALPHA_MIATA) || \
|
|
defined(CONFIG_ALPHA_RUFFIAN) || \
|
|
defined(CONFIG_ALPHA_RX164) || \
|
|
defined(CONFIG_ALPHA_NORITAKE)
|
|
# define NR_IRQS 48
|
|
|
|
#elif defined(CONFIG_ALPHA_SABLE) || \
|
|
defined(CONFIG_ALPHA_SX164)
|
|
# define NR_IRQS 40
|
|
|
|
#elif defined(CONFIG_ALPHA_DP264) || \
|
|
defined(CONFIG_ALPHA_LYNX) || \
|
|
defined(CONFIG_ALPHA_SHARK)
|
|
# define NR_IRQS 64
|
|
|
|
#elif defined(CONFIG_ALPHA_TITAN)
|
|
#define NR_IRQS 80
|
|
|
|
#elif defined(CONFIG_ALPHA_RAWHIDE) || \
|
|
defined(CONFIG_ALPHA_TAKARA) || \
|
|
defined(CONFIG_ALPHA_EIGER)
|
|
# define NR_IRQS 128
|
|
|
|
#elif defined(CONFIG_ALPHA_WILDFIRE)
|
|
# define NR_IRQS 2048 /* enuff for 8 QBBs */
|
|
|
|
#elif defined(CONFIG_ALPHA_MARVEL)
|
|
# define NR_IRQS (32768 + 16) /* marvel - 32 pids*/
|
|
|
|
#else /* everyone else */
|
|
# define NR_IRQS 16
|
|
#endif
|
|
|
|
static __inline__ int irq_canonicalize(int irq)
|
|
{
|
|
/*
|
|
* XXX is this true for all Alpha's? The old serial driver
|
|
* did it this way for years without any complaints, so....
|
|
*/
|
|
return ((irq == 2) ? 9 : irq);
|
|
}
|
|
|
|
struct pt_regs;
|
|
extern void (*perf_irq)(unsigned long, struct pt_regs *);
|
|
|
|
#endif /* _ALPHA_IRQ_H */
|