Skip to content

irq: core changes for x86 ioapic hotplug

Yinghai Lu linux-sh lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 1 replyIn review
  2. v18 patches 3 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86, irq: Remove not needed irq_reserve_irqs callingarch/x86/kernel/apic/io_apic.c+0 -30 replies
2/8sh, irq: Remove irq_reserve_irq callingdrivers/sh/intc/core.c+1 -60 replies
3/8irq: Use irq_alloc_desc_at instead of irq_reserve_irqkernel/irq/chip.c+7 -70 replies
4/8s390: Mark bits in allocated_irqs in general codearch/s390/kernel/irq.c include/linux/irq.h kernel/irq/irqdesc.c+16 -10 replies
5/8irq: Kill irq_reserve_irq/irq_reserve_irqsinclude/linux/irq.h kernel/irq/irqdesc.c+0 -310 replies
6/8irq: Add new reserved_irqs clear/mark functionsinclude/linux/irq.h kernel/irq/irqdesc.c+68 -00 replies
7/8irq: Add irq_alloc_reserved_desc()include/linux/irq.h kernel/irq/irqdesc.c+74 -260 replies
8/8irq: Do not free unallocated irq descriptorskernel/irq/irqdesc.c+3 -00 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchSimon Horman
1/8
2/8A-b
3/8
4/8
5/8
6/8
7/8
8/8

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

Read the v3 thread

Cover letter [PATCH v3 0/8] irq: core changes for x86 ioapic hotplug

Hi,

These patches are core changes for x86 ioapic hotplug support.

First part for kill old irq_reserve_irqs:
During reviewing ioapic hotplug patchset, Thomas pointed out that should not extend irq_reserve_irq for that purpose as that is not actually reserve.
Neet to clean up old irq_reserve_irq before introduce reserve/alloc_reserved method for ioapic hotplug.
So here patchset that kill irq_reserve_irq that actually set allocated_irqs. First remove irq_reserve_irqs for x86, and remove irq_reserve_irq for sh.
Then in set_irq_chip use irq_alloc_desc instead of irq_reserve_irq. Next will mark bits in allocated_irqs early for init irqs in !SPARSE_IRQ

Second parts are new reserve/alloc_reserved functions:
It will introduce reserved_irqs bit maps to track reserved irqs. New irq_alloc_reserved_desc() will only allocate desc when that irq is reserved, at the same time irq_alloc_desc will only allocate desc when irq is not reserved.

Thanks

Yinghai

-v2: add new reserve/alloc_reserved sets.
-v3: make irq_alloc_descs to avoid reserved irqs.

Yinghai Lu (8):
x86, irq: Remove not needed irq_reserve_irqs calling sh, irq: Remove irq_reserve_irq calling
irq: Use irq_alloc_desc_at instead of irq_reserve_irq
s390: Mark bits in allocated_irqs in general code
irq: Kill irq_reserve_irq/irq_reserve_irqs
irq: Add new reserved_irqs clear/mark functions
irq: Add irq_alloc_reserved_desc()
irq: Do not free unallocated irq descriptors

 arch/s390/kernel/irq.c         |   6 +-
 arch/x86/kernel/apic/io_apic.c |   3 -
 drivers/sh/intc/core.c         |   7 +-
 include/linux/irq.h            |  13 ++--
 kernel/irq/chip.c              |  14 ++--
 kernel/irq/irqdesc.c           | 144 ++++++++++++++++++++++++++++++++++-------
 6 files changed, 141 insertions(+), 46 deletions(-)
Signature · 1 line
1.8.4.5