Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include Remove the _BUS_DMAMAP_COHERENT optimis...



details:   https://anonhg.NetBSD.org/src/rev/c781772355fa
branches:  trunk
changeset: 962367:c781772355fa
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue Jul 16 11:32:07 2019 +0000

description:
Remove the _BUS_DMAMAP_COHERENT optimisation in the bus_dmamap_sync macro
as the real function performs memory barriers now.

diffstat:

 sys/arch/arm/include/bus_funcs.h |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (18 lines):

diff -r 22a06b5e16ec -r c781772355fa sys/arch/arm/include/bus_funcs.h
--- a/sys/arch/arm/include/bus_funcs.h  Tue Jul 16 10:37:12 2019 +0000
+++ b/sys/arch/arm/include/bus_funcs.h  Tue Jul 16 11:32:07 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bus_funcs.h,v 1.7 2018/04/01 04:35:04 ryo Exp $        */
+/*     $NetBSD: bus_funcs.h,v 1.8 2019/07/16 11:32:07 skrll Exp $      */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
@@ -654,8 +654,6 @@
        (*(t)->_dmamap_unload)((t), (p))
 #define        bus_dmamap_sync(t, p, o, l, ops)                        \
 do {                                                                   \
-       if (((p)->_dm_flags & (_BUS_DMAMAP_COHERENT|_BUS_DMAMAP_IS_BOUNCING)) == _BUS_DMAMAP_COHERENT) \
-               break;                                                  \
        if (((ops) & (BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE)) != 0   \
            && (t)->_dmamap_sync_pre != NULL)                           \
                (*(t)->_dmamap_sync_pre)((t), (p), (o), (l), (ops));    \



Home | Main Index | Thread Index | Old Index