mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 10:43:41 +07:00
4013369f37
The switch from using irq_map to irq_alloc_desc*() for managing irq number allocations introduced new bugs in some of the powerpc interrupt code. Several functions rely on the value of NR_IRQS to determine the maximum irq number that could get allocated. However, with sparse_irq and using irq_alloc_desc*() the maximum possible irq number is now specified with 'nr_irqs' which may be a number larger than NR_IRQS. This has caused breakage on powermac when CONFIG_NR_IRQS is set to 32. This patch removes most of the direct references to NR_IRQS in the powerpc code and replaces them with either a nr_irqs reference or by using the common for_each_irq_desc() macro. The powerpc-specific for_each_irq() macro is removed at the same time. Also, the Cell axon_msi driver is refactored to remove the global build assumption on the size of NR_IRQS and instead add a limit to the maximum irq number when calling irq_domain_add_nomap(). Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> |
||
---|---|---|
.. | ||
8xx_immap.h | ||
abs_addr.h | ||
agp.h | ||
asm-compat.h | ||
asm-offsets.h | ||
async_tx.h | ||
atomic.h | ||
auxvec.h | ||
backlight.h | ||
barrier.h | ||
bitops.h | ||
bitsperlong.h | ||
bootx.h | ||
btext.h | ||
bug.h | ||
bugs.h | ||
byteorder.h | ||
cache.h | ||
cacheflush.h | ||
cell-pmu.h | ||
cell-regs.h | ||
checksum.h | ||
clk_interface.h | ||
cmpxchg.h | ||
code-patching.h | ||
compat.h | ||
cpm1.h | ||
cpm2.h | ||
cpm.h | ||
cputable.h | ||
cputhreads.h | ||
cputime.h | ||
current.h | ||
dbdma.h | ||
dbell.h | ||
dcr-generic.h | ||
dcr-mmio.h | ||
dcr-native.h | ||
dcr-regs.h | ||
dcr.h | ||
debug.h | ||
delay.h | ||
device.h | ||
disassemble.h | ||
div64.h | ||
dma-mapping.h | ||
dma.h | ||
edac.h | ||
eeh_event.h | ||
eeh.h | ||
ehv_pic.h | ||
elf.h | ||
emergency-restart.h | ||
emulated_ops.h | ||
epapr_hcalls.h | ||
errno.h | ||
exception-64e.h | ||
exception-64s.h | ||
exec.h | ||
fadump.h | ||
fb.h | ||
fcntl.h | ||
feature-fixups.h | ||
firmware.h | ||
fixmap.h | ||
floppy.h | ||
fs_pd.h | ||
fsl_85xx_cache_sram.h | ||
fsl_gtm.h | ||
fsl_guts.h | ||
fsl_hcalls.h | ||
fsl_ifc.h | ||
fsl_lbc.h | ||
ftrace.h | ||
futex.h | ||
gpio.h | ||
grackle.h | ||
hardirq.h | ||
heathrow.h | ||
highmem.h | ||
hugetlb.h | ||
hvcall.h | ||
hvconsole.h | ||
hvcserver.h | ||
hvsi.h | ||
hw_breakpoint.h | ||
hw_irq.h | ||
hydra.h | ||
i8259.h | ||
ibmebus.h | ||
ide.h | ||
immap_cpm2.h | ||
immap_qe.h | ||
io_event_irq.h | ||
io-defs.h | ||
io-workarounds.h | ||
io.h | ||
ioctl.h | ||
ioctls.h | ||
iommu.h | ||
ipcbuf.h | ||
ipic.h | ||
irq_regs.h | ||
irq.h | ||
irqflags.h | ||
jump_label.h | ||
Kbuild | ||
kdebug.h | ||
kdump.h | ||
kexec.h | ||
keylargo.h | ||
kgdb.h | ||
kmap_types.h | ||
kprobes.h | ||
kvm_44x.h | ||
kvm_asm.h | ||
kvm_book3s_32.h | ||
kvm_book3s_64.h | ||
kvm_book3s_asm.h | ||
kvm_book3s.h | ||
kvm_booke.h | ||
kvm_e500.h | ||
kvm_fpu.h | ||
kvm_host.h | ||
kvm_para.h | ||
kvm_ppc.h | ||
kvm.h | ||
libata-portmap.h | ||
linkage.h | ||
local64.h | ||
local.h | ||
lppaca.h | ||
lv1call.h | ||
machdep.h | ||
macio.h | ||
mc146818rtc.h | ||
mediabay.h | ||
mman.h | ||
mmu_context.h | ||
mmu-8xx.h | ||
mmu-40x.h | ||
mmu-44x.h | ||
mmu-book3e.h | ||
mmu-hash32.h | ||
mmu-hash64.h | ||
mmu.h | ||
mmzone.h | ||
module.h | ||
mpc5xxx.h | ||
mpc6xx.h | ||
mpc8xx.h | ||
mpc52xx_psc.h | ||
mpc52xx.h | ||
mpc5121.h | ||
mpc8260.h | ||
mpic_msgr.h | ||
mpic.h | ||
msgbuf.h | ||
msi_bitmap.h | ||
mutex.h | ||
nvram.h | ||
ohare.h | ||
opal.h | ||
oprofile_impl.h | ||
paca.h | ||
page_32.h | ||
page_64.h | ||
page.h | ||
param.h | ||
parport.h | ||
pasemi_dma.h | ||
pci-bridge.h | ||
pci.h | ||
percpu.h | ||
perf_event_fsl_emb.h | ||
perf_event_server.h | ||
perf_event.h | ||
pgalloc-32.h | ||
pgalloc-64.h | ||
pgalloc.h | ||
pgtable-ppc32.h | ||
pgtable-ppc64-4k.h | ||
pgtable-ppc64-64k.h | ||
pgtable-ppc64.h | ||
pgtable.h | ||
pmac_feature.h | ||
pmac_low_i2c.h | ||
pmac_pfunc.h | ||
pmc.h | ||
pmi.h | ||
poll.h | ||
posix_types.h | ||
ppc4xx.h | ||
ppc_asm.h | ||
ppc-opcode.h | ||
ppc-pci.h | ||
processor.h | ||
prom.h | ||
ps3.h | ||
ps3av.h | ||
ps3fb.h | ||
ps3gpu.h | ||
ps3stor.h | ||
pSeries_reconfig.h | ||
pte-8xx.h | ||
pte-40x.h | ||
pte-44x.h | ||
pte-book3e.h | ||
pte-common.h | ||
pte-fsl-booke.h | ||
pte-hash32.h | ||
pte-hash64-4k.h | ||
pte-hash64-64k.h | ||
pte-hash64.h | ||
ptrace.h | ||
qe_ic.h | ||
qe.h | ||
reg_8xx.h | ||
reg_a2.h | ||
reg_booke.h | ||
reg_fsl_emb.h | ||
reg.h | ||
resource.h | ||
rheap.h | ||
rio.h | ||
rtas.h | ||
rtc.h | ||
runlatch.h | ||
scatterlist.h | ||
scom.h | ||
seccomp.h | ||
sections.h | ||
sembuf.h | ||
serial.h | ||
setjmp.h | ||
setup.h | ||
sfp-machine.h | ||
shmbuf.h | ||
shmparam.h | ||
sigcontext.h | ||
siginfo.h | ||
signal.h | ||
smp.h | ||
smu.h | ||
socket.h | ||
sockios.h | ||
sparsemem.h | ||
spinlock_types.h | ||
spinlock.h | ||
spu_csa.h | ||
spu_info.h | ||
spu_priv1.h | ||
spu.h | ||
sstep.h | ||
stat.h | ||
statfs.h | ||
string.h | ||
swab.h | ||
swiotlb.h | ||
switch_to.h | ||
synch.h | ||
syscall.h | ||
syscalls.h | ||
systbl.h | ||
tce.h | ||
termbits.h | ||
termios.h | ||
thread_info.h | ||
time.h | ||
timex.h | ||
tlb.h | ||
tlbflush.h | ||
topology.h | ||
trace.h | ||
tsi108_irq.h | ||
tsi108_pci.h | ||
tsi108.h | ||
types.h | ||
uaccess.h | ||
ucc_fast.h | ||
ucc_slow.h | ||
ucc.h | ||
ucontext.h | ||
udbg.h | ||
uic.h | ||
unaligned.h | ||
uninorth.h | ||
unistd.h | ||
user.h | ||
vdso_datapage.h | ||
vdso.h | ||
vga.h | ||
vio.h | ||
wsp.h | ||
xics.h | ||
xilinx_intc.h | ||
xilinx_pci.h | ||
xmon.h | ||
xor.h |