[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] AMD-VI IOMMU and Xen hang


  • To: xen-users@xxxxxxxxxxxxxxxxxxxx
  • From: Piotr Król <piotr.krol@xxxxxxxxx>
  • Date: Fri, 10 Aug 2018 18:46:06 +0200
  • Autocrypt: addr=piotr.krol@xxxxxxxxx; prefer-encrypt=mutual; keydata= xsFNBFlSUoABEAC04eaat4at1ooZCnvfND8yJahMuTmjHuEQdX1obxyGG89gX/JmNebuPn7p O1ZtMDSpznnzXiUa/h2Gtb8Vut7x4IYWlP80Gvaomftx3fSbx+AJyfejkCidTpF3o6rfApK8 ueyV8dVA8DdWzxtQGg7fhhfBvnSubxEb59gHozpfS5zoK5i2e5TjQU7E7JfFBpRoLsYIhZoZ qXuGc/NRjrd+mp9pbtH1y5GQhVbjCvmkEZHkIbvVuNvntlpeZXLV8R4A+21/ob+dReFNXNrN 8SMKvjR0F+cyGvlOG2P0OIe1h50bvr0bgF/a91TT5h4+13rYFUMXvnW4h+v6PvsrFWIs5PXl +RCmFH385ZsdmFjVuCwwfeSwFoO1E2rS8aTJwae7GEsGpnxrhD70ZHValHmSoUnXkX5eeSFh 4DjmYQWpPxjvKMAiiWTsLHSqyzRwpDvJQy+ZfjttR/ltGBkG4FOOO20QRAsaeSfntj4cplSF I9FJ4m5mpnFk1zxTpDRTz1fktesdYp+pW4ZkxORqgy/I3kAeWaZ1YdokAvgqcfDZGRNt2CUr FSr635dLWNBJc6tCt2Fpbzo1iMXderMmGuIyXpBpEVlDzNmAAhLMh5Yz/leStrvTYO8rCWkA aqz01NyvbeCi1uGygG4pXdhOXnArtuzYuDFGVVvgW0qFQZqXIQARAQABzSJQaW90ciBLcsOz bCA8cGlvdHIua3JvbEAzbWRlYi5jb20+wsGUBBMBCAA+FiEE4DCbLYWmfoRjKeNLsu5x6Weq nkwFAllSUoACGyMFCQlmAYAFCwkIBwIGFQgJCgsCBBYCAwECHgECF4AACgkQsu5x6WeqnkzZ WxAAmL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ery-date: Sun, 12 Aug 2018 15:33:06 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>
  • Openpgp: preference=signencrypt

Hello Xen users,
I'm working on enabling IOMMU for PC Engines apu2 (GX-412TC). I was able
to clean up patches posted to coreboot long time ago [1].

Unfortunately from time to time I'm facing hangs during Xen boot:

(XEN) CPU1: No irq handler for vector e7 (IRQ -2147483648)
(XEN) CPU2: No irq handler for vector e7 (IRQ -2147483648)
(

Full correct boot log [2].

I was not able so far to narrow down procedure to reproduce the issue
reliably. My setup is as follow:

- Xen 4.8.3 boot over PXE and rootfs over NFS
- Debian stable with Linux 4.14.y (tried couple versions)

I also can't see any pattern in occurrence of this issue, sometimes it
happen that I see 100 consecutive correct boots without issue. Sometimes
can't boot Xen since getting hang each time.

I tried to compile Xen myself, but instructions [3] doesn't work for me
using Debian stable. I create Docker container with all dependencies but
make debball complain about missing sys/cdefs.h. I'm not sure what is
most recent way of building Xen on Debian. Also can try to rebuild
modified xen package for my rootfs, if you think it make sense.

If you have ideas how I can continue debugging of that issue or maybe
know what cause it please let me know.

[1] https://review.coreboot.org/#/c/coreboot/+/15164/
[2]
https://github.com/pcengines/apu2-documentation/blob/master/docs/logs/iommu_enabled_xl_dmesg.log
[3] https://wiki.xenproject.org/wiki/Compiling_Xen_From_Source

Best Regards,
-- 
Piotr Król
Embedded Systems Consultant
https://3mdeb.com | @3mdeb_com



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.