xen/arm: gicv3: clean up GICD_CTRL write
PATCH 1/1 xen/arm: gicv3: clean up GICD_CTRL write
GICD_CTL_ENABLE is a GICv2 bit. Remove it. The definitions of GICD_CTL_ENABLE and GICD_CTLR_ENABLE_G1 are identical, so the value written is unchanged.
--- xen/arch/arm/gic-v3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
xen/arch/arm/gic-v3.c +2 -2
@@ -633,8 +633,8 @@ static void __init gicv3_dist_init(void)gicv3_dist_wait_for_rwp ();/* Turn on the distributor */ -writel_relaxed (GICD_CTL_ENABLE |GICD_CTLR_ARE_NS | -GICD_CTLR_ENABLE_G1A |GICD_CTLR_ENABLE_G1 ,GICD +GICD_CTLR ); +writel_relaxed (GICD_CTLR_ARE_NS |GICD_CTLR_ENABLE_G1A | +GICD_CTLR_ENABLE_G1 ,GICD +GICD_CTLR );/* Route all global IRQs to this CPU */ affinity =gicv3_mpidr_to_affinity (smp_processor_id ());
base-commit: c22fe7213c9b1f99cbc64c33e391afa223f9cd08
Signature · 1 line
2.43.0
Hi Stewart,
Quoted 3 lines · Stewart Hildebrand
GICD_CTL_ENABLEis a GICv2 bit. Remove it. The definitions ofGICD_CTL_ENABLEandGICD_CTLR_ENABLE_G1are identical, so the value written is unchanged.
Thanks for spotting it. Maybe we should move GICv2 specific definitions out of gic.h. Anyway, this is a separate clean-up. So...
Quoted 2 lines
Signed-off-by Stewart Hildebrand <[email protected]>
...
Cheers,
Signature · 1 line
Julien Grall
Quoted 7 lines · Julien Grall
Hi Stewart,
Quoted 3 lines · Stewart Hildebrand
GICD_CTL_ENABLEis a GICv2 bit. Remove it. The definitions ofGICD_CTL_ENABLEandGICD_CTLR_ENABLE_G1are identical, so the value written is unchanged.
Quoted 8 lines
Thanks for spotting it. Maybe we should move GICv2 specific definitions out of
gic.h. Anyway, this is a separate clean-up. So...Quoted 2 lines
Signed-off-by Stewart Hildebrand <[email protected]>...
Reviewed-by Julien Grall <[email protected]>
And committed.
Cheers,
Signature · 1 line
Julien Grall