Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/sys/dev/hdaudio Pull up following revision(s) (requested ...



details:   https://anonhg.NetBSD.org/src/rev/cc938cc7b9ed
branches:  netbsd-9
changeset: 948681:cc938cc7b9ed
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 28 20:18:09 2020 +0000

description:
Pull up following revision(s) (requested by jmcneill in ticket #1165):

        sys/dev/hdaudio/hdaudio.c: revision 1.12

Initialize DMA memory when allocating it. Should fix PR# 51734 (hdaudio
"RIRB timeout" on boot).

diffstat:

 sys/dev/hdaudio/hdaudio.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r cdcb1823d751 -r cc938cc7b9ed sys/dev/hdaudio/hdaudio.c
--- a/sys/dev/hdaudio/hdaudio.c Mon Dec 28 20:15:16 2020 +0000
+++ b/sys/dev/hdaudio/hdaudio.c Mon Dec 28 20:18:09 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hdaudio.c,v 1.9 2019/07/26 11:13:46 jmcneill Exp $ */
+/* $NetBSD: hdaudio.c,v 1.9.2.1 2020/12/28 20:18:09 martin Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <support%precedence.co.uk@localhost>
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.9 2019/07/26 11:13:46 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdaudio.c,v 1.9.2.1 2020/12/28 20:18:09 martin Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -194,6 +194,10 @@
        if (err)
                goto destroy;
 
+       memset(dma->dma_addr, 0, dma->dma_size);
+       bus_dmamap_sync(sc->sc_dmat, dma->dma_map, 0, dma->dma_size,
+           BUS_DMASYNC_PREWRITE);
+
        dma->dma_valid = true;
        return 0;
 



Home | Main Index | Thread Index | Old Index