Skip to content

dyn_array and nr_irqs support v4

Yinghai Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest33 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/33x86: add after_bootmem for 32bitarch/x86/mm/init_32.c+3 -00 replies
2/33x86: remove irq_vectors_limitsinclude/asm-x86/mach-generic/irq_vectors_limits.h include/asm-x86/summit/irq_vectors_limits.h+0 -280 replies
3/33add dyn_array supportinclude/asm-generic/vmlinux.lds.h include/linux/init.h init/main.c+54 -00 replies
4/33add 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
5/33x86: alloc dyn_array all alltogetherarch/x86/kernel/setup_percpu.c include/linux/init.h init/main.c+62 -210 replies
6/33x86: enable dyn_array supportarch/Kconfig arch/x86/Kconfig arch/x86/kernel/vmlinux_32.lds.S +1 more+7 -00 replies
7/33introduce nr_irqsinclude/linux/irq.h kernel/irq/autoprobe.c kernel/irq/chip.c +5 more+32 -290 replies
8/33x86: 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
9/33drivers/char to use nr_irqsdrivers/char/hpet.c drivers/char/random.c drivers/char/vr41xx_giu.c+4 -40 replies
10/33drivers/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
11/33drivers intr remapping to use nr_irqsdrivers/pci/intr_remapping.c+8 -80 replies
12/33drivers/pcmcia to use nr_irqsdrivers/pcmcia/at91_cf.c drivers/pcmcia/vrc4171_card.c+2 -20 replies
13/33drivers/rtc to use nr_irqsdrivers/rtc/rtc-vr41xx.c+2 -20 replies
14/33drivers/scsi to use nr_irqsdrivers/scsi/aha152x.c+1 -10 replies
15/33drivers/serial to use nr_irqsdrivers/serial/8250.c drivers/serial/amba-pl010.c drivers/serial/amba-pl011.c +6 more+11 -110 replies
16/33drivers proc to use nr_irqsfs/proc/proc_misc.c+5 -50 replies
17/33drivers xen events to use nr_irqsdrivers/xen/events.c+6 -60 replies
18/33make irq_timer_state to use dyn_arraydrivers/char/random.c+6 -00 replies
19/33make irq2_iommu to use dyn_arraydrivers/pci/intr_remapping.c+4 -20 replies
20/33make irq_desc to use dyn_arrayinclude/linux/irq.h kernel/irq/handle.c+35 -00 replies
21/33serial: change remove NR_IRQS in 8250.c v2drivers/serial/8250.c+41 -40 replies
22/33irq: make irqs in kernel stat use per_cpu_dyn_arrayinclude/linux/kernel_stat.h kernel/sched.c+8 -10 replies
23/33x86: 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/33x86: get mp_irqs from madtarch/x86/kernel/acpi/boot.c include/asm-x86/mpspec.h+29 -20 replies
25/33x86: remove nr_irq_vectorsinclude/asm-x86/irq_vectors.h+0 -20 replies
26/33x86_64: use get_irq_desc together with dyn_arrayarch/Kconfig arch/x86/Kconfig arch/x86/kernel/io_apic_32.c +25 more+404 -1850 replies
27/33x86: add get_irq_cfg in io_apic_64.carch/x86/kernel/io_apic_64.c+142 -400 replies
28/33x86: put irq_2_pin pointer into irq_cfgarch/x86/kernel/io_apic_64.c+120 -400 replies
29/33x86: put timer_rand_state pointer into irq_descdrivers/char/random.c include/linux/irq.h+22 -110 replies
30/33x86: move kstat_irqs from kstat to irq_descarch/alpha/kernel/irq.c arch/alpha/kernel/irq_alpha.c arch/arm/kernel/irq.c +28 more+120 -800 replies
31/33replace 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+79 -450 replies
32/33remove >= 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+104 -321 reply
33/33x86_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+141 -610 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/33] dyn_array and nr_irqs support v4

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.

now: x86 32bit: have CONFIG_HAVE_DYN_ARRAY
x86 64bit: have CONFIG_HAVE_DYN_ARRAY and CONFIG_HAVE_SPARSE_IRQ

left:
a. hook irq_2_iommu to irq_desc ?
b. expand /proc/interrupts to process > nr_irqs c. expand to use irq > nr_irqs for msi

notes: may break some arch compling...

Thanks

Yinghai Lu