Hannu Vuolasaho <[email protected]> writes: > Hi, > > I have been wondering what is going on. I have a Lenovo Thinkpad T14s 1st. > gen and vmd stopped to boot Arch Linux. Newest > installation media and installed system crash in a similar way. > Older Arch installation media from March boots nicely and Devuan and Gentoo > installers boot just fine. > > vmd[97063]: vm/test: vmd: invalid fault_type 2 > This comes from VEE_FAUL_MMIO_ASSIST which is something not yet enabled. and > has been disabled for a while. > > A repeatable way to test this crash on this machine is: > doas vmctl start -c -r archlinux-2025.11.01-x86_64.iso -m 1024M test > And on boot loader echoes make life little bit harder but basically: > <tab><space>console=ttyS0,115200<enter> > And the same command boots on Intel thinkpad and APUpc with other AMD > processor. Also memory amount doesn't make a > difference. And boot images are the same. > > Boot stops very fast. Last printed line is: > [ 1.466535] mce: Unable to init MCE device (rc: -5) > > [EOT] > > So this is probably something processor specific. > > I haven't started goofing around the kernel yet but if someone has some good > ideas, let me know.
I have zero familiarity with what Linux kernel Arch builds/ships in its distro. Do other distros like Alpine work? I think I have a similar processor from an older X13 AMD machine, but it's not with me at the moment. If you can figure out the exact kernel version used by arch and if other distros like Alpine or Debian work, it will help me isolate the issue. Lastly, if you can build vmd but change in vm.c MMIO_NOTYET and run with debug logging you should be able to provide the problematic guest memory address causing this. Chances are the guest kernel is trying to poke memory of a device we don't emulate and it's in the pci mmio region and since we don't do mmio emulation yet we barf. > > Best regards, > Hannu Vuolasaho > > OpenBSD 7.8-current (GENERIC.MP) #107: Tue Nov 18 08:45:14 MST 2025 > [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 16301219840 (15546MB) > avail mem = 15780220928 (15049MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xbf710000 (69 entries) > bios0: vendor LENOVO version "R1CET82W(1.51 )" date 11/05/2024 > bios0: LENOVO 20UJS0QQ00 > efi0 at bios0: UEFI 2.7 > efi0: Lenovo rev 0x13f0 > acpi0 at bios0: ACPI 6.3 > acpi0: sleep states S0ix S4 S5 > acpi0: tables DSDT FACP SSDT SSDT SSDT IVRS SSDT SSDT TPM2 SSDT MSDM BATB > HPET APIC MCFG SBST WSMT VFCT SSDT CRAT CDIT > FPDT SSDT SSDT SSDT SSDT BGRT SSDT SSDT SSDT SSDT UEFI SSDT SSDT > acpi0: wakeup devices GPP0(S0) RESA(S3) GPP5(S0) GPP6(S0) GP17(S0) LID_(S4) > SLPB(S3) > acpitimer0 at acpi0: 3579545 Hz, 32 bits > acpihpet0 at acpi0: 14318180 Hz > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu0: cpuid 1 > edx=178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT> > ecx=76d8320b<SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND> > cpu0: cpuid 6 eax=4<ARAT> ecx=1<EFFFREQ> > cpu0: cpuid 7.0 > ebx=219c91a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,PQM,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA> > ecx=400004<UMIP> > cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES> > cpu0: cpuid 80000001 edx=2fd3fbff<NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG> > ecx=75c237ff<LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX> > cpu0: cpuid 80000007 edx=6799<HWPSTATE,ITSC> > cpu0: cpuid 80000008 ebx=90cf757<IBPB,IBRS,STIBP,IBRS_PREF,IBRS_SM,SSBD> > cpu0: cpuid 8000001F eax=1000f<SME,SEV,PFLUSH_MSR,SEVES,VTE> ecx=e edx=1 > cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 512KB > 64b/line 8-way L2 cache, 4MB 64b/line 16-way L3 > cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges > cpu0: apic clock running at 100MHz > cpu0: mwait min=64, max=64, C-substates=1.1, IBE > cpu1 at mainbus0: apid 1 (application processor) > cpu1: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu1: smt 1, core 0, package 0 > cpu2 at mainbus0: apid 2 (application processor) > cpu2: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu2: smt 0, core 1, package 0 > pu3 at mainbus0: apid 3 (application processor) > cpu3: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu3: smt 1, core 1, package 0 > cpu4 at mainbus0: apid 4 (application processor) > cpu4: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu4: smt 0, core 2, package 0 > cpu5 at mainbus0: apid 5 (application processor) > cpu5: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.01 MHz, 17-60-01, > patch 0860010d > cpu5: smt 1, core 2, package 0 > cpu6 at mainbus0: apid 6 (application processor) > cpu6: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu6: smt 0, core 3, package 0 > cpu7 at mainbus0: apid 7 (application processor) > cpu7: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu7: smt 1, core 3, package 0 > cpu8 at mainbus0: apid 8 (application processor) > cpu8: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu8: smt 0, core 4, package 0 > cpu9 at mainbus0: apid 9 (application processor) > cpu9: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.01 MHz, 17-60-01, > patch 0860010d > cpu9: smt 1, core 4, package 0 > cpu10 at mainbus0: apid 10 (application processor) > cpu10: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu10: smt 0, core 5, package 0 > cpu11 at mainbus0: apid 11 (application processor) > cpu11: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu11: smt 1, core 5, package 0 > cpu12 at mainbus0: apid 12 (application processor) > cpu12: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu12: smt 0, core 6, package 0 > cpu13 at mainbus0: apid 13 (application processor) > cpu13: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu13: smt 1, core 6, package 0 > cpu14 at mainbus0: apid 14 (application processor) > cpu14: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu14: smt 0, core 7, package 0 > cpu15 at mainbus0: apid 15 (application processor) > cpu15: AMD Ryzen 7 PRO 4750U with Radeon Graphics, 1700.00 MHz, 17-60-01, > patch 0860010d > cpu15: smt 1, core 7, package 0 > ioapic0 at mainbus0: apid 32 pa 0xfec00000, version 21, 24 pins, can't remap > ioapic1 at mainbus0: apid 33 pa 0xfec01000, version 21, 32 pins, can't remap > acpimcfg0 at acpi0 > acpimcfg0: addr 0xf8000000, bus 0-63 > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 4 (GPP0) > acpiprt2 at acpi0: bus 3 (GPP4) > acpiprt3 at acpi0: bus -1 (GPP5) > acpiprt4 at acpi0: bus -1 (GPP6) > acpiprt5 at acpi0: bus 2 (GPP7) > acpiprt6 at acpi0: bus 1 (GPP8) > acpiprt7 at acpi0: bus 5 (GP17) > acpiprt8 at acpi0: bus -1 (GP18) > acpiec0 at acpi0 > "ACPI0010" at acpi0 not configured > acpicpu0 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu1 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu2 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu3 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu4 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu5 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu6 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu7 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu8 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu9 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu10 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu11 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu12 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu13 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu14 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpicpu15 at acpi0: C3(0@350 io@0x415), C2(0@18 io@0x414), C1(0@1 mwait), PSS > acpibtn0 at acpi0: PWRB > acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 > acpicmos0 at acpi0 > "LEN0071" at acpi0 not configured > "LEN2143" at acpi0 not configured > acpibat0 at acpi0: BAT0 model "5B10W139" serial 3099 type LiP oem "SMP" > acpiac0 at acpi0: AC unit online > acpithinkpad0 at acpi0: version 2.0 > "LEN0111" at acpi0 not configured > "LEN0100" at acpi0 not configured > "LEN0130" at acpi0 not configured > "SMB0001" at acpi0 not configured > "PNP0C14" at acpi0 not configured > cpibtn1 at acpi0: LID_(wakeup) > acpibtn2 at acpi0: SLPB(wakeup) > "PNP0C14" at acpi0 not configured > "PNP0C14" at acpi0 not configured > "PNP0C14" at acpi0 not configured > "PNP0C14" at acpi0 not configured > amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 9, 184 pins > dwiic0 at acpi0 I2CA addr 0xfedc2000/0x1000 irq 10 > iic0 at dwiic0 > "INT3515" at iic0 addr 0x27 not configured > "USBC000" at acpi0 not configured > tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x0000104a rev > 0x4e > "PNP0C14" at acpi0 not configured > amdpmc0 at acpi0: PEP_ > amdpmc0: SMU program 0 version 55.95.0 > acpipwrres0 at acpi0: P0U1, resource for RTL8 > acpipwrres1 at acpi0: P3U1, resource for RTL8 > acpipwrres2 at acpi0: WRST > acpipwrres3 at acpi0: P0NV, resource for NVME > acpipwrres4 at acpi0: P0U0, resource for XHC0 > acpipwrres5 at acpi0: P3U0, resource for XHC0 > acpipwrres6 at acpi0: P0U1, resource for XHC1 > acpipwrres7 at acpi0: P3U1, resource for XHC1 > acpipwrres8 at acpi0: P0S0, resource for SATA > acpipwrres9 at acpi0: P3S0, resource for SATA > acpipwrres10 at acpi0: P0S1, resource for SAT1 > acpipwrres11 at acpi0: P3S1, resource for SAT1 > acpitz0 at acpi0 > acpitz0: THM0: failed to read _CRT > acpitz0: THM0: failed to read _CRT > acpitz0: no critical temperature defined > acpivideo0 at acpi0: VGA_ > acpivout0 at acpivideo0: LCD_ > cpu0: 1700 MHz: speeds: 1700 1600 1400 MHz > pci0 at mainbus0 bus 0 > ksmn0 at pci0 dev 0 function 0 "AMD 17h/6xh Root Complex" rev 0x00 > "AMD 17h/6xh IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured > pchb0 at pci0 dev 1 function 0 "AMD 17h/6xh Host" rev 0x00 > pchb1 at pci0 dev 2 function 0 "AMD 17h/6xh Host" rev 0x00 > pchb1 at pci0 dev 2 function 0 "AMD 17h/6xh Host" rev 0x00 > ppb0 at pci0 dev 2 function 1 "AMD 17h/6xh PCIE" rev 0x00: msi > pci1 at ppb0 bus 1 > nvme0 at pci1 dev 0 function 0 vendor "SK hynix", unknown product 0x1639 rev > 0x00: msix, NVMe 1.3 > nvme0: SKHynix_HFS256GD9TNI-L2B0B, firmware 11710C10, serial CY0AN05411060AP53 > scsibus1 at nvme0: 2 targets, initiator 0 > sd0 at scsibus1 targ 1 lun 0: <NVMe, SKHynix_HFS256GD, 1171> > sd0: 244198MB, 512 bytes/sector, 500118192 sectors > ppb1 at pci0 dev 2 function 3 "AMD 17h/6xh PCIE" rev 0x00: msi > pci2 at ppb1 bus 2 > iwx0 at pci2 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix > ppb2 at pci0 dev 2 function 4 "AMD 17h/6xh PCIE" rev 0x00: msi > pci3 at ppb2 bus 3 > rtsx0 at pci3 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi > sdmmc0 at rtsx0: 4-bit, dma > ppb3 at pci0 dev 2 function 7 "AMD 17h/6xh PCIE" rev 0x00: msi > pci4 at ppb3 bus 4 > xhci0 at pci4 dev 0 function 0 "Renesas uPD720202 xHCI" rev 0x02: msix, xHCI > 1.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "Renesas xHCI root hub" rev > 3.00/1.00 addr 1 > pchb2 at pci0 dev 8 function 0 "AMD 17h/6xh Host" rev 0x00 > ppb4 at pci0 dev 8 function 1 "AMD 17h/6xh PCIE" rev 0x00 > pci5 at ppb4 bus 5 > amdgpu0 at pci5 dev 0 function 0 "ATI Renoir" rev 0xd1 > drm0 at amdgpu0 > amdgpu0: msi > azalia0 at pci5 dev 0 function 1 "ATI Renoir HD Audio" rev 0x00: msi > azalia0: no supported codecs > ccp0 at pci5 dev 0 function 2 "AMD 17h/1xh Crypto" rev 0x00 > xhci1 at pci5 dev 0 function 3 "AMD 17h/6xh xHCI" rev 0x00: msix, xHCI 1.10 > usb1 at xhci1: USB revision 3.0 > uhub1 at usb1 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 > addr 1 > xhci2 at pci5 dev 0 function 4 "AMD 17h/6xh xHCI" rev 0x00: msix, xHCI 1.10 > usb2 at xhci2: USB revision 3.0 > uhub2 at usb2 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 > addr 1 > "AMD 17h/1xh I2S Audio" rev 0x01 at pci5 dev 0 function 5 not configured > azalia1 at pci5 dev 0 function 6 "AMD 17h/1xh HD Audio" rev 0x00: msi > azalia1: codecs: Realtek ALC257 > audio0 at azalia1 > piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x51: SMI > iic1 at piixpm0 > iic2 at piixpm0 > pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51 > pchb3 at pci0 dev 24 function 0 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb4 at pci0 dev 24 function 1 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb5 at pci0 dev 24 function 2 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb6 at pci0 dev 24 function 3 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb7 at pci0 dev 24 function 4 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb8 at pci0 dev 24 function 5 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb9 at pci0 dev 24 function 6 "AMD 17h/6xh Data Fabric" rev 0x00 > pchb10 at pci0 dev 24 function 7 "AMD 17h/6xh Data Fabric" rev 0x00 > isa0 at pcib0 > isadma0 at isa0 > pckbc0 at isa0 port 0x60/5 irq 1 irq 12 > pckbd0 at pckbc0 (kbd slot) > wskbd0 at pckbd0: console keyboard > pms0 at pckbc0 (aux slot) > wsmouse0 at pms0 mux 0 > pms0: Elantech Clickpad, version 4, firmware 0x7f3001 > wsmouse1 at pms0 mux 0 > pcppi0 at isa0 port 0x61 > spkr0 at pcppi0 > wbsio0 at isa0 port 0x4e/2: W83627HF rev 0x61 > vmm0 at mainbus0: SVM/RVI > efifb at mainbus0 not configured > uvideo0 at uhub0 port 4 configuration 1 interface 0 "Chicony Electronics > Co.,Ltd. Integrated Camera" rev 2.01/63.18 addr > 2 > video0 at uvideo0 > uvideo1 at uhub0 port 4 configuration 1 interface 2 "Chicony Electronics > Co.,Ltd. Integrated Camera" rev 2.01/63.18 addr > 2 > video1 at uvideo1 > ugen0 at uhub0 port 4 configuration 1 "Chicony Electronics Co.,Ltd. > Integrated Camera" rev 2.01/63.18 addr 2 > uhidev0 at uhub1 port 4 configuration 1 interface 0 "ELAN Touchscreen" rev > 2.00/57.11 addr 2 > uhidev0: iclass 3/0, 68 report ids > ums0 at uhidev0 reportid 1: 1 button, tip > wsmouse2 at ums0 mux 0 > uhid0 at uhidev0 reportid 2: input=64, output=0, feature=0 > uhid1 at uhidev0 reportid 3: input=0, output=63, feature=0 > uhid2 at uhidev0 reportid 4: input=19, output=0, feature=0 > uhid3 at uhidev0 reportid 10: input=0, output=0, feature=1 > ums1 at uhidev0 reportid 68: 0 buttons > wsmouse3 at ums1 mux 0 > ugen1 at uhub2 port 3 "Synaptics Fingerprint Reader" rev 2.00/0.00 addr 2 > ugen2 at uhub2 port 4 "Intel Bluetooth" rev 2.01/0.01 addr 3 > sdmmc0: can't enable card > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> > sd1: 243938MB, 512 bytes/sector, 499585087 sectors > root on sd1a (8b05e7f352e40388.a) swap on sd1b dump on sd1b > iwx0: hw rev 0x340, fw 77.a20fb07d.0, address b0:a4:60:c1:95:35 > amdgpu0: RENOIR GC 9.3.0 7 CU rev 0x00 > amdgpu0: 1920x1080, 32bpp > wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using wskbd0 > wsdisplay0: screen 1-5 added (std, vt100 emulation)
