Skip to content

Commit

Permalink
arm64: gic: increase the number of IRQ descriptors
Browse files Browse the repository at this point in the history
The default value of NR_IRQS is not sufficient to support GICv4.1
features and ~56K LPIs. This parameter would be too small for certain
server platforms where it has many IO devices and is capable of
direct injection of vSGI and vLPI features.

Currently, maximum of 64 + 8192 (IRQ_BITMAP_BITS) IRQ descriptors
are allowed. The vCPU creation fails after reaching count ~400 with
kvm-arm.vgic_v4_enable=1.

This patch increases NR_IRQS to 1^19 to cover 56K LPIs and 262144
vSGIs (16K vPEs x 16).

Reviewed-by: Rohit Khanna <[email protected]>
Reviewed-by: Jason Sequeira <[email protected]>
Signed-off-by: Shanker Donthineni <[email protected]>
  • Loading branch information
shankerd04 committed Jan 6, 2023
1 parent b5b8551 commit 68a30a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm64/include/asm/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

#ifndef __ASSEMBLER__

#if defined(CONFIG_ARM_GIC_V3_ITS)
#define NR_IRQS (1 << 19)
#endif

#include <asm-generic/irq.h>

struct pt_regs;
Expand Down

0 comments on commit 68a30a8

Please sign in to comment.