Skip to contentSkip to conversation

arm: xlnx-zynqmp: Fix up GIC region size

PATCH Applied Nathan Rossi 3 participants 3 messages Sep 8, 2015 – Sep 11, 2015 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: xlnx-zynqmp: Fix up GIC region size

The GIC in ZynqMP cover a 64K address space, however the actual registers are decoded within a 4K address space and mirrored at the 4K boundaries. This change fixes the defined size for these regions as it was set to 0x4000/16K incorrectly.

---
 include/hw/arm/xlnx-zynqmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/xlnx-zynqmp.h +1 -1
index 6ccb57b..23b8453 100644
@@ -44,7 +44,7 @@
  * number of memory region aliases.
  */
 
-#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x4000
+#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x1000
 #define XLNX_ZYNQMP_GIC_ALIASES     (0x10000 / XLNX_ZYNQMP_GIC_REGION_SIZE - 1)
 
 typedef struct XlnxZynqMPState {
Signature · 1 line
2.5.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Nathan Rossi

The GIC in ZynqMP cover a 64K address space, however the actual registers are decoded within a 4K address space and mirrored at the 4K boundaries. This change fixes the defined size for these regions as it was set to 0x4000/16K incorrectly.

Adding Alistair, Crosthwaite and Maydell.

Thanks Nathan!
Edgar

Quoted 20 lines
---
 include/hw/arm/xlnx-zynqmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/xlnx-zynqmp.h +1 -1
index 6ccb57b..23b8453 100644
@@ -44,7 +44,7 @@
  * number of memory region aliases.
  */
 
-#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x4000
+#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x1000
 #define XLNX_ZYNQMP_GIC_ALIASES     (0x10000 / XLNX_ZYNQMP_GIC_REGION_SIZE - 1)
 
 typedef struct XlnxZynqMPState {
Signature · 1 line
2.5.1
#2 lore raw
In reply to Nathan Rossi
Quoted 15 lines · Nathan Rossi

The GIC in ZynqMP cover a 64K address space, however the actual registers are decoded within a 4K address space and mirrored at the 4K boundaries. This change fixes the defined size for these regions as it was set to 0x4000/16K incorrectly.

---
 include/hw/arm/xlnx-zynqmp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/arm/xlnx-zynqmp.h +0 -0
index 6ccb57b..23b8453 100644

include/hw/arm/xlnx-zynqmp.h line 50

Quoted 8 lines
include/hw/arm/xlnx-zynqmp.h +1 -1
@@ -44,7 +44,7 @@
  * number of memory region aliases.
  */
 
-#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x4000
+#define XLNX_ZYNQMP_GIC_REGION_SIZE 0x1000
 #define XLNX_ZYNQMP_GIC_ALIASES     (0x10000 / XLNX_ZYNQMP_GIC_REGION_SIZE - 1)
 
 typedef struct XlnxZynqMPState {

Applied to target-arm.next, thanks.

-- PMM