Skip to content

dyn_array and nr_irqs support v3 -- addon

Yinghai Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4x86_64: use get_irq_desc together with dyn_arrayarch/x86/kernel/io_apic_32.c arch/x86/kernel/io_apic_64.c arch/x86/kernel/irq_32.c +23 more+377 -1850 replies
2/4x86: add get_irq_cfg in io_apic_64.carch/x86/kernel/io_apic_64.c+141 -404 replies
3/4x86: put timer_rand_state pointer into irq_descdrivers/char/random.c include/linux/irq.h+22 -110 replies
4/4x86: put irq_2_pin pointer into irq_cfg - 64bitarch/x86/kernel/io_apic_64.c+97 -370 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/04] dyn_array and nr_irqs support v3 -- addon

use pre_allocate array and list to index struct with irq_no to avoid wasting struct between irq

01: x86_64: use get_irq_desc together with dyn_array 02: x86: add get_irq_cfg in io_apic_64.c
03: x86: put timer_rand_state pointer into irq_desc 04: x86: put irq_2_pin pointer into irq_cfg - 64bit

got:
dyn_array irq_2_pin_head+0x0/0x8 size:0x10 nr:32 align:0x10 dyn_array irq_cfgx+0x0/0x8 size:0x120 nr:32 align:0x1000 dyn_array irq_desc+0x0/0x8 size:0x200 nr:32 align:0x1000 dyn_array irq_2_iommu+0x0/0x8 size:0x10 nr:96 align:0x1000 dyn_array total_size: 0x8200
dyn_array irq_2_pin_head+0x0/0x8 ==> [0x28028000 - 0x28028200] dyn_array irq_cfgx+0x0/0x8 ==> [0x28029000 - 0x2802b400] dyn_array irq_desc+0x0/0x8 ==> [0x2802c000 - 0x28030000] dyn_array irq_2_iommu+0x0/0x8 ==> [0x28030000 - 0x28030600] per_cpu_dyn_array per_cpu__kstat+0x48/0x50 size:0x4 nr:96 align:0x8

irq_cfg/irq_desc will increase by 32 automatically, and the use one by one.

to do:
1. will work ong irq_2_iommu: put it in irq_desc or irq_cfg?
2. will update Eric's patch to move kstat_irqs from per cpu to irq_desc...
3. after that will clean up nr_irqs, and try to kill it

Thanks

Yinghai Lu