From: Sander Eikelenboom Subject: Re: Using debug-key 'o: Dump IOMMU p2m table, locks up machine Date: Wed, 5 Sep 2012 12:25:42 +0200 Message-ID: <348297741.20120905122542@eikelenboom.it> References: <40501859.20120902104331@eikelenboom.it> <217459398.20120902171441@eikelenboom.it> <5044CAD7.8030800@amd.com> <1144695277.20120904184345@eikelenboom.it> <5047420A0200007800098BB1@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <5047420A0200007800098BB1@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Wei Wang , Keir Fraser , Santosh Jodh , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Wednesday, September 5, 2012, 12:14:02 PM, you wrote: >>>> On 04.09.12 at 18:43, Sander Eikelenboom wrote: >>> Did you also update xen tools accordingly? Sometime I also saw a few = >>> IO_PAGE_FAULTs came from nic if my tools version and HV version did not = >>> match. But using recent 4.2 and corresponding xl, my tests went well. >>> BTW: You could also try iommu=3Dno-sharept to see if it helps. >> = >> Tried it and it doesn't help. >> I now even got a "xl dmesg" which shows a IO_PAGE_FAULT occuring very ea= rly, = >> before any toolstack or guest can be involved: >> = >> (XEN) [2012-09-04 15:51:17] AMD-Vi: Setup I/O page table: device id =3D = 0x0a05, = >> root table =3D 0x24d84b000, domain =3D 0, paging mode =3D 3 >> (XEN) [2012-09-04 15:51:17] AMD-Vi: Setup I/O page table: device id =3D = 0x0a06, = >> root table =3D 0x24d84b000, domain =3D 0, paging mode =3D 3 >> (XEN) [2012-09-04 15:51:17] AMD-Vi: Setup I/O page table: device id =3D = 0x0a07, = >> root table =3D 0x24d84b000, domain =3D 0, paging mode =3D 3 >> (XEN) [2012-09-04 15:51:17] AMD-Vi: Setup I/O page table: device id =3D = 0x0b00, = >> root table =3D 0x24d84b000, domain =3D 0, paging mode =3D 3 >> (XEN) [2012-09-04 15:51:17] Scrubbing Free RAM: = >> ...........................<0>AMD-Vi: IO_PAGE_FAULT: domain =3D 0, devic= e id =3D = >> 0x0a06, fault address =3D 0xc2c2c2c0 > Looks like use of uninitialized memory (assuming you're using a > debug hypervisor, that's the pattern scrub_one_page() puts > there). But it's unclear to me what device should be doing any > I/O at that point (and even if one does, how it would get the > bad address loaded). What is 0a:00.6? since 4.2-rc4 is still unstable it has debug=3Dy for what i know, so yes. This particular IO_PAGE_FAULT happened before the kernel loads, so the kern= el and pciback shouldn't be causing the issue one would say. With pciback i'm hiding 03:06.0, 04:00.*, 05:00.0, 0a:00.* and 07:00.0 at b= oot. Is there any code i could add to get more info where it comes from ? 00:00.0 Host bridge: ATI Technologies Inc RD890 Northbridge only single slo= t PCI-e GFX Hydra part (rev 02) 00:00.2 Generic system peripheral [0806]: ATI Technologies Inc RD990 I/O Me= mory Management Unit (IOMMU) 00:02.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI expre= ss gpp port B) 00:03.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI expre= ss gpp port C) 00:05.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI expre= ss gpp port E) 00:06.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (PCI expre= ss gpp port F) 00:0a.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (external = gfx1 port A) 00:0b.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (NB-SB lin= k) 00:0c.0 PCI bridge: ATI Technologies Inc Device 5a20 00:0d.0 PCI bridge: ATI Technologies Inc RD890 PCI to PCI bridge (external = gfx1 port B) 00:11.0 SATA controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Contro= ller [AHCI mode] (rev 40) 00:12.0 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Co= ntroller 00:12.2 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Con= troller 00:13.0 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Co= ntroller 00:13.2 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Con= troller 00:14.0 SMBus: ATI Technologies Inc SBx00 SMBus Controller (rev 41) 00:14.3 ISA bridge: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host control= ler (rev 40) 00:14.4 PCI bridge: ATI Technologies Inc SBx00 PCI to PCI Bridge (rev 40) 00:14.5 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Co= ntroller 00:15.0 PCI bridge: ATI Technologies Inc SB700/SB800/SB900 PCI to PCI bridg= e (PCIE port 0) 00:16.0 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Co= ntroller 00:16.2 USB controller: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Con= troller 00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Hype= rTransport Configuration 00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Addr= ess Map 00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM= Controller 00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Misc= ellaneous Control 00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link= Control 03:06.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10) 04:00.0 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.1 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.2 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.3 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.4 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.5 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.6 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 04:00.7 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 05:00.0 Multimedia video controller: Conexant Systems, Inc. CX25850 06:00.0 VGA compatible controller: ATI Technologies Inc RV620 LE [Radeon HD= 3450] 06:00.1 Audio device: ATI Technologies Inc RV620 Audio device [Radeon HD 34= xx Series] 07:00.0 Multimedia video controller: Conexant Systems, Inc. Device 8210 08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B = PCI Express Gigabit Ethernet controller (rev 03) 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B = PCI Express Gigabit Ethernet controller (rev 03) 0a:00.0 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.1 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.2 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.3 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.4 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.5 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.6 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0a:00.7 USB controller: NetMos Technology MCS9990 PCIe to 4=E2Port USB 2.0 = Host Controller 0b:00.0 VGA compatible controller: nVidia Corporation G98 [GeForce 8400 GS]= (rev a1) > Jan