Skip to contentSkip to conversation

arm/vpci: make prefetchable mem 64 bit

PATCH In review Stewart Hildebrand 3 participants 3 messages Apr 24, 2024 – Apr 25, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm/vpci: make prefetchable mem 64 bit

The vPCI prefetchable memory range is >= 4GB, so the memory space flags should be set to 64-bit. See IEEE Std 1275-1994 [1] for a definition of the field.

[1] https://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf

---
 xen/include/public/arch-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/public/arch-arm.h +1 -1
index e167e14f8df9..289af81bd69d 100644
@@ -487,7 +487,7 @@ typedef uint64_t xen_callback_t;
 #define GUEST_RAM0_SIZE   xen_mk_ullong(0xc0000000)
 
 /* 4GB @ 4GB Prefetch Memory for VPCI */
-#define GUEST_VPCI_ADDR_TYPE_PREFETCH_MEM   xen_mk_ullong(0x42000000)
+#define GUEST_VPCI_ADDR_TYPE_PREFETCH_MEM   xen_mk_ullong(0x43000000)
 #define GUEST_VPCI_PREFETCH_MEM_ADDR        xen_mk_ullong(0x100000000)
 #define GUEST_VPCI_PREFETCH_MEM_SIZE        xen_mk_ullong(0x100000000)
 

base-commit: 410ef3343924b5a3928bbe8e392491992b322cf0

Signature · 1 line
2.43.2
Acked-by on v1 1/1
#1 lore raw

Hi Stewart,

Quoted 2 lines · Stewart Hildebrand

The vPCI prefetchable memory range is >= 4GB, so the memory space flags should be set to 64-bit. See IEEE Std 1275-1994 [1] for a definition of

NIT: would be beneficial to provide chapter (in this case 2.2.1.1)

Quoted 5 lines

the field.

[1] https://www.devicetree.org/open-firmware/bindings/pci/pci2_1.pdf

~Michal

Quoted 19 lines
---
 xen/include/public/arch-arm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/include/public/arch-arm.h +1 -1
index e167e14f8df9..289af81bd69d 100644
@@ -487,7 +487,7 @@ typedef uint64_t xen_callback_t;
 #define GUEST_RAM0_SIZE   xen_mk_ullong(0xc0000000)
 
 /* 4GB @ 4GB Prefetch Memory for VPCI */
-#define GUEST_VPCI_ADDR_TYPE_PREFETCH_MEM   xen_mk_ullong(0x42000000)
+#define GUEST_VPCI_ADDR_TYPE_PREFETCH_MEM   xen_mk_ullong(0x43000000)
 #define GUEST_VPCI_PREFETCH_MEM_ADDR        xen_mk_ullong(0x100000000)
 #define GUEST_VPCI_PREFETCH_MEM_SIZE        xen_mk_ullong(0x100000000)
 

base-commit: 410ef3343924b5a3928bbe8e392491992b322cf0