Skip to content

Commit e88bd31

Browse files
Zenghui YuMarc Zyngier
authored andcommitted
irqchip/gic-v4.1: Fix programming of GICR_VPROPBASER_4_1_SIZE
The Size field of GICv4.1 VPROPBASER register indicates number of pages minus one and together Page_Size and Size control the vPEID width. Let's respect this requirement of the architecture. Signed-off-by: Zenghui Yu <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 1079452 commit e88bd31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2531,7 +2531,7 @@ static int allocate_vpe_l1_table(void)
25312531
npg = 1;
25322532
}
25332533

2534-
val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg);
2534+
val |= FIELD_PREP(GICR_VPROPBASER_4_1_SIZE, npg - 1);
25352535

25362536
/* Right, that's the number of CPU pages we need for L1 */
25372537
np = DIV_ROUND_UP(npg * psz, PAGE_SIZE);

0 commit comments

Comments
 (0)