From owner-freebsd-current@freebsd.org Fri Oct 12 15:52:37 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F095310C26F8 for ; Fri, 12 Oct 2018 15:52:36 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smarthost2.sentex.ca", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B0A789986 for ; Fri, 12 Oct 2018 15:52:36 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5:0:0:0:11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id w9CFqZ0K038976 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 12 Oct 2018 11:52:36 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.net [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id w9CFqYhJ023829 for ; Fri, 12 Oct 2018 11:52:34 -0400 (EDT) (envelope-from mike@sentex.net) To: FreeBSD-Current From: Mike Tancsa Subject: Strange panic at boot with vmm in loader.conf vs manually loading it Openpgp: preference=signencrypt Autocrypt: addr=mike@sentex.net; prefer-encrypt=mutual; keydata= xsBNBEzcA24BCACpwI/iqOrs0GfQSfhA1v6Z8AcXVeGsRyKEKUpxoOYxXWc2z3vndbYlIP6E YJeifzKhS/9E+VjhhICaepLHfw865TDTUPr5D0Ed+edSsKjlnDtb6hfNJC00P7eoiuvi85TW F/gAxRY269A5d856bYrzLbkWp2lKUR3Bg6NnORtflGzx9ZWAltZbjYjjRqegPv0EQNYcHq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VP5QNGGF5wus N4EMwXouskva1hbFX3Pv72csYSxxEJXjW16oV8WK4KjKXoskLg2RyRP4uXqL7Mp2ezNtVY5F 9nu3fj4ydpHCSaqKy5xd70A8D50PfZsFgkrsa5gdQhPiGGEdxhq/XSeAAnZ4uVLJKarH+mj5 MEhgZPEBWkGrbDZpezl9qbFcUem/uT9x8FYT/JIztMVh9qDcdP5tzANW5J7nvgXjska+VFGY ryZK4SPDczh74mn6GI/+RBi7OUzXXPgpPBrhS5FByjwCqjjsSpTjTds+NGIY Organization: Sentex Communications Message-ID: <8d6263ca-8fff-77e5-4a89-ccc98d03a417@sentex.net> Date: Fri, 12 Oct 2018 11:52:35 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-Scanned-By: MIMEDefang 2.83 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Oct 2018 15:52:37 -0000 I am guessing this does not have anything to do with vmm being loaded, but hardware being initialized in a particular order? If I load vmm in loader.conf, the box panics at boot up.=C2=A0 However, manually loading i= t all seems to work.=C2=A0 Hardware is PRIME X370-PRO, AMD Ryzen 5 1600X 32= G RAM.=C2=A0 FreeBSD 12.0-ALPHA9 r339328 GENERIC-NODEBUG Leading up to the crash, I see ugen0.1: <0x1022 XHCI root HUB> at usbus0 ugen1.1: <0x1b21 XHCI root HUB> at usbus1 Trying to mount root from zfs:zroot/ROOT/default []... uhub0: ugen2.1: <0x1022 XHCI root HUB> at usbus2 Root mount waiting for: usbus2<0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 =C2=A0usbus1 usbus0 uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2= uhub2: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1= uhub2: 4 ports with 4 removable, self powered uhub1: 8 ports with 8 removable, self powered uhub0: 22 ports with 22 removable, self powered Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 00 fault virtual address=C2=A0=C2=A0 =3D 0x398 fault code=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 =3D supervisor write data, page not present instruction pointer=C2=A0=C2=A0=C2=A0=C2=A0 =3D 0x20:0xffffffff8273d776 stack pointer=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D 0x28:0xfffffe0075d55230 frame pointer=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =3D 0x28:0xfffffe0075d55270 code segment=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 =3D base 0x0, limit 0xfffff, type 0x1b =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D DPL 0= , pres 1, long 1, def32 0, gran 1 processor eflags=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D interrupt = enabled, resume, IOPL =3D 0 current process=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =3D 1 (ke= rnel) [ thread pid 1 tid 100002 ] Stopped at=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 rrw_enter_read_impl+0x36:=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 lock cmpxchgq=C2=A0=C2=A0 %r14,0x18(%rbx) db> bt Tracing pid 1 tid 100002 td 0xfffff8000567d580 rrw_enter_read_impl() at rrw_enter_read_impl+0x36/frame 0xfffffe0075d5527= 0 zfs_mount() at zfs_mount+0x7b2/frame 0xfffffe0075d55400 vfs_domount() at vfs_domount+0x5b2/frame 0xfffffe0075d55630 vfs_donmount() at vfs_donmount+0x930/frame 0xfffffe0075d556d0 kernel_mount() at kernel_mount+0x3d/frame 0xfffffe0075d55720 parse_mount() at parse_mount+0x451/frame 0xfffffe0075d55860 vfs_mountroot() at vfs_mountroot+0x7a0/frame 0xfffffe0075d559f0 start_init() at start_init+0x27/frame 0xfffffe0075d55a70 fork_exit() at fork_exit+0x83/frame 0xfffffe0075d55ab0 fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0075d55ab0 --- trap 0, rip =3D 0, rsp =3D 0, rbp =3D 0 --- db> On a normal boot, the next line would be atrtc0 uhub0: Root mount waiting for: usbus2ugen2.1: <0x1022 XHCI root HUB> at u= sbus2 <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 usbus1 usbus0uhub1: <0x1b21 XHCI root HUB, class 9/0, rev 3.00/1.00, add= r 1> on usbus1 uhub2: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus2= uhub1: 4 ports with 4 removable, self powered uhub2: 8 ports with 8 removable, self powered uhub0: 22 ports with 22 removable, self powered atrtc0: providing initial system time start_init: trying /sbin/init Setting hostuuid: c3297ba0-3f01-11e7-8725-6045cba08a84. Setting hostid: 0x094fa67e. Starting file system checks: Mounting local filesystems:. ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/loca= l/lib/perl5/5.26/mach/CORE 32-bit compatibility ldconfig path: /usr/lib32 Setting hostname: ryzenbsd12.sentex.ca. Manually loading it, dmesg shows AMD-Vi: IVRS Info VAsize =3D 64 PAsize =3D 48 GVAsize =3D 2 flags:0 driver bug: Unable to set devclass (class: ppc devname: (unknown)) ivhd0: on acpi0 ivhd0: Flag:b0 ivhd0: Features(type:0x11) MsiNumPPR =3D 0 PNBanks=3D 2 PNCounters=3D 0 ivhd0: Extended features[31:0]:22294ada HATS =3D= 0x2 GATS =3D 0x0 GLXSup =3D 0x1 SmiFSup =3D 0x1 SmiFRC =3D 0x2 GAMSup =3D= 0x1 DualPortLogSup =3D 0x2 DualEventLogSup =3D 0x2 ivhd0: Extended features[62:32]:f77ef Max PASID: 0x2f DevTblSegSup= =3D 0x3 MarcSup =3D 0x1 ivhd0: supported paging level:7, will use only: 4 ivhd0: device range: 0x0 - 0xffff ivhd0: PCI cap 0x190b640f@0x40 feature:19 and loading it manually with boot.verbose set pci0: driver added found-> vendor=3D0x1022, dev=3D0x1451, revid=3D0x00 domain=3D0, bus=3D0, slot=3D0, func=3D2 class=3D08-06-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0004, statreg=3D0x0010, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) MSI supports 4 messages, 64 bit pci0:0:0:2: reprobing on driver added found-> vendor=3D0x1022, dev=3D0x790b, revid=3D0x59 domain=3D0, bus=3D0, slot=3D20, func=3D0 class=3D0c-05-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0403, statreg=3D0x0220, cachelnsz=3D0 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) pci0:0:20:0: reprobing on driver added pci1: driver added pci2: driver added pci3: driver added pci4: driver added pci5: driver added pci6: driver added pci7: driver added pci8: driver added pci9: driver added found-> vendor=3D0x1425, dev=3D0x5501, revid=3D0x00 domain=3D0, bus=3D9, slot=3D0, func=3D5 class=3D01-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0006, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) intpin=3Db, irq=3D55 powerspec 3 supports D0 D3 current D0 MSI supports 32 messages, 64 bit, vector masks MSI-X supports 40 messages in map 0x20 pci0:9:0:5: reprobing on driver added found-> vendor=3D0x1425, dev=3D0x5601, revid=3D0x00 domain=3D0, bus=3D9, slot=3D0, func=3D6 class=3D0c-04-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0006, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) intpin=3Dc, irq=3D52 powerspec 3 supports D0 D3 current D0 MSI supports 32 messages, 64 bit, vector masks MSI-X supports 40 messages in map 0x20 pci0:9:0:6: reprobing on driver added pci10: driver added pci11: driver added found-> vendor=3D0x1022, dev=3D0x145a, revid=3D0x00 domain=3D0, bus=3D11, slot=3D0, func=3D0 class=3D13-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) powerspec 3 supports D0 D3 current D0 pci0:11:0:0: reprobing on driver added found-> vendor=3D0x1022, dev=3D0x1456, revid=3D0x00 domain=3D0, bus=3D11, slot=3D0, func=3D2 class=3D10-80-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) intpin=3Db, irq=3D36 powerspec 3 supports D0 D3 current D0 MSI supports 2 messages, 64 bit MSI-X supports 2 messages in map 0x24 pci0:11:0:2: reprobing on driver added pci12: driver added found-> vendor=3D0x1022, dev=3D0x1455, revid=3D0x00 domain=3D0, bus=3D12, slot=3D0, func=3D0 class=3D13-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0007, statreg=3D0x0010, cachelnsz=3D16 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x00 (0 ns= ) powerspec 3 supports D0 D3 current D0 pci0:12:0:0: reprobing on driver added AMD-Vi: IVRS Info VAsize =3D 64 PAsize =3D 48 GVAsize =3D 2 flags:0 ivhd: ivhd0 already exists; skipping it ACPI: Processor \134_PR_.P00C (ACPI ID 13) ignored Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 ACPI: Processor \134_PR_.P00D (ACPI ID 14) ignored Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 ACPI: Processor \134_PR_.P00E (ACPI ID 15) ignored Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 ACPI: Processor \134_PR_.P00F (ACPI ID 16) ignored Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 ppc: ppc-1 already exists; skipping it driver bug: Unable to set devclass (class: ppc devname: (unknown)) Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 Table 'FACP' at 0xb5adbcb0 FACP: Found table at 0xb5adbcb0 ivhd0: on acpi0 ivhd0: Flag:b0 ivhd0: Features(type:0x11) MsiNumPPR =3D 0 PNBanks=3D 2 PNCounters=3D 0 ivhd0: Extended features[31:0]:22294ada HATS =3D= 0x2 GATS =3D 0x0 GLXSup =3D 0x1 SmiFSup =3D 0x1 SmiFRC =3D 0x2 GAMSup =3D= 0x1 DualPortLogSup =3D 0x2 DualEventLogSup =3D 0x2 ivhd0: Extended features[62:32]:f77ef Max PASID: 0x2f DevTblSegSup= =3D 0x3 MarcSup =3D 0x1 ivhd0: supported paging level:7, will use only: 4 ivhd0: device range: 0x0 - 0xffff ivhd0: PCI cap 0x190b640f@0x40 feature:19 msi: routing MSI IRQ 305 to local APIC 12 vector 52 ---Mike --=20 ------------------- Mike Tancsa, tel +1 519 651 3400 x203 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada =20