Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-6]: src/sys/arch/landisk/landisk Pull up following revision(s) (r...
details: https://anonhg.NetBSD.org/src/rev/b2d9e9aaa83f
branches: netbsd-6
changeset: 773983:b2d9e9aaa83f
user: riz <riz%NetBSD.org@localhost>
date: Fri Apr 06 17:28:04 2012 +0000
description:
Pull up following revision(s) (requested by tsutsui in ticket #160):
sys/arch/landisk/landisk/bus_dma.c: revision 1.15
Don't call sh_dcache_inv_range() on BUS_DMASYNC_POSTREAD ops
as other mips and arm ports.
All cached data is cared on BUS_DMASYNC_PREREAD and
invalidating cache without writeback could cause unexpected
data loss if specified sync region is not cacheline aligned.
This may fix "ffs_alloccg: map corrupted" panic on acardide IDE disks,
which didn't happen on USB HDD.
diffstat:
sys/arch/landisk/landisk/bus_dma.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 1b2ddb525230 -r b2d9e9aaa83f sys/arch/landisk/landisk/bus_dma.c
--- a/sys/arch/landisk/landisk/bus_dma.c Fri Apr 06 17:02:09 2012 +0000
+++ b/sys/arch/landisk/landisk/bus_dma.c Fri Apr 06 17:28:04 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.14 2011/07/01 19:12:53 dyoung Exp $ */
+/* $NetBSD: bus_dma.c,v 1.14.8.1 2012/04/06 17:28:04 riz Exp $ */
/*
* Copyright (c) 2005 NONAKA Kimihiro
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.14 2011/07/01 19:12:53 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.14.8.1 2012/04/06 17:28:04 riz Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -545,11 +545,6 @@
if (SH_HAS_WRITEBACK_CACHE)
sh_dcache_wb_range(naddr, minlen);
break;
-
- case BUS_DMASYNC_POSTREAD:
- case BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE:
- sh_dcache_inv_range(naddr, minlen);
- break;
}
offset = 0;
len -= minlen;
Home |
Main Index |
Thread Index |
Old Index