Skip to contentSkip to conversation

xen/arm: zynqmp: Disable PCIe

PATCH In review Edgar E. Iglesias 4 participants 5 messages Jul 31, 2017 – Aug 1, 2017 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

cover xen/arm: zynqmp: Disable PCIe

From: "Edgar E. Iglesias" <[email protected]>

Hi,

We're seeing panics in dom0 with PCIe enabled due to what seems to be wrongly created mappings by Xen. With older kernels we didn't see the panics but PCIe wasn't functional in dom0.

This disables the PCIe nodes on the ZynqMP until Xen/ARM gets more PCIe support.

Can we get this into stable-4.8 and 4.9?

Cheers,
Edgar

Edgar E. Iglesias (1):
xen/arm: Disable PCIe on the ZynqMP

 xen/arch/arm/platforms/xilinx-zynqmp.c | 1 +
 1 file changed, 1 insertion(+)
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 1/1 xen/arm: Disable PCIe on the ZynqMP

From: "Edgar E. Iglesias" <[email protected]>

Disable PCIe on the ZynqMP. Xen does not yet know how to map the controller and dom0 fails to boot with the node enabled.

---
 xen/arch/arm/platforms/xilinx-zynqmp.c | 1 +
 1 file changed, 1 insertion(+)
xen/arch/arm/platforms/xilinx-zynqmp.c +1 -0
index 2adee91..822287b 100644
@@ -29,6 +29,7 @@ static const struct dt_device_match zynqmp_blacklist_dev[] __initconst =
 {
     /* Power management is not yet supported.  */
     DT_MATCH_COMPATIBLE("xlnx,zynqmp-pm"),
+    DT_MATCH_COMPATIBLE("xlnx,nwl-pcie-2.11"),
     { /* sentinel */ },
 };
 
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
In reply to Edgar E. Iglesias
Quoted 3 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Hi,

Hi Edgar,

Quoted 6 lines

We're seeing panics in dom0 with PCIe enabled due to what seems to be wrongly created mappings by Xen. With older kernels we didn't see the panics but PCIe wasn't functional in dom0.

This disables the PCIe nodes on the ZynqMP until Xen/ARM gets more PCIe support.

I feel a bit sad to ack a patch disabling PCIe in the ZynqMP.

Before doing that. Can you describe what is the exact problem with Xen? It might be possible that we don't parse correctly the device-tree.

Cheers,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#3 lore raw
Quoted 14 lines · Julien Grall
Quoted 3 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Hi,

Hi Edgar,

Quoted 4 lines

We're seeing panics in dom0 with PCIe enabled due to what seems to be wrongly created mappings by Xen. With older kernels we didn't see the panics but PCIe wasn't functional in dom0.

Quoted 7 lines
Quoted 2 lines

This disables the PCIe nodes on the ZynqMP until Xen/ARM gets more PCIe support.

I feel a bit sad to ack a patch disabling PCIe in the ZynqMP.

Before doing that. Can you describe what is the exact problem with Xen? It might be possible that we don't parse correctly the device-tree.

Yes, it was related to the DTB since we had a workaround with a modified DTB.

Anyway, I was to quick with sending out the patch.

We've been carrying this for a while and your questions prompted me to have a look again and dig out the details. Turns out I can't reproduce it with our latest kernel and the latest Xen. I don't know what fixed it yet but PCIe works ATM both on QEMU models and on real HW.

I don't think it ever has before without modified DTBs.

So please ignore this patch for now :-)

Cheers,
Edgar

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

#4 lore raw
Quoted 26 lines · Edgar E. Iglesias
Quoted 14 lines · Julien Grall
Quoted 3 lines · Edgar E. Iglesias

From: "Edgar E. Iglesias" <[email protected]>

Hi,

Hi Edgar,

Quoted 4 lines

We're seeing panics in dom0 with PCIe enabled due to what seems to be wrongly created mappings by Xen. With older kernels we didn't see the panics but PCIe wasn't functional in dom0.

Quoted 7 lines
Quoted 2 lines

This disables the PCIe nodes on the ZynqMP until Xen/ARM gets more PCIe support.

I feel a bit sad to ack a patch disabling PCIe in the ZynqMP.

Before doing that. Can you describe what is the exact problem with Xen? It might be possible that we don't parse correctly the device-tree.

Yes, it was related to the DTB since we had a workaround with a modified DTB.

Quoted 8 lines

Anyway, I was to quick with sending out the patch.

We've been carrying this for a while and your questions prompted me to have a look again and dig out the details. Turns out I can't reproduce it with our latest kernel and the latest Xen. I don't know what fixed it yet but PCIe works ATM both on QEMU models and on real HW.

I don't think it ever has before without modified DTBs.

Fantastic!!

Quoted 1 line

So please ignore this patch for now :-)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel