Hello, I have an old R9290x GPU that I use in my desktop. For a while now I've been having issues where randomly the machine will lock up, usually preceded by messages in the console such as:
drm:pid52125:cik_irq_process *ERROR* GPU fault detected: 147 0x01020801 drm:pid52125:cik_irq_process *ERROR* VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x03A88888 drm:pid52125:cik_irq_process *ERROR* VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x02108001 VM fault (0x01, vmid 1) at page 61376648, read from 'TC2' (0x54433200) (264) This card works fine on Linux, never had an issue with it. OpenBSD doesn't seem to like it, and will lock up after a period of time, dependent on how heavily I use the machine. I've included a full dmesg below. Unfortunately, when the machine crashes, I'm unable to get any information as the machine does not reach ddb, it just hangs / locks up. I know this is a terrible bug report, please let me know if there's anything I can do to provide more useful information. Any insight or advice would be much appreciated. Regards, Jordan dmesg: OpenBSD 6.8 (GENERIC.MP) #5: Mon Feb 22 04:36:10 MST 2021 [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 17111101440 (16318MB) avail mem = 16577482752 (15809MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 3.2 @ 0xe8980 (57 entries) bios0: vendor American Megatrends Inc. version "F5" date 01/25/2019 bios0: Gigabyte Technology Co., Ltd. B450 AORUS PRO WIFI acpi0 at bios0: ACPI 6.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT SSDT SSDT CRAT CDIT SSDT MCFG HPET SSDT UEFI IVRS BGRT SSDT SSDT WSMT acpi0: wakeup devices GPP0(S4) GPP1(S4) GPP3(S4) GPP4(S4) GPP5(S4) GPP6(S4) GPP7(S4) GPP8(S4) GPP9(S4) GPPA(S4) GPPB(S4) GPPC(S4) GPPD(S4) GPPE(S4) GPPF(S4) GP17(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Ryzen 5 2600X Six-Core Processor, 3593.84 MHz, 17-08-02 cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu0: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu0: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 99MHz cpu0: mwait min=64, max=64, C-substates=1.1, IBE cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Ryzen 5 2600X Six-Core Processor, 3593.25 MHz, 17-08-02 cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu1: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu1: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD Ryzen 5 2600X Six-Core Processor, 3593.25 MHz, 17-08-02 cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu2: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu2: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 8 (application processor) cpu3: AMD Ryzen 5 2600X Six-Core Processor, 3593.25 MHz, 17-08-02 cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu3: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu3: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu3: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu3: smt 0, core 8, package 0 cpu4 at mainbus0: apid 9 (application processor) cpu4: AMD Ryzen 5 2600X Six-Core Processor, 3593.25 MHz, 17-08-02 cpu4: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu4: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu4: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu4: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu4: smt 0, core 9, package 0 cpu5 at mainbus0: apid 10 (application processor) cpu5: AMD Ryzen 5 2600X Six-Core Processor, 3593.25 MHz, 17-08-02 cpu5: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,SKINIT,TCE,TOPEXT,CPCTR,DBKP,PCTRL3,MWAITX,ITSC,FSGSBASE,BMI1,AVX2,SMEP,BMI2,RDSEED,ADX,SMAP,CLFLUSHOPT,SHA,IBPB,XSAVEOPT,XSAVEC,XGETBV1,XSAVES cpu5: 64KB 64b/line 4-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 8-way L2 cache, 16MB 64b/line 16-way L3 cache cpu5: ITLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu5: DTLB 64 4KB entries fully associative, 64 4MB entries fully associative cpu5: smt 0, core 10, package 0 ioapic0 at mainbus0: apid 7 pa 0xfec00000, version 21, 24 pins ioapic1 at mainbus0: apid 8 pa 0xfec01000, version 21, 32 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xf8000000, bus 0-63 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (GPP0) acpiprt2 at acpi0: bus -1 (GPP1) acpiprt3 at acpi0: bus -1 (GPP3) acpiprt4 at acpi0: bus -1 (GPP4) acpiprt5 at acpi0: bus -1 (GPP5) acpiprt6 at acpi0: bus -1 (GPP6) acpiprt7 at acpi0: bus -1 (GPP7) acpiprt8 at acpi0: bus 7 (GPP8) acpiprt9 at acpi0: bus -1 (GPP9) acpiprt10 at acpi0: bus -1 (GPPA) acpiprt11 at acpi0: bus -1 (GPPB) acpiprt12 at acpi0: bus -1 (GPPC) acpiprt13 at acpi0: bus -1 (GPPD) acpiprt14 at acpi0: bus -1 (GPPE) acpiprt15 at acpi0: bus -1 (GPPF) acpiprt16 at acpi0: bus 8 (GP17) acpiprt17 at acpi0: bus 9 (GP18) acpiprt18 at acpi0: bus 1 (GPP2) acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 acpicmos0 at acpi0 acpibtn0 at acpi0: PWRB amdgpio0 at acpi0 GPIO uid 0 addr 0xfed81500/0x400 irq 7, 184 pins "AMDIF030" at acpi0 not configured "PNP0C14" at acpi0 not configured acpicpu0 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu1 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu2 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu3 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu4 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS acpicpu5 at acpi0: C2(0@400 io@0x414), C1(0@1 mwait), PSS cpu0: 3593 MHz: speeds: 3600 3200 2200 MHz pci0 at mainbus0 bus 0 ksmn0 at pci0 dev 0 function 0 "AMD 17h Root Complex" rev 0x00 "AMD 17h IOMMU" rev 0x00 at pci0 dev 0 function 2 not configured pchb0 at pci0 dev 1 function 0 "AMD 17h PCIE" rev 0x00 ppb0 at pci0 dev 1 function 3 "AMD 17h PCIE" rev 0x00: msi pci1 at ppb0 bus 1 xhci0 at pci1 dev 0 function 0 vendor "AMD", unknown product 0x43d5 rev 0x01: msi, xHCI 1.10 usb0 at xhci0: USB revision 3.0 uhub0 at usb0 configuration 1 interface 0 "AMD xHCI root hub" rev 3.00/1.00 addr 1 ahci0 at pci1 dev 0 function 1 "AMD 400 Series AHCI" rev 0x01: msi, AHCI 1.3.1 scsibus1 at ahci0: 32 targets ppb1 at pci1 dev 0 function 2 "AMD 400 Series PCIE" rev 0x01 pci2 at ppb1 bus 2 ppb2 at pci2 dev 0 function 0 "AMD 400 Series PCIE" rev 0x01: msi pci3 at ppb2 bus 3 em0 at pci3 dev 0 function 0 "Intel I211" rev 0x03: msi, address b4:2e:99:31:80:36 ppb3 at pci2 dev 1 function 0 "AMD 400 Series PCIE" rev 0x01: msi pci4 at ppb3 bus 4 iwm0 at pci4 dev 0 function 0 "Intel Dual Band Wireless-AC 3168" rev 0x10, msi ppb4 at pci2 dev 4 function 0 "AMD 400 Series PCIE" rev 0x01: msi pci5 at ppb4 bus 5 ppb5 at pci2 dev 8 function 0 "AMD 400 Series PCIE" rev 0x01: msi pci6 at ppb5 bus 6 nvme0 at pci6 dev 0 function 0 vendor "Intel", unknown product 0xf1a8 rev 0x03: msix, NVMe 1.3 nvme0: INTEL SSDPEKNW020T8, firmware 002C, serial PHNH905100V62P0C scsibus2 at nvme0: 2 targets, initiator 0 sd0 at scsibus2 targ 1 lun 0: <NVMe, INTEL SSDPEKNW02, 002C> sd0: 1953514MB, 512 bytes/sector, 4000797360 sectors pchb1 at pci0 dev 2 function 0 "AMD 17h PCIE" rev 0x00 pchb2 at pci0 dev 3 function 0 "AMD 17h PCIE" rev 0x00 ppb6 at pci0 dev 3 function 1 "AMD 17h PCIE" rev 0x00: msi pci7 at ppb6 bus 7 radeondrm0 at pci7 dev 0 function 0 "ATI Hawaii" rev 0x00 drm0 at radeondrm0 radeondrm0: msi azalia0 at pci7 dev 0 function 1 vendor "ATI", unknown product 0xaac8 rev 0x00: msi azalia0: no supported codecs pchb3 at pci0 dev 4 function 0 "AMD 17h PCIE" rev 0x00 pchb4 at pci0 dev 7 function 0 "AMD 17h PCIE" rev 0x00 ppb7 at pci0 dev 7 function 1 "AMD 17h PCIE" rev 0x00 pci8 at ppb7 bus 8 vendor "AMD", unknown product 0x145a (class instrumentation unknown subclass 0x00, rev 0x00) at pci8 dev 0 function 0 not configured ccp0 at pci8 dev 0 function 2 "AMD 17h Crypto" rev 0x00 xhci1 at pci8 dev 0 function 3 "AMD 17h xHCI" rev 0x00: msi, xHCI 1.0 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 pchb5 at pci0 dev 8 function 0 "AMD 17h PCIE" rev 0x00 ppb8 at pci0 dev 8 function 1 "AMD 17h PCIE" rev 0x00 pci9 at ppb8 bus 9 vendor "AMD", unknown product 0x1455 (class instrumentation unknown subclass 0x00, rev 0x00) at pci9 dev 0 function 0 not configured ahci1 at pci9 dev 0 function 2 "AMD FCH AHCI" rev 0x51: msi, AHCI 1.3.1 scsibus3 at ahci1: 32 targets azalia1 at pci9 dev 0 function 3 "AMD 17h HD Audio" rev 0x00: apic 8 int 19 azalia1: codecs: Realtek/0x1220 audio0 at azalia1 piixpm0 at pci0 dev 20 function 0 "AMD FCH SMBus" rev 0x59: SMI iic0 at piixpm0 spdmem0 at iic0 addr 0x52: 8GB DDR4 SDRAM PC4-21300 spdmem1 at iic0 addr 0x53: 8GB DDR4 SDRAM PC4-21300 iic1 at piixpm0 pcib0 at pci0 dev 20 function 3 "AMD FCH LPC" rev 0x51 pchb6 at pci0 dev 24 function 0 "AMD 17h Data Fabric" rev 0x00 pchb7 at pci0 dev 24 function 1 "AMD 17h Data Fabric" rev 0x00 pchb8 at pci0 dev 24 function 2 "AMD 17h Data Fabric" rev 0x00 pchb9 at pci0 dev 24 function 3 "AMD 17h Data Fabric" rev 0x00 pchb10 at pci0 dev 24 function 4 "AMD 17h Data Fabric" rev 0x00 pchb11 at pci0 dev 24 function 5 "AMD 17h Data Fabric" rev 0x00 pchb12 at pci0 dev 24 function 6 "AMD 17h Data Fabric" rev 0x00 pchb13 at pci0 dev 24 function 7 "AMD 17h 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 pcppi0 at isa0 port 0x61 spkr0 at pcppi0 vmm0 at mainbus0: SVM/RVI efifb at mainbus0 not configured ugen0 at uhub0 port 9 "Intel product 0x0aa7" rev 2.00/0.01 addr 2 uhub2 at uhub0 port 14 configuration 1 interface 0 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 3 uhidev0 at uhub2 port 1 configuration 1 interface 0 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 uhidev1 at uhub2 port 1 configuration 1 interface 1 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 4 uhidev1: iclass 3/0, 3 report ids uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0 uhidev2 at uhub2 port 3 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 5 uhidev2: iclass 3/1 ums0 at uhidev2: 3 buttons, Z dir wsmouse0 at ums0 mux 0 vscsi0 at root scsibus4 at vscsi0: 256 targets softraid0 at root scsibus5 at softraid0: 256 targets softraid0: sd1 was not shutdown properly sd1 at scsibus5 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd1: 1953513MB, 512 bytes/sector, 4000795745 sectors root on sd1a (8ffecfca7b3cbf15.a) swap on sd1b dump on sd1b WARNING: / was not properly unmounted iwm0: hw rev 0x220, fw ver 29.1654887522.0, address 20:79:18:9b:68:fb initializing kernel modesetting (HAWAII 0x1002:0x67B0 0x1002:0x0B00 0x00). radeondrm0: 1920x1080, 32bpp wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation) wskbd1: disconnecting from wsdisplay0 wskbd1 detached ukbd0 detached uhidev0 detached uhid0 detached uhid1 detached uhid2 detached uhidev1 detached wsmouse0 detached ums0 detached uhidev2 detached uhub2 detached uhub2 at uhub0 port 13 configuration 1 interface 0 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 3 uhidev0 at uhub2 port 1 configuration 1 interface 0 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 wskbd1: connecting to wsdisplay0 uhidev1 at uhub2 port 1 configuration 1 interface 1 "Dell Dell USB Keyboard Hub" rev 1.10/1.00 addr 4 uhidev1: iclass 3/0, 3 report ids uhid0 at uhidev1 reportid 1: input=1, output=0, feature=0 uhid1 at uhidev1 reportid 2: input=1, output=0, feature=0 uhid2 at uhidev1 reportid 3: input=3, output=0, feature=0 uhidev2 at uhub2 port 3 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 5 uhidev2: iclass 3/1 ums0 at uhidev2: 3 buttons, Z dir wsmouse0 at ums0 mux 0 drm:pid52125:cik_irq_process *ERROR* GPU fault detected: 147 0x01020801 drm:pid52125:cik_irq_process *ERROR* VM_CONTEXT1_PROTECTION_FAULT_ADDR 0x03A88888 drm:pid52125:cik_irq_process *ERROR* VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x02108001 VM fault (0x01, vmid 1) at page 61376648, read from 'TC2' (0x54433200) (264)
