Sander Bogaert
2013-Mar-18 12:26 UTC
FastModels Xen Crash - Guest data abort: Translation fault at level 2
Hi, Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging ) and the lastest kernel for dom0 ( git://github.com/torvalds/linux.git - master ) Xen crashes starting dom0. I tried 3 approaches: 1. mmc filesystem xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA0 mem=2048M root=/dev/mmcblk0 rw ip=dhcp" crashlog attached "xen_crash_1_mmc" 2. nfs filesystem xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA1 rw root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootmin ip=dhcp"; crashlog attached "xen_crash_2_nfs" 3. ramdisk - this works! All of these work without Xen, when just booting linux on FastModels. Is this something I did wrong in my setup or have other people had similar issues? I was also wondering if I could get a link to a filesystem that definitely works. I tried several already but it seems they are not the issue since they boot fine without xen on the same model with the same kernel. Thanks! Sander _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Ian Campbell
2013-Mar-18 14:04 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On Mon, 2013-03-18 at 12:26 +0000, Sander Bogaert wrote:> Hi, > > > Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging > ) and the lastest kernel for dom0 > ( git://github.com/torvalds/linux.git - master ) Xen crashes starting > dom0. I tried 3 approaches: > > > 1. mmc filesystem > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA0 > mem=2048M root=/dev/mmcblk0 rw ip=dhcp" > crashlog attached "xen_crash_1_mmc" > 2. nfs filesystem > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA1 rw > root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootmin ip=dhcp"; > crashlog attached "xen_crash_2_nfs" > 3. ramdisk - this works!Interesting. I''ll concentrate on the first one since I know it works. What version of the models are you running? What is your model command line? Where does your DTB come from? What hypervisor command line did it include (it seems your logs only start after the early hypervisor bits, please include everything if possible). (XEN) Guest data abort: Translation fault at level 2 (XEN) gva=ef7ff000 (XEN) gpa=00000000af7ff000 (XEN) instruction syndrome invalid (XEN) eat=0 cm=0 s1ptw=0 dfsc=6 (XEN) dom0 IPA 0x00000000af7ff000 0xaf7ff000 is a DRAM address. I noticed that the guest just logged "Truncating memory at 0x80000000 to fit in 32-bit physical address space". Might relate to how much memory the host and/or dom0 have been given? (XEN) P2M @ 02ffbfc0 mfn:0xffdfe (XEN) 1ST[0x2] = 0x00000000ffdfb6ff (XEN) 2ND[0x17b] = 0x0000000000000000 (XEN) ----[ Xen-4.3-unstable arm32 debug=y Not tainted ]---- (XEN) CPU: 0 (XEN) PC: c014c024 Can you translate 0xc014c024 into a line of the kernel? (e.g. with addr2line). (XEN) CPSR: 200001d3 MODE:32-bit Guest SVC Ian.
Sander Bogaert
2013-Mar-21 20:01 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On 18 March 2013 15:04, Ian Campbell <Ian.Campbell@citrix.com> wrote:> On Mon, 2013-03-18 at 12:26 +0000, Sander Bogaert wrote: > > Hi, > > > > > > Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging > > ) and the lastest kernel for dom0 > > ( git://github.com/torvalds/linux.git - master ) Xen crashes starting > > dom0. I tried 3 approaches: > > > > > > 1. mmc filesystem > > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA0 > > mem=2048M root=/dev/mmcblk0 rw ip=dhcp" > > crashlog attached "xen_crash_1_mmc" > > 2. nfs filesystem > > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA1 rw > > root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootmin ip=dhcp"; > > crashlog attached "xen_crash_2_nfs" > > 3. ramdisk - this works! > > Interesting. I''ll concentrate on the first one since I know it works. > What version of the models are you running? What is your model command > line? >I''m running FastModels 8.0 that I downloaded last week. This is how I execute: ./model_shell ../resources/Cortex-A15x1/ cadi_system_Linux-Release-GCC-4.4.so ../resources/xen_mmc -C motherboard.flashloader0.fname=../resources/kernel -C mothe rboard.mmc.p_mmc_file="../resources/disk.img" -C motherboard.smsc_91c111.enabled=1 -C motherboard.hostbridge.userNetworking=1> Where does your DTB come from? What hypervisor command line did it > include (it seems your logs only start after the early hypervisor bits, > please include everything if possible). >My dtb is compiled from this repository: git://xenbits.xen.org/people/sstabellini/device-trees.git I attached the whole log this time.> (XEN) Guest data abort: Translation fault at level 2 > (XEN) gva=ef7ff000 > (XEN) gpa=00000000af7ff000 > (XEN) instruction syndrome invalid > (XEN) eat=0 cm=0 s1ptw=0 dfsc=6 > (XEN) dom0 IPA 0x00000000af7ff000 > > 0xaf7ff000 is a DRAM address. I noticed that the guest just logged > "Truncating memory at 0x80000000 to fit in 32-bit physical address > space". Might relate to how much memory the host and/or dom0 have been > given? >Where would I configure this?> > (XEN) P2M @ 02ffbfc0 mfn:0xffdfe > (XEN) 1ST[0x2] = 0x00000000ffdfb6ff > (XEN) 2ND[0x17b] = 0x0000000000000000 > (XEN) ----[ Xen-4.3-unstable arm32 debug=y Not tainted ]---- > (XEN) CPU: 0 > (XEN) PC: c014c024 > > > Can you translate 0xc014c024 into a line of the kernel? (e.g. with > addr2line). >addr2line -f -e vmlinux 0xc014c024 __memzero /home/dzan/thesis/source/kernels/linus-linux/arch/arm/lib/memzero.S:54 I''m not really sure this is correct since I did it on the vmlinux binary and I pass the zImage to FastModels.> > > (XEN) CPSR: 200001d3 MODE:32-bit Guest SVC > > Ian. > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Sander Bogaert
2013-Mar-25 16:42 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On 21 March 2013 21:01, Sander Bogaert <sander.bogaert@elis.ugent.be> wrote:> On 18 March 2013 15:04, Ian Campbell <Ian.Campbell@citrix.com> wrote: > >> On Mon, 2013-03-18 at 12:26 +0000, Sander Bogaert wrote: >> > Hi, >> > >> > >> > Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging >> > ) and the lastest kernel for dom0 >> > ( git://github.com/torvalds/linux.git - master ) Xen crashes starting >> > dom0. I tried 3 approaches: >> > >> > >> > 1. mmc filesystem >> > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA0 >> > mem=2048M root=/dev/mmcblk0 rw ip=dhcp" >> > crashlog attached "xen_crash_1_mmc" >> > 2. nfs filesystem >> > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA1 rw >> > root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootmin ip=dhcp"; >> > crashlog attached "xen_crash_2_nfs" >> > 3. ramdisk - this works! >> >> Interesting. I''ll concentrate on the first one since I know it works. >> What version of the models are you running? What is your model command >> line? >> > > I''m running FastModels 8.0 that I downloaded last week. This is how I > execute: > > ./model_shell ../resources/Cortex-A15x1/ > cadi_system_Linux-Release-GCC-4.4.so ../resources/xen_mmc -C > motherboard.flashloader0.fname=../resources/kernel -C mothe > rboard.mmc.p_mmc_file="../resources/disk.img" -C > motherboard.smsc_91c111.enabled=1 -C motherboard.hostbridge.userNetworking=1 > > >> Where does your DTB come from? What hypervisor command line did it >> include (it seems your logs only start after the early hypervisor bits, >> please include everything if possible). >> > > My dtb is compiled from this repository: > git://xenbits.xen.org/people/sstabellini/device-trees.git > > I attached the whole log this time. > > >> (XEN) Guest data abort: Translation fault at level 2 >> (XEN) gva=ef7ff000 >> (XEN) gpa=00000000af7ff000 >> (XEN) instruction syndrome invalid >> (XEN) eat=0 cm=0 s1ptw=0 dfsc=6 >> (XEN) dom0 IPA 0x00000000af7ff000 >> >> 0xaf7ff000 is a DRAM address. I noticed that the guest just logged >> "Truncating memory at 0x80000000 to fit in 32-bit physical address >> space". Might relate to how much memory the host and/or dom0 have been >> given? >> > > Where would I configure this? > > >> >> (XEN) P2M @ 02ffbfc0 mfn:0xffdfe >> (XEN) 1ST[0x2] = 0x00000000ffdfb6ff >> (XEN) 2ND[0x17b] = 0x0000000000000000 >> (XEN) ----[ Xen-4.3-unstable arm32 debug=y Not tainted ]---- >> (XEN) CPU: 0 >> (XEN) PC: c014c024 >> >> >> Can you translate 0xc014c024 into a line of the kernel? (e.g. with >> addr2line). >> > > addr2line -f -e vmlinux 0xc014c024 > __memzero > /home/dzan/thesis/source/kernels/linus-linux/arch/arm/lib/memzero.S:54 > > I''m not really sure this is correct since I did it on the vmlinux binary > and I pass the zImage to FastModels. > > > >> >> >> (XEN) CPSR: 200001d3 MODE:32-bit Guest SVC >> >> Ian. >> >> >Hi, I just wanted to report this seems to be fixed with the latest commits ( Right at the end of the kernel booting my system still hangs but I don''t know if this is related ( see log ) ). Thanks _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Stefano Stabellini
2013-Mar-26 13:52 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On Mon, 25 Mar 2013, Sander Bogaert wrote:> On 21 March 2013 21:01, Sander Bogaert <sander.bogaert@elis.ugent.be> wrote: > On 18 March 2013 15:04, Ian Campbell <Ian.Campbell@citrix.com> wrote: > On Mon, 2013-03-18 at 12:26 +0000, Sander Bogaert wrote: > > Hi, > > > > > > Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging > > ) and the lastest kernel for dom0 > > ( git://github.com/torvalds/linux.git - master ) Xen crashes starting > > dom0. I tried 3 approaches: > > > > > > 1. mmc filesystem > > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA0 > > mem=2048M root=/dev/mmcblk0 rw ip=dhcp" > > crashlog attached "xen_crash_1_mmc" > > 2. nfs filesystem > > xen,dom0-bootargs = "earlyprintk=xenboot console=ttyAMA1 rw > > root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootmin ip=dhcp"; > > crashlog attached "xen_crash_2_nfs" > > 3. ramdisk - this works! > > Interesting. I''ll concentrate on the first one since I know it works. > What version of the models are you running? What is your model command > line? > > > I''m running FastModels 8.0 that I downloaded last week. This is how I execute: > > ./model_shell ../resources/Cortex-A15x1/cadi_system_Linux-Release-GCC-4.4.so ../resources/xen_mmc -C > motherboard.flashloader0.fname=../resources/kernel -C mothe rboard.mmc.p_mmc_file="../resources/disk.img" -C > motherboard.smsc_91c111.enabled=1 -C motherboard.hostbridge.userNetworking=1 > > > Where does your DTB come from? What hypervisor command line did it > include (it seems your logs only start after the early hypervisor bits, > please include everything if possible). > > > My dtb is compiled from this repository: > git://xenbits.xen.org/people/sstabellini/device-trees.git > > I attached the whole log this time. > > > (XEN) Guest data abort: Translation fault at level 2 > (XEN) gva=ef7ff000 > (XEN) gpa=00000000af7ff000 > (XEN) instruction syndrome invalid > (XEN) eat=0 cm=0 s1ptw=0 dfsc=6 > (XEN) dom0 IPA 0x00000000af7ff000 > > 0xaf7ff000 is a DRAM address. I noticed that the guest just logged > "Truncating memory at 0x80000000 to fit in 32-bit physical address > space". Might relate to how much memory the host and/or dom0 have been > given? > > > Where would I configure this? > > > (XEN) P2M @ 02ffbfc0 mfn:0xffdfe > (XEN) 1ST[0x2] = 0x00000000ffdfb6ff > (XEN) 2ND[0x17b] = 0x0000000000000000 > (XEN) ----[ Xen-4.3-unstable arm32 debug=y Not tainted ]---- > (XEN) CPU: 0 > (XEN) PC: c014c024 > > > Can you translate 0xc014c024 into a line of the kernel? (e.g. with addr2line). > > > addr2line -f -e vmlinux 0xc014c024 > __memzero > /home/dzan/thesis/source/kernels/linus-linux/arch/arm/lib/memzero.S:54 > > I''m not really sure this is correct since I did it on the vmlinux binary and I pass the zImage to FastModels. > > > > > (XEN) CPSR: 200001d3 MODE:32-bit Guest SVC > > Ian. >Can you please avoid using HTML in your emails? I use a text based email client, I can barely make out the content.> Hi, > > I just wanted to report this seems to be fixed with the latest commits ( Right at the end of the kernel booting my system still > hangs but I don''t know if this is related ( see log ) ).Thanks, for testing! Have you tried appending init=/bin/bash or init=/bin/sh to the kernel command line? _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Sander Bogaert
2013-Mar-26 17:08 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On 26 March 2013 14:52, Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:> > On Mon, 25 Mar 2013, Sander Bogaert wrote: > > On 21 March 2013 21:01, Sander Bogaert <sander.bogaert@elis.ugent.be>wrote:> > On 18 March 2013 15:04, Ian Campbell <Ian.Campbell@citrix.com>wrote:> > On Mon, 2013-03-18 at 12:26 +0000, Sander Bogaert wrote: > > > Hi, > > > > > > > > > Using the latest Xen staging ( git://xenbits.xen.org/xen.git - staging> > > ) and the lastest kernel for dom0 > > > ( git://github.com/torvalds/linux.git - master ) Xencrashes starting> > > dom0. I tried 3 approaches: > > > > > > > > > 1. mmc filesystem > > > xen,dom0-bootargs = "earlyprintk=xenbootconsole=ttyAMA0> > > mem=2048M root=/dev/mmcblk0 rw ip=dhcp" > > > crashlog attached "xen_crash_1_mmc" > > > 2. nfs filesystem > > > xen,dom0-bootargs = "earlyprintk=xenbootconsole=ttyAMA1 rw> > > root=/dev/nfs nfsroot=157.193.205.141:/srv/nfsrootminip=dhcp";> > > crashlog attached "xen_crash_2_nfs" > > > 3. ramdisk - this works! > > > > Interesting. I''ll concentrate on the first one since I know it works. > > What version of the models are you running? What is your model command > > line? > > > > > > I''m running FastModels 8.0 that I downloaded last week. This is how Iexecute:> > > > ./model_shell ../resources/Cortex-A15x1/cadi_system_Linux-Release-GCC-4.4.so ../resources/xen_mmc -C> > motherboard.flashloader0.fname=../resources/kernel -C motherboard.mmc.p_mmc_file="../resources/disk.img" -C> > motherboard.smsc_91c111.enabled=1 -Cmotherboard.hostbridge.userNetworking=1> > > > > > Where does your DTB come from? What hypervisor command line did it > > include (it seems your logs only start after the early hypervisorbits,> > please include everything if possible). > > > > > > My dtb is compiled from this repository: > > git://xenbits.xen.org/people/sstabellini/device-trees.git > > > > I attached the whole log this time. > > > > > > (XEN) Guest data abort: Translation fault at level 2 > > (XEN) gva=ef7ff000 > > (XEN) gpa=00000000af7ff000 > > (XEN) instruction syndrome invalid > > (XEN) eat=0 cm=0 s1ptw=0 dfsc=6 > > (XEN) dom0 IPA 0x00000000af7ff000 > > > > 0xaf7ff000 is a DRAM address. I noticed that the guest just logged > > "Truncating memory at 0x80000000 to fit in 32-bit physical address > > space". Might relate to how much memory the host and/or dom0 havebeen> > given? > > > > > > Where would I configure this? > > > > > > (XEN) P2M @ 02ffbfc0 mfn:0xffdfe > > (XEN) 1ST[0x2] = 0x00000000ffdfb6ff > > (XEN) 2ND[0x17b] = 0x0000000000000000 > > (XEN) ----[ Xen-4.3-unstable arm32 debug=y Not tainted]----> > (XEN) CPU: 0 > > (XEN) PC: c014c024 > > > > > > Can you translate 0xc014c024 into a line of the kernel? (e.g.with addr2line).> > > > > > addr2line -f -e vmlinux 0xc014c024 > > __memzero > > /home/dzan/thesis/source/kernels/linus-linux/arch/arm/lib/memzero.S:54 > > > > I''m not really sure this is correct since I did it on the vmlinuxbinary and I pass the zImage to FastModels.> > > > > > > > > > (XEN) CPSR: 200001d3 MODE:32-bit Guest SVC > > > > Ian. > > > > > Can you please avoid using HTML in your emails? I use a text based email > client, I can barely make out the content.Sorry about that, I''ll use plain text.> > > > > > > Hi, > > > > I just wanted to report this seems to be fixed with the latest commits( Right at the end of the kernel booting my system still> > hangs but I don''t know if this is related ( see log ) ). > > Thanks, for testing! > Have you tried appending init=/bin/bash or init=/bin/sh to the kernelcommand line? Yes I have but I got other errors too. I think it must have something to do with the roofs I have, could you please point me to the one you ( or other ) developers use? Thanks! _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel
Stefano Stabellini
2013-Mar-26 17:25 UTC
Re: FastModels Xen Crash - Guest data abort: Translation fault at level 2
On Tue, 26 Mar 2013, Sander Bogaert wrote:> > > Hi, > > > > > > I just wanted to report this seems to be fixed with the latest commits ( Right at the end of the kernel booting my system > still > > > hangs but I don''t know if this is related ( see log ) ). > > > > Thanks, for testing! > > Have you tried appending init=/bin/bash or init=/bin/sh to the kernel command line? > > > Yes I have but I got other errors too. I think it must have something to do with the roofs I have, could you please point me to > the one you ( or other ) developers use?I am just using a minimal installation of Debian Wheezy, nothing special.