Module Name: src Committed By: matt Date: Mon Oct 29 05:23:45 UTC 2012
Modified Files: src/sys/arch/powerpc/booke: booke_machdep.c Log Message: Make bus_dmamap_sync a noop for BookE. To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/arch/powerpc/booke/booke_machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/powerpc/booke/booke_machdep.c diff -u src/sys/arch/powerpc/booke/booke_machdep.c:1.16 src/sys/arch/powerpc/booke/booke_machdep.c:1.17 --- src/sys/arch/powerpc/booke/booke_machdep.c:1.16 Wed Aug 1 21:30:21 2012 +++ src/sys/arch/powerpc/booke/booke_machdep.c Mon Oct 29 05:23:44 2012 @@ -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 @@ struct powerpc_bus_dma_tag booke_bus_dma ._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,