Skip to content

dyn_array/nr_irqs/sparse_irq support v5

Yinghai Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest42 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/428250: Remove NR_IRQ usagedrivers/serial/68328serial.c drivers/serial/8250.c+60 -242 replies
2/42x86: add after_bootmem for 32bitarch/x86/mm/init_32.c+3 -00 replies
3/42x86: remove irq_vectors_limitsinclude/asm-x86/mach-generic/irq_vectors_limits.h include/asm-x86/summit/irq_vectors_limits.h+0 -280 replies
4/42add dyn_array supportinclude/asm-generic/vmlinux.lds.h include/linux/init.h init/main.c+54 -00 replies
5/42add 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
6/42x86: alloc dyn_array all alltogetherarch/x86/kernel/setup_percpu.c include/linux/init.h init/main.c+62 -210 replies
7/42x86: enable dyn_array supportarch/Kconfig arch/x86/Kconfig arch/x86/kernel/vmlinux_32.lds.S +1 more+7 -00 replies
8/42introduce nr_irqsinclude/linux/irq.h kernel/irq/autoprobe.c kernel/irq/chip.c +5 more+32 -2912 replies
9/42x86: 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
10/42drivers/char to use nr_irqsdrivers/char/hpet.c drivers/char/random.c drivers/char/vr41xx_giu.c+4 -40 replies
11/42drivers/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
12/42drivers intr remapping to use nr_irqsdrivers/pci/intr_remapping.c+8 -80 replies
13/42drivers/pcmcia to use nr_irqsdrivers/pcmcia/at91_cf.c drivers/pcmcia/vrc4171_card.c+2 -20 replies
14/42drivers/rtc to use nr_irqsdrivers/rtc/rtc-vr41xx.c+2 -20 replies
15/42drivers/scsi to use nr_irqsdrivers/scsi/aha152x.c+1 -10 replies
16/42drivers/serial to use nr_irqsdrivers/serial/8250.c drivers/serial/amba-pl010.c drivers/serial/amba-pl011.c +6 more+10 -100 replies
17/42drivers proc to use nr_irqsfs/proc/proc_misc.c+5 -50 replies
18/42drivers xen events to use nr_irqsdrivers/xen/events.c+6 -60 replies
19/42make irq_timer_state to use dyn_arraydrivers/char/random.c+6 -00 replies
20/42make irq2_iommu to use dyn_arraydrivers/pci/intr_remapping.c+9 -20 replies
21/42make irq_desc to use dyn_arrayinclude/linux/irq.h kernel/irq/handle.c+35 -00 replies
22/42irq: make irqs in kernel stat use per_cpu_dyn_arrayinclude/linux/kernel_stat.h kernel/sched.c+8 -10 replies
23/42x86: 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
24/42x86: get mp_irqs from madtarch/x86/kernel/acpi/boot.c include/asm-x86/mpspec.h+29 -20 replies
25/42x86: remove nr_irq_vectorsinclude/asm-x86/irq_vectors.h+0 -20 replies
26/42x86_64: use irq_desc() together with dyn_arrayarch/Kconfig arch/alpha/kernel/irq.c arch/alpha/kernel/irq_alpha.c +130 more+1271 -7950 replies
27/42x86: add irq_cfg in io_apic_64.carch/x86/kernel/io_apic_64.c+142 -400 replies
28/42x86: put irq_2_pin pointer into irq_cfgarch/x86/kernel/io_apic_64.c+120 -400 replies
29/42x86: put timer_rand_state pointer into irq_descdrivers/char/random.c include/linux/irq.h+22 -110 replies
30/42x86: move kstat_irqs from kstat to irq_descarch/alpha/kernel/irq.c arch/alpha/kernel/irq_alpha.c arch/arm/kernel/irq.c +40 more+140 -1030 replies
31/42replace 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 +6 more+65 -310 replies
32/42replace loop with nr_irqs with for_each_irq_icfgarch/x86/kernel/io_apic_64.c+12 -120 replies
33/42remove >= nr_irqs checking with config_have_sparse_irqarch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_64.c drivers/char/random.c +3 more+100 -290 replies
34/42x86_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+172 -640 replies
35/42x86: check with without_new in show_interruptsarch/x86/kernel/irq_64.c+4 -10 replies
36/42x86_64: introduce irq_cfg_with_newarch/x86/kernel/io_apic_64.c+11 -50 replies
37/42x86_64: introduce irq_desc_with_newarch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_64.c arch/x86/kernel/irqinit_64.c +4 more+28 -290 replies
38/42seperate irq_descX with irq_descX_freeinclude/linux/irq.h kernel/irq/handle.c+60 -550 replies
39/42x86_64: sperate irq_cfgx with irq_cfgx_freearch/x86/kernel/io_apic_64.c+57 -330 replies
40/42x86_64: make /proc/interrupts works with dyn irq_descarch/x86/kernel/irq_64.c fs/proc/proc_misc.c+48 -110 replies
41/42x86_64: remove one nr_irqs in show_statfs/proc/proc_misc.c+8 -100 replies
42/42x86: put irq_2_iommu pointer into irq_descdrivers/pci/intr_remapping.c include/linux/irq.h+169 -480 replies

Reviews trailers per patch

None of the 42 patches has a Reviewed-by or Acked-by.

PatchYinghai Lu
1/42
2/42
3/42
4/42
5/42
6/42
7/42
8/42
9/42
10/42
11/42
12/42
13/42
14/42
15/42
16/42
17/42
18/42
19/42
20/42
21/42
22/42
23/42
24/42
25/42
26/42
27/42
28/42
29/42
30/42
31/42
32/42
33/42
34/42
35/42
36/42Singed-off-by
37/42Singed-off-by
38/42
39/42
40/42
41/42
42/42

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/42] dyn_array/nr_irqs/sparse_irq support v5

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..

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