On Sat, Sep 26, 2020 at 06:25:53AM +0300, vejetaryenvampir wrote:
> i386 m88k mips64 powerpc sh sparc sparc64 vax
> To: [email protected]
> Subject: Re: sndiod stops and doesn't resume until reboot
> From: vejetaryenvampir
> Cc: vejetaryenvampir
> Reply-To: vejetaryenvampir
> 
> >Synopsis:    sndiod stops and doesn't resume until reboot
> >Category:    system
> >Environment:
>       System      : OpenBSD 6.8
>       Details     : OpenBSD 6.8-beta (GENERIC.MP) #64: Sun Sep  6 18:19:41
> MDT 2020
>                        
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.amd64
>       Machine     : amd64
> >Description:
>       When I listen something or watch something that involves audio, after a
>       certain time period, my audio stops working completely and the last
>       half a second or so of audio repeats itself for many times.  As the
>       first bug report from thfr@ describes [1], the only solution is 
> rebooting
>       the system.  I tried restarting sndiod, clearing cookies of sndio,
>       restarting network in case of something with network involved.  I also
>       debugged the audio with the information on
>       https://www.openbsd.org/faq/faq13.html#audioprob and play.bytes does
>       not increment.
> 
>       [1]: These are the related links to previous report by thfr@:
>       https://marc.info/?l=openbsd-bugs&m=151648196215922&w=2
>       https://marc.info/?l=openbsd-tech&m=153107739614808&w=2
>       https://marc.info/?l=openbsd-cvs&m=155423668310296&w=2
> 
> >How-To-Repeat:
>       It happens in certain times of period.  With or without anything that
>       involves audio (I let the computer turned on, couple hours later, the
>       audio wasn't working).  It can be triggered immediately with
>       controlling output.level through sndioctl (like with a WM keyboard
>       combination, while loop, etc.)
> >Fix:
>       Unknown.  But restarting the system gets it work again.
> 
> 

could you try this diff?

Index: azalia.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.257
diff -u -p -u -p -r1.257 azalia.c
--- azalia.c    9 Jun 2020 03:36:05 -0000       1.257
+++ azalia.c    28 Sep 2020 10:07:06 -0000
@@ -387,6 +387,7 @@ azalia_configure_pci(azalia_t *az)
        case PCI_PRODUCT_ATI_SB450_HDA:
        case PCI_PRODUCT_ATI_SBX00_HDA:
        case PCI_PRODUCT_AMD_HUDSON2_HDA:
+       case PCI_PRODUCT_AMD_17_3X_HDA:
                reg = azalia_pci_read(az->pc, az->tag, ATI_PCIE_SNOOP_REG);
                reg &= ATI_PCIE_SNOOP_MASK;
                reg |= ATI_PCIE_SNOOP_ENABLE;
Index: pcidevs.h
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs.h,v
retrieving revision 1.1925
diff -u -p -u -p -r1.1925 pcidevs.h
--- pcidevs.h   23 Aug 2020 19:25:20 -0000      1.1925
+++ pcidevs.h   28 Sep 2020 10:07:12 -0000
@@ -756,6 +756,7 @@
 #define        PCI_PRODUCT_AMD_17_PCIE_5       0x1471          /* 17h PCIE */
 #define        PCI_PRODUCT_AMD_17_3X_RC        0x1480          /* 17h/3xh Root 
Complex */
 #define        PCI_PRODUCT_AMD_17_3X_CCP       0x1486          /* 17h/3xh 
Crypto */
+#define        PCI_PRODUCT_AMD_17_3X_HDA       0x1487          /* 17h/3xh HD 
Audio */
 #define        PCI_PRODUCT_AMD_14_HB   0x1510          /* 14h Host */
 #define        PCI_PRODUCT_AMD_14_PCIE_1       0x1512          /* 14h PCIE */
 #define        PCI_PRODUCT_AMD_14_PCIE_2       0x1513          /* 14h PCIE */

Reply via email to