Skip to content

Commit fe8e935

Browse files
author
Marc Zyngier
committed
irqchip/gic-v3-its: Use full range of LPIs
As we used to represent the LPI range using a bitmap, we were reducing the number of LPIs to at most 64k in order to preserve memory. With our new allocator, there is no such need, as dealing with 2^16 or 2^32 LPIs takes the same amount of memory. So let's use the number of IntID bits reported by the GIC instead of an arbitrary limit. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
1 parent 880cb3c commit fe8e935

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/irqchip/irq-gic-v3-its.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,6 @@ static struct irq_chip its_irq_chip = {
14451445
*/
14461446
#define IRQS_PER_CHUNK_SHIFT 5
14471447
#define IRQS_PER_CHUNK (1UL << IRQS_PER_CHUNK_SHIFT)
1448-
#define ITS_MAX_LPI_NRBITS 16 /* 64K LPIs */
14491448

14501449
static DEFINE_MUTEX(lpi_range_lock);
14511450
static LIST_HEAD(lpi_range_list);
@@ -1626,7 +1625,7 @@ static int __init its_alloc_lpi_tables(void)
16261625
{
16271626
phys_addr_t paddr;
16281627

1629-
lpi_id_bits = min_t(u32, gic_rdists->id_bits, ITS_MAX_LPI_NRBITS);
1628+
lpi_id_bits = gic_rdists->id_bits;
16301629
gic_rdists->prop_page = its_allocate_prop_table(GFP_NOWAIT);
16311630
if (!gic_rdists->prop_page) {
16321631
pr_err("Failed to allocate PROPBASE\n");

0 commit comments

Comments
 (0)