All of lore.kernel.org
 help / color / mirror / Atom feed
* smmuv1 breakage
@ 2021-06-15  2:21 Stefano Stabellini
  2021-06-15 16:28 ` Rahul Singh
  0 siblings, 1 reply; 7+ messages in thread
From: Stefano Stabellini @ 2021-06-15  2:21 UTC (permalink / raw)
  To: Rahul Singh
  Cc: sstabellini, edgar.iglesias, xen-devel, Bertrand.Marquis, julien, fnuv

[-- Attachment #1: Type: text/plain, Size: 1569 bytes --]

Hi Rahul,

Unfortunately, after bisecting, I discovered a few more breakages due to
your smmuv1 series (commits e889809b .. 3e6047ddf) on Xilinx ZynqMP. I
attached the DTB as reference. Please note that I made sure to
cherry-pick "xen/arm: smmuv1: Revert associating the group pointer with
the S2CR" during bisection. So the errors are present also on staging.

The first breakage is an error at boot time in smmu.c#find_smmu_master,
see log1. I think it is due to the lack of ability to parse the new smmu
bindings in the old smmu driver.

After removing all the "smmus" and "#stream-id-cells" properties in
device tree, I get past the previous error, everything seems to be OK at
early boot, but I actually get SMMU errors as soon as dom0 starting
using devices:

(XEN) smmu: /smmu@fd800000: Unexpected global fault, this could be serious
(XEN) smmu: /smmu@fd800000:     GFSR 0x80000002, GFSYNR0 0x00000000, GFSYNR1 0x00000877, GFSYNR2 0x00000000
[   10.419681] macb ff0e0000.ethernet eth0: DMA bus error: HRESP not OK
[   10.426452] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

Do you think you'll be able to help fix them?


You should be able to reproduce the two issues using Xilinx QEMU (but to
be honest I haven't tested it on QEMU yet, I was testing on real
hardware):
- clone and compile xilinx QEMU https://github.com/Xilinx/qemu.git
  ./configure  --target-list=aarch64-softmmu
  make
- clone and build git://github.com/Xilinx/qemu-devicetrees.git
- use the attached script to run it
    - kernel can be upstream defconfig 5.10

Cheers,

Stefano

[-- Attachment #2: Type: application/octet-stream, Size: 39521 bytes --]

[-- Attachment #3: Type: text/plain, Size: 5713 bytes --]

(XEN) smmu: /smmu@fd800000: d0: p2maddr 0x000000087bf9a000
(XEN) Data Abort Trap. Syndrome=0x4
(XEN) Walking Hypervisor VA 0x14ed0000fbf9fd20 on CPU0 via TTBR 0x0000000000f3f000
(XEN) 0TH[0x0] = 0x0000000000f42f7f
(XEN) 1ST[0x3] = 0x0000000000000000
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ----[ Xen-4.16-unstable  arm64  debug=y  Not tainted ]----
(XEN) CPU:    0
(XEN) PC:     000000000024cfa4 smmu.c#find_smmu_master+0x8/0x3c
(XEN) LR:     000000000024d188
(XEN) SP:     00000000003071f0
(XEN) CPSR:   20000249 MODE:64-bit EL2h (Hypervisor, handler)
(XEN)      X0: 14ed0000fbf9fd28  X1: 00008000fbfcb040  X2: 00008000fbfcb2b0
(XEN)      X3: 00000000002b3870  X4: 0000000000000000  X5: 0000000000000001
(XEN)      X6: 0000000000000000  X7: 0000000000000000  X8: 00008000fbf81c30
(XEN)      X9: fffffffffffffffa X10: 0101010101010101 X11: 0000000000000020
(XEN)     X12: 0000000000000020 X13: ff00000000000000 X14: 0000000000000030
(XEN)     X15: 0000000000000000 X16: 00000000002b5000 X17: 00000000002b5000
(XEN)     X18: 00000000002b6000 X19: 00008000fbffcbf0 X20: 00000000002b3878
(XEN)     X21: 00008000fbfcb040 X22: 00008000fbf9ffd0 X23: 00008000fbfcb0d0
(XEN)     X24: 00008000fbf9d000 X25: 0000000000000001 X26: 0000000000000001
(XEN)     X27: 0000000000000000 X28: 0000000000000000  FP: 00000000003071f0
(XEN) 
(XEN)   VTCR_EL2: 80023558
(XEN)  VTTBR_EL2: 000000087bf9a000
(XEN) 
(XEN)  SCTLR_EL2: 30cd183d
(XEN)    HCR_EL2: 000000000000003a
(XEN)  TTBR0_EL2: 0000000000f3f000
(XEN) 
(XEN)    ESR_EL2: 96000004
(XEN)  HPFAR_EL2: 0000000000f90100
(XEN)    FAR_EL2: 14ed0000fbf9fd20
(XEN) 
(XEN) Xen stack trace from sp=00000000003071f0:
(XEN)    0000000000307220 000000000024d7b0 00008000fbf9d000 00000000fffffff0
(XEN)    00008000fbfcb0b0 0000000800000001 00000000003072a0 000000000024edc8
(XEN)    00008000fbf9d000 00000000fffffff0 00008000fbfcb040 00008000fbfcb0a0
(XEN)    00008000fbfcb0d0 0000000000000000 0000000000000001 0000000000000001
(XEN)    0000000000000000 0000000000000000 00000000003072a0 000000000024ed98
(XEN)    00008000fbf9d000 0000000000307550 00000000003072d0 00000000002c9f7c
(XEN)    00008000fbfcb040 0000000000307550 00008000fbf9d000 0000000000000005
(XEN)    0000000000307390 00000000002ca40c 00008000fbfc8038 0000000000307550
(XEN)    00008000fbf9d000 0000000000000005 00008000fbfcb040 0000000000000000
(XEN)    00008000fbfe2130 0000000000000000 0000000000000000 0000000000000000
(XEN)    00000000002da8e8 00000000fbf6a090 00000000002da8d8 00000000002d9b80
(XEN)    0000000000307380 00000000fd070000 00008000fbfc8038 0000000000030000
(XEN)    00008000fbf9d000 00008000fbf9d000 0000000000000005 00000000002ca308
(XEN)    0000000000307450 00000000002ca40c 00008000fbfc0000 0000000000307550
(XEN)    00008000fbf9d000 0000000000000005 00008000fbfc8038 0000000000000000
(XEN)    00008000fbfe00c4 0000000000000015 0000000000000000 0000000000000000
(XEN)    00000000002da8e8 00000000fbf6a090 00000000002da8d8 00000000002d9b80
(XEN)    0000000000307440 0000000000203ec4 00008000fbfc0000 0000000000307550
(XEN)    00008000fbf9d000 00008000fbf9d000 0000000000000005 00000000002ca308
(XEN)    0000000000307510 00000000002cac70 000000000000a090 0000000000e00000
(XEN)    00000000002daae8 00008000fbf9d000 000000000000000f 0000000000000004
(XEN)    00000000002e8600 0000000000000000 0000000880000000 0000000000000002
(XEN)    00000000002da8e8 000000000022ce50 00000000002da8d8 00000000002d9b80
(XEN)    0000000000307500 00000000002bbcc8 000000000000a090 0000000000e00000
(XEN)    00000000002daae8 00008000fbf9d000 0000000000000005 00000000002cac58
(XEN)    0000000000307df0 00000000002cef64 00008000fbf9d000 00000000002b4780
(XEN)    0000000000348430 0000000000000004 00000000002a84e0 0000000000000000
(XEN)    0000000000000001 00008000fbf9d000 00008000fbf60000 0000000000000000
(XEN)    0000000000000001 0000000020000000 0000000040000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN)    0000000000000000 0000000000000000 0000000000000000 0000000000000000
(XEN) Xen call trace:
(XEN)    [<000000000024cfa4>] smmu.c#find_smmu_master+0x8/0x3c (PC)
(XEN)    [<000000000024d188>] smmu.c#find_smmu_for_device+0x48/0x94 (LR)
(XEN)    [<000000000024d7b0>] smmu.c#arm_smmu_assign_dev+0x58/0xb48
(XEN)    [<000000000024edc8>] iommu_assign_dt_device+0x64/0xc0
(XEN)    [<00000000002c9f7c>] domain_build.c#handle_node+0x310/0x9ec
(XEN)    [<00000000002ca40c>] domain_build.c#handle_node+0x7a0/0x9ec
(XEN)    [<00000000002ca40c>] domain_build.c#handle_node+0x7a0/0x9ec
(XEN)    [<00000000002cac70>] construct_dom0+0x410/0x4bc
(XEN)    [<00000000002cef64>] start_xen+0xbe8/0xcd0
(XEN)    [<00000000002001a0>] arm64/head.o#primary_switched+0xc/0x1c
(XEN) 
(XEN) 
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) CPU0: Unexpected Trap: Data Abort
(XEN) ****************************************
(XEN) 
(XEN) Reboot in five seconds...

[-- Attachment #4: Type: application/x-sh, Size: 967 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-06-23 20:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-15  2:21 smmuv1 breakage Stefano Stabellini
2021-06-15 16:28 ` Rahul Singh
2021-06-16  1:20   ` Stefano Stabellini
2021-06-22 21:06     ` Stefano Stabellini
2021-06-23  8:09       ` Rahul Singh
2021-06-23 16:15         ` Rahul Singh
2021-06-23 20:57           ` Stefano Stabellini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.