Not sure if my case is exactly related, but I experienced a similar issue with some variation. In my situation for OpenBSD current and previous releases, sometimes (!) the whole system freezes, the screen turns black and GPU fan starts throttling rhythmically up and down. Only hard reboot with power button helps.
Similarly to you, I also have AMD card (mine is RX580), and strange coincidence - it is also Polaris arch (Polaris20 in my case). Now to the most interesting part - I also experience very rare but same issues on Linux 6.1.20, and I did report the problem happening always (!) on NetBSD-current (https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=56566). Obviously, these references mean little here, as drm and amdgpu driver implementations differ between systems, but more important is a pattern - this sounds like some bug either in original amdgpu driver contributed to Linux and ported elsewhere, or with polaris firmware. Hope that provides some insights to whoever might be further looking into the issue. On Sat, 15 Apr 2023, at 00:45, Allan Streib wrote: > I've had this problem for a while, over several releases. > > Keyboard will freeze up (key presses do nothing). Mouse pointer > can be moved but clicks do nothing. Only solution was to reboot > using the power button, which does trigger a clean shutdown. > > I've been chalking it up to some kind of hardware issue. Nothing > is ever logged. But today it happened again, and I found these > messages in /var/log/messages just before the reboot: > > Apr 14 18:17:50 fabrik /bsd: [drm] *ERROR* ring sdma1 timeout, signaled > seq=10792, emitted seq=10792 > Apr 14 18:17:50 fabrik /bsd: [drm] *ERROR* Process information: process > pid 0 thread pid 0 > Apr 14 18:17:50 fabrik /bsd: amdgpu_device_suspend_display_audio: stub > > dmesg below, happy for any suggestions what this might mean, or > is it likely unrelated, or what additional info may be helpful. > > > OpenBSD 7.3 (GENERIC.MP) #1125: Sat Mar 25 10:36:29 MDT 2023 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > real mem = 17103970304 (16311MB) > avail mem = 16566206464 (15798MB) > random: good seed from bootblocks > mpath0 at root > scsibus0 at mpath0: 256 targets > mainbus0 at root > bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xed5e0 (86 entries) > bios0: vendor American Megatrends Inc. version "V10.6" date 08/13/2015 > bios0: MSI MS-7922 > acpi0 at bios0: ACPI 5.0 > acpi0: sleep states S0 S3 S4 S5 > acpi0: tables DSDT FACP APIC FPDT FIDT ASF! SSDT SSDT SSDT MCFG HPET > SSDT SSDT UEFI DMAR > acpi0: wakeup devices PEG0(S4) PEGP(S4) PEG1(S4) PEGP(S4) PEG2(S4) > PEGP(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) > PXSX(S4) RP05(S4) PXSX(S4) [...] > acpitimer0 at acpi0: 3579545 Hz, 24 bits > acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat > cpu0 at mainbus0: apid 0 (boot processor) > cpu0: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 3400.12 MHz, 06-3c-03 > cpu0: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB > 64b/line 8-way L2 cache, 8MB 64b/line 16-way L3 cache > cpu0: smt 0, core 0, package 0 > mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges > cpu0: apic clock running at 100MHz > cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4, IBE > cpu1 at mainbus0: apid 2 (application processor) > cpu1: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 3400.12 MHz, 06-3c-03 > cpu1: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu1: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB > 64b/line 8-way L2 cache, 8MB 64b/line 16-way L3 cache > cpu1: smt 0, core 1, package 0 > cpu2 at mainbus0: apid 4 (application processor) > cpu2: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 3400.24 MHz, 06-3c-03 > cpu2: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu2: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB > 64b/line 8-way L2 cache, 8MB 64b/line 16-way L3 cache > cpu2: smt 0, core 2, package 0 > cpu3 at mainbus0: apid 6 (application processor) > cpu3: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz, 3400.25 MHz, 06-3c-03 > cpu3: > FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,PERF,ITSC,FSGSBASE,TSC_ADJUST,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,SRBDS_CTRL,MD_CLEAR,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN > cpu3: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB > 64b/line 8-way L2 cache, 8MB 64b/line 16-way L3 cache > cpu3: smt 0, core 3, package 0 > ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins > acpimcfg0 at acpi0 > acpimcfg0: addr 0xf8000000, bus 0-63 > acpihpet0 at acpi0: 14318179 Hz > acpiprt0 at acpi0: bus 0 (PCI0) > acpiprt1 at acpi0: bus 1 (PEG0) > acpiprt2 at acpi0: bus -1 (PEG1) > acpiprt3 at acpi0: bus -1 (PEG2) > acpiprt4 at acpi0: bus 2 (RP01) > acpiprt5 at acpi0: bus -1 (RP02) > acpiprt6 at acpi0: bus 3 (RP03) > acpiprt7 at acpi0: bus 5 (RP04) > acpiprt8 at acpi0: bus -1 (RP05) > acpiprt9 at acpi0: bus -1 (RP06) > acpiprt10 at acpi0: bus -1 (RP07) > acpiprt11 at acpi0: bus -1 (RP08) > acpiec0 at acpi0: not present > acpipci0 at acpi0 PCI0: 0x00000010 0x00000011 0x00000000 > acpicmos0 at acpi0 > com0 at acpi0 UAR1 addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo > "PNP0C14" at acpi0 not configured > acpibtn0 at acpi0: PWRB > acpibtn1 at acpi0: SLPB > "PNP0C14" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > "PNP0C0B" at acpi0 not configured > acpicpu0 at acpi0: C2(200@148 mwait.1@0x31), C1(1000@1 mwait.1), PSS > acpicpu1 at acpi0: C2(200@148 mwait.1@0x31), C1(1000@1 mwait.1), PSS > acpicpu2 at acpi0: C2(200@148 mwait.1@0x31), C1(1000@1 mwait.1), PSS > acpicpu3 at acpi0: C2(200@148 mwait.1@0x31), C1(1000@1 mwait.1), PSS > acpipwrres0 at acpi0: PG00, resource for PEG0 > acpipwrres1 at acpi0: PG01, resource for PEG1 > acpipwrres2 at acpi0: PG02, resource for PEG2 > acpipwrres3 at acpi0: WRST > acpipwrres4 at acpi0: WRST > acpipwrres5 at acpi0: WRST > acpipwrres6 at acpi0: WRST > acpipwrres7 at acpi0: WRST > acpipwrres8 at acpi0: WRST > acpipwrres9 at acpi0: WRST > acpipwrres10 at acpi0: WRST > acpipwrres11 at acpi0: FN00, resource for FAN0 > acpipwrres12 at acpi0: FN01, resource for FAN1 > acpipwrres13 at acpi0: FN02, resource for FAN2 > acpipwrres14 at acpi0: FN03, resource for FAN3 > acpipwrres15 at acpi0: FN04, resource for FAN4 > acpitz0 at acpi0: critical temperature is 105 degC > acpitz1 at acpi0: critical temperature is 105 degC > acpivideo0 at acpi0: GFX0 > acpivout0 at acpivideo0: DD1F > cpu0: using VERW MDS workaround (except on vmm entry) > cpu0: Enhanced SpeedStep 3400 MHz: speeds: 3401, 3400, 3200, 3000, > 2800, 2700, 2500, 2300, 2100, 1900, 1700, 1500, 1400, 1200, 1000, 800 > MHz > pci0 at mainbus0 bus 0 > pchb0 at pci0 dev 0 function 0 "Intel Core 4G Host" rev 0x06 > ppb0 at pci0 dev 1 function 0 "Intel Core 4G PCIE" rev 0x06: msi > pci1 at ppb0 bus 1 > amdgpu0 at pci1 dev 0 function 0 "ATI Polaris 12" rev 0x00 > drm0 at amdgpu0 > amdgpu0: msi > azalia0 at pci1 dev 0 function 1 "ATI Radeon Pro Audio" rev 0x00: msi > azalia0: no supported codecs > xhci0 at pci0 dev 20 function 0 "Intel 9 Series xHCI" rev 0x00: msi, > xHCI 1.0 > usb0 at xhci0: USB revision 3.0 > uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev > 3.00/1.00 addr 1 > "Intel 9 Series MEI" rev 0x00 at pci0 dev 22 function 0 not configured > ehci0 at pci0 dev 26 function 0 "Intel 9 Series USB" rev 0x00: apic 8 > int 16 > usb1 at ehci0: USB revision 2.0 > uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev > 2.00/1.00 addr 1 > azalia1 at pci0 dev 27 function 0 "Intel 9 Series HD Audio" rev 0x00: > msi > azalia1: codecs: Realtek ALC892 > audio0 at azalia1 > ppb1 at pci0 dev 28 function 0 "Intel 9 Series PCIE" rev 0xd0 > pci2 at ppb1 bus 2 > ppb2 at pci0 dev 28 function 2 "Intel 82801BA Hub-to-PCI" rev 0xd0: msi > pci3 at ppb2 bus 3 > ppb3 at pci3 dev 0 function 0 "ASMedia ASM1083/1085 PCIE-PCI" rev 0x03 > pci4 at ppb3 bus 4 > ppb4 at pci0 dev 28 function 3 "Intel 9 Series PCIE" rev 0xd0: msi > pci5 at ppb4 bus 5 > re0 at pci5 dev 0 function 0 "Realtek 8168" rev 0x0c: RTL8168G/8111G > (0x4c00), msi, address d8:cb:8a:c0:76:67 > rgephy0 at re0 phy 7: RTL8251 PHY, rev. 0 > ehci1 at pci0 dev 29 function 0 "Intel 9 Series USB" rev 0x00: apic 8 > int 23 > usb2 at ehci1: USB revision 2.0 > uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev > 2.00/1.00 addr 1 > pcib0 at pci0 dev 31 function 0 "Intel Z97 LPC" rev 0x00 > ahci0 at pci0 dev 31 function 2 "Intel 9 Series AHCI" rev 0x00: msi, > AHCI 1.3 > ahci0: port 2: 6.0Gb/s > ahci0: port 3: 6.0Gb/s > scsibus1 at ahci0: 32 targets > sd0 at scsibus1 targ 2 lun 0: <ATA, Crucial_CT960M50, MU02> > naa.500a0751094531c8 > sd0: 915715MB, 512 bytes/sector, 1875385008 sectors, thin > sd1 at scsibus1 targ 3 lun 0: <ATA, WDC WD10EZEX-00B, 01.0> > naa.50014ee2b6a3e7ba > sd1: 953869MB, 512 bytes/sector, 1953525168 sectors > ichiic0 at pci0 dev 31 function 3 "Intel 9 Series SMBus" rev 0x00: apic > 8 int 18 > iic0 at ichiic0 > spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800 > spdmem1 at iic0 addr 0x52: 8GB DDR3 SDRAM PC3-12800 > 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 > lpt0 at isa0 port 0x378/4 irq 7 > wbsio0 at isa0 port 0x4e/2: NCT6792D rev 0x11 > lm1 at wbsio0 port 0xa20/8: NCT6792D > vmm0 at mainbus0: VMX/EPT > uhidev0 at uhub0 port 4 configuration 1 interface 0 "Lenovo ThinkPad > Compact USB Keyboard with TrackPoint" rev 2.00/3.30 addr 2 > uhidev0: iclass 3/1 > ukbd0 at uhidev0: 8 variable keys, 6 key codes > wskbd1 at ukbd0 mux 1 > uhidev1 at uhub0 port 4 configuration 1 interface 1 "Lenovo ThinkPad > Compact USB Keyboard with TrackPoint" rev 2.00/3.30 addr 2 > uhidev1: iclass 3/1, 22 report ids > ums0 at uhidev1 reportid 1: 5 buttons, Z and W dir > wsmouse0 at ums0 mux 0 > ucc0 at uhidev1 reportid 16: 573 usages, 20 keys, array > wskbd2 at ucc0 mux 1 > uhid0 at uhidev1 reportid 17: input=2, output=0, feature=0 > uhid1 at uhidev1 reportid 19: input=8, output=8, feature=8 > uhid2 at uhidev1 reportid 21: input=2, output=0, feature=0 > uhid3 at uhidev1 reportid 22: input=2, output=0, feature=0 > uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching > Hub" rev 2.00/0.00 addr 2 > uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching > Hub" rev 2.00/0.00 addr 2 > vscsi0 at root > scsibus2 at vscsi0: 256 targets > softraid0 at root > scsibus3 at softraid0: 256 targets > root on sd0a (96e16b16f9328e34.a) swap on sd0b dump on sd0b > amdgpu0: POLARIS12 8 CU rev 0x00 > amdgpu0: 2560x1440, 32bpp > wsdisplay0 at amdgpu0 mux 1: console (std, vt100 emulation), using > wskbd0 > wskbd1: connecting to wsdisplay0 > wskbd2: connecting to wsdisplay0 > wsdisplay0: screen 1-5 added (std, vt100 emulation)