Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/booke Make bus_dmamap_sync a noop for BookE.



details:   https://anonhg.NetBSD.org/src/rev/a95ac16eea87
branches:  trunk
changeset: 782336:a95ac16eea87
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Oct 29 05:23:44 2012 +0000

description:
Make bus_dmamap_sync a noop for BookE.

diffstat:

 sys/arch/powerpc/booke/booke_machdep.c |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 315fe97f953c -r a95ac16eea87 sys/arch/powerpc/booke/booke_machdep.c
--- a/sys/arch/powerpc/booke/booke_machdep.c    Mon Oct 29 02:27:11 2012 +0000
+++ b/sys/arch/powerpc/booke/booke_machdep.c    Mon Oct 29 05:23:44 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: booke_machdep.c,v 1.16 2012/08/01 21:30:21 matt Exp $  */
+/*     $NetBSD: booke_machdep.c,v 1.17 2012/10/29 05:23:44 matt Exp $  */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -38,7 +38,7 @@
 #define        _POWERPC_BUS_DMA_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: booke_machdep.c,v 1.16 2012/08/01 21:30:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: booke_machdep.c,v 1.17 2012/10/29 05:23:44 matt Exp $");
 
 #include "opt_modular.h"
 
@@ -85,7 +85,11 @@
        ._dmamap_load_uio = _bus_dmamap_load_uio,
        ._dmamap_load_raw = _bus_dmamap_load_raw,
        ._dmamap_unload = _bus_dmamap_unload,
-       ._dmamap_sync = _bus_dmamap_sync,
+       /*
+        * The caches on BookE are coherent so we don't need to do any special
+        * cache synchronization.
+        */
+       //._dmamap_sync = _bus_dmamap_sync,
        ._dmamem_alloc = _bus_dmamem_alloc,
        ._dmamem_free = _bus_dmamem_free,
        ._dmamem_map = _bus_dmamem_map,



Home | Main Index | Thread Index | Old Index