Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/dev/ic Pullup 1.17 [mrg]:



details:   https://anonhg.NetBSD.org/src/rev/7a50da947bd2
branches:  netbsd-1-5
changeset: 489990:7a50da947bd2
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Oct 25 16:38:55 2000 +0000

description:
Pullup 1.17 [mrg]:
ensure DMA mappings are not mapped streamable.  fixes ethernet problems on
ultrasparc sbus class machines.  from eeh.

diffstat:

 sys/dev/ic/hme.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 5781b0272f09 -r 7a50da947bd2 sys/dev/ic/hme.c
--- a/sys/dev/ic/hme.c  Wed Oct 25 16:38:35 2000 +0000
+++ b/sys/dev/ic/hme.c  Wed Oct 25 16:38:55 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hme.c,v 1.14.2.1 2000/07/31 05:33:27 mrg Exp $ */
+/*     $NetBSD: hme.c,v 1.14.2.2 2000/10/25 16:38:55 tv Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -231,7 +231,8 @@
 
        /* Load the buffer */
        if ((error = bus_dmamap_load(dmatag, sc->sc_dmamap,
-           sc->sc_rb.rb_membase, size, NULL, BUS_DMA_NOWAIT)) != 0) {
+           sc->sc_rb.rb_membase, size, NULL,
+           BUS_DMA_NOWAIT|BUS_DMA_COHERENT)) != 0) {
                printf("%s: DMA buffer map load error %d\n",
                        sc->sc_dev.dv_xname, error);
                bus_dmamem_free(dmatag, &seg, rseg);



Home | Main Index | Thread Index | Old Index