OSDN Git Service

irqchip/gic-v3-its: Reduce minimum LPI allocation to 1 for PCI devices
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 31 May 2018 15:21:43 +0000 (16:21 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Jul 2018 09:01:24 +0000 (10:01 +0100)
commit30800b3a1fb14c6f143db5616a4aaea9fef94af3
tree48bcc72a292e8e87a2b7465ac7e6b35a8800c875
parent12b2905af183c931bedcab4292c81d3a415e080f
irqchip/gic-v3-its: Reduce minimum LPI allocation to 1 for PCI devices

Allocating a minimum of 32 LPIs per PCI device, let's reduce it to
be just 1, as most devices do not need that many interrupts.

We still have to special-case DevID 0, as there is plenty of broken
HW around where the PCI RID is not presented as a DevID to the ITS,
and all the devices are presented as DevID 0. In this case, we keep
the 32 minimal allocation.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-v3-its-pci-msi.c