[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[kvm-unit-tests PATCH v5 04/13] arm/arm64: gicv3: Add some re-distributo
From: |
Eric Auger |
Subject: |
[kvm-unit-tests PATCH v5 04/13] arm/arm64: gicv3: Add some re-distributor defines |
Date: |
Tue, 10 Mar 2020 15:54:01 +0100 |
PROPBASER, PENDBASE and GICR_CTRL will be used for LPI management.
Signed-off-by: Eric Auger <address@hidden>
Reviewed-by: Zenghui Yu <address@hidden>
---
v3 -> v4:
- replace some spaces by tabs and added Zenghui's R-b
---
lib/arm/asm/gic-v3.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/arm/asm/gic-v3.h b/lib/arm/asm/gic-v3.h
index e2736a1..47df051 100644
--- a/lib/arm/asm/gic-v3.h
+++ b/lib/arm/asm/gic-v3.h
@@ -18,6 +18,7 @@
* We expect to be run in Non-secure mode, thus we define the
* group1 enable bits with respect to that view.
*/
+#define GICD_CTLR 0x0000
#define GICD_CTLR_RWP (1U << 31)
#define GICD_CTLR_ARE_NS (1U << 4)
#define GICD_CTLR_ENABLE_G1A (1U << 1)
@@ -38,6 +39,11 @@
#define GICR_ICACTIVER0 GICD_ICACTIVER
#define GICR_IPRIORITYR0 GICD_IPRIORITYR
+#define GICR_PROPBASER 0x0070
+#define GICR_PENDBASER 0x0078
+#define GICR_CTLR GICD_CTLR
+#define GICR_CTLR_ENABLE_LPIS (1UL << 0)
+
#define ICC_SGI1R_AFFINITY_1_SHIFT 16
#define ICC_SGI1R_AFFINITY_2_SHIFT 32
#define ICC_SGI1R_AFFINITY_3_SHIFT 48
--
2.20.1
- [kvm-unit-tests PATCH v5 00/13] arm/arm64: Add ITS tests, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 02/13] page_alloc: Introduce get_order(), Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 03/13] arm/arm64: gic: Introduce setup_irq() helper, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 04/13] arm/arm64: gicv3: Add some re-distributor defines,
Eric Auger <=
- [kvm-unit-tests PATCH v5 05/13] arm/arm64: gicv3: Set the LPI config and pending tables, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 06/13] arm/arm64: ITS: Introspection tests, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 07/13] arm/arm64: ITS: its_enable_defaults, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 01/13] libcflat: Add other size defines, Eric Auger, 2020/03/10
- [kvm-unit-tests PATCH v5 08/13] arm/arm64: ITS: Device and collection Initialization, Eric Auger, 2020/03/10