On Sat, 2024-04-06 at 23:01 +0200, Denis wrote: > > Synopsis: <audio is freeze after some amount of playing> > > Category: <system> > > Environment: > System : OpenBSD 7.5 > Details : OpenBSD 7.5 (GENERIC.MP) #82: Wed Mar 20 15:48:40 MDT 2024 > dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP > > Architecture: OpenBSD.amd64 > Machine : amd64 > > Description: > <Audio playing causes audio system to freeze after few seconds. > Restarting sndiod gives no solution. > > > How-To-Repeat: > <Use mpv or chromium to play something.> > > Fix: > <Unknown> > > There's a known issue with AMD audio cards loosing MSI interrupts at a certain point. Your device is not added to the list. Could you test the diff below?
Even if it helps you, there's also cards out there that don't support the legacy interrupt anymore, meaning that this diff could break some setups if someone isn't affected by the MSI bug by some mysterious reason. So not sure if this is suitable for commit. I'll let people knowledgeable in the area chime in for that. Maybe you can also try a debugging diff[0] to see if audio can be resumed after crashing without rebooting. This should be done as a separate test to the diff below. martijn@ [0] https://marc.info/?l=openbsd-tech&m=171182379923536&w=2 Index: azalia.c =================================================================== RCS file: /cvs/src/sys/dev/pci/azalia.c,v retrieving revision 1.286 diff -u -p -r1.286 azalia.c --- azalia.c 6 Mar 2024 00:11:25 -0000 1.286 +++ azalia.c 8 Apr 2024 14:35:50 -0000 @@ -561,6 +561,7 @@ azalia_pci_attach(struct device *parent, switch (PCI_PRODUCT(sc->pciid)) { case PCI_PRODUCT_AMD_17_HDA: case PCI_PRODUCT_AMD_17_1X_HDA: + case PCI_PRODUCT_AMD_17_3X_HDA: case PCI_PRODUCT_AMD_HUDSON2_HDA: pa->pa_flags &= ~PCI_FLAGS_MSI_ENABLED; }