Skip to content

dyn_array/nr_irqs/sparse_irq support v7

Yinghai Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest43 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/43x86_64: Restore the proper NR_IRQS define so larger systems work.include/asm-x86/irq_vectors.h+9 -10 replies
2/438250: Remove NR_IRQ usagedrivers/serial/68328serial.c drivers/serial/8250.c+57 -210 replies
3/43x86: add after_bootmem for 32bitarch/x86/mm/init_32.c+3 -00 replies
4/43x86: remove irq_vectors_limitsinclude/asm-x86/mach-generic/irq_vectors_limits.h include/asm-x86/summit/irq_vectors_limits.h+0 -280 replies
5/43add dyn_array supportinclude/asm-generic/vmlinux.lds.h include/linux/init.h init/main.c+54 -00 replies
6/43add per_cpu_dyn_array supportarch/x86/kernel/setup_percpu.c include/asm-generic/vmlinux.lds.h include/linux/init.h +1 more+96 -70 replies
7/43x86: alloc dyn_array all alltogetherarch/x86/kernel/setup_percpu.c include/linux/init.h init/main.c+62 -210 replies
8/43x86: enable dyn_array supportarch/Kconfig arch/x86/Kconfig arch/x86/kernel/vmlinux_32.lds.S +1 more+7 -00 replies
9/43introduce nr_irqsarch/m68k/kernel/ints.c arch/s390/kernel/irq.c arch/sparc/kernel/irq.c +8 more+39 -290 replies
10/43x86: using nr_irqsarch/x86/kernel/io_apic_32.c arch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_32.c +4 more+44 -380 replies
11/43drivers/char to use nr_irqsdrivers/char/hpet.c drivers/char/random.c drivers/char/vr41xx_giu.c+4 -40 replies
12/43drivers/net to use nr_irqsdrivers/net/3c59x.c drivers/net/hamradio/baycom_ser_fdx.c drivers/net/hamradio/scc.c +1 more+8 -80 replies
13/43drivers intr remapping to use nr_irqsdrivers/pci/intr_remapping.c+8 -80 replies
14/43drivers/pcmcia to use nr_irqsdrivers/pcmcia/at91_cf.c drivers/pcmcia/vrc4171_card.c+2 -20 replies
15/43drivers/rtc to use nr_irqsdrivers/rtc/rtc-vr41xx.c+2 -20 replies
16/43drivers/scsi to use nr_irqsdrivers/scsi/aha152x.c+1 -10 replies
17/43drivers/serial to use nr_irqsdrivers/serial/8250.c drivers/serial/amba-pl010.c drivers/serial/amba-pl011.c +6 more+10 -100 replies
18/43drivers proc to use nr_irqsfs/proc/proc_misc.c+5 -50 replies
19/43drivers xen events to use nr_irqsdrivers/xen/events.c+6 -60 replies
20/43make irq_timer_state to use dyn_arraydrivers/char/random.c+6 -00 replies
21/43make irq2_iommu to use dyn_arraydrivers/pci/intr_remapping.c+10 -20 replies
22/43make irq_desc to use dyn_arrayinclude/linux/irq.h kernel/irq/handle.c+35 -00 replies
23/43irq: make irqs in kernel stat use per_cpu_dyn_arrayinclude/linux/kernel_stat.h kernel/sched.c+8 -10 replies
24/43x86: use dyn_array in io_apic_xx.carch/x86/kernel/io_apic_32.c arch/x86/kernel/io_apic_64.c arch/x86/kernel/setup.c+70 -180 replies
25/43x86: get mp_irqs from madtarch/x86/kernel/acpi/boot.c include/asm-x86/mpspec.h+29 -20 replies
26/43x86: remove nr_irq_vectorsinclude/asm-x86/irq_vectors.h+0 -90 replies
27/43x86_64: use irq_desc() together with dyn_arrayarch/Kconfig arch/alpha/kernel/irq.c arch/alpha/kernel/irq_alpha.c +130 more+1285 -8120 replies
28/43x86: add irq_cfg in io_apic_64.carch/x86/kernel/io_apic_64.c+169 -400 replies
29/43x86: put irq_2_pin pointer into irq_cfgarch/x86/kernel/io_apic_64.c+120 -410 replies
30/43x86: put timer_rand_state pointer into irq_descdrivers/char/random.c include/linux/irq.h+63 -50 replies
31/43x86: move kstat_irqs from kstat to irq_descarch/alpha/kernel/irq.c arch/alpha/kernel/irq_alpha.c arch/arm/kernel/irq.c +33 more+134 -850 replies
32/43add irq_desc_without_newinclude/linux/irq.h kernel/irq/handle.c+37 -30 replies
33/43replace loop with nr_irqs with for_each_irq_descarch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_64.c arch/x86/kernel/irqinit_64.c +4 more+23 -260 replies
34/43replace loop with nr_irqs for proc/statfs/proc/proc_misc.c include/linux/interrupt.h+32 -140 replies
35/43replace loop with nr_irqs with for_each_irq_icfgarch/x86/kernel/io_apic_64.c+12 -120 replies
36/43remove >= nr_irqs checking with config_have_sparse_irqarch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_64.c kernel/irq/chip.c +1 more+55 -480 replies
37/43x86_64: add irq_desc in function in paramaterarch/x86/kernel/io_apic_32.c arch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_32.c +12 more+174 -640 replies
38/43x86: check with without_new in show_interruptsarch/x86/kernel/irq_64.c+4 -10 replies
39/43x86_64: rename irq_desc/irq_desc_with_newarch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_64.c arch/x86/kernel/irqinit_64.c +4 more+41 -460 replies
40/43seperate irq_descX with irq_descX_freeinclude/linux/irq.h kernel/irq/handle.c+60 -550 replies
41/43x86_64: sperate irq_cfgx with irq_cfgx_freearch/x86/kernel/io_apic_64.c+57 -330 replies
42/43x86_64: make /proc/interrupts works with dyn irq_descarch/x86/kernel/irq_64.c fs/proc/proc_misc.c+48 -110 replies
43/43x86: put irq_2_iommu pointer into irq_descdrivers/pci/intr_remapping.c include/linux/irq.h+169 -480 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/43] dyn_array/nr_irqs/sparse_irq support v7

Please check dyn_array support for x86
v3: split changing to nr_irqs to small patches
fix checkpatch error
reorder the patch sequence to make dyn_array support go at first
so could use that with arrays other than NR_IRQS

v4: add CONFIG_HAVE_SPARSE_IRQ with list to use condensed irq_desc array
so could use 32 init, and init more if needed.
x86 32bit: have CONFIG_HAVE_DYN_ARRAY
x86 64bit: have CONFIG_HAVE_DYN_ARRAY and CONFIG_HAVE_SPARSE_IRQ

v5: apply alan cox patch with NR_IRQS for serial at first
seperate irq_descX with irq_descX_free, so could use -1U as valid irq expand /proc/interrupts to process > nr_irqs
hook irq_2_iommu to irq_desc
more other arch irq_desc[] to irq_desc(), and kstat_cpu().irqs[] to kstat_irqs_cpu..

v6: fixed checkpatch errors.., only left warning about lines > 80 chars.
put Eric's patch about NR_IRQS at first

v7: according to Eric, need to take care of that some arch doesn't use generic_hardirqs
reorder some sequence, squash some patches into previous to make patchset bisectable.

based on tip/master

to do:
so dyn irq_desc is done, and ready to:
make create_irq to get irq according to bus/dev/func/vector

Thanks

Yinghai Lu