Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbsh3/evbsh3 Sync with sys/arch/landisk/landisk/bu...
details: https://anonhg.NetBSD.org/src/rev/3dd232c5da15
branches: trunk
changeset: 335718:3dd232c5da15
user: nonaka <nonaka%NetBSD.org@localhost>
date: Thu Jan 22 03:43:24 2015 +0000
description:
Sync with sys/arch/landisk/landisk/bus_dma.c rev.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/evbsh3/evbsh3/bus_dma.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 16c380cf2a79 -r 3dd232c5da15 sys/arch/evbsh3/evbsh3/bus_dma.c
--- a/sys/arch/evbsh3/evbsh3/bus_dma.c Thu Jan 22 03:10:49 2015 +0000
+++ b/sys/arch/evbsh3/evbsh3/bus_dma.c Thu Jan 22 03:43:24 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_dma.c,v 1.3 2011/07/19 15:44:52 dyoung Exp $ */
+/* $NetBSD: bus_dma.c,v 1.4 2015/01/22 03:43:24 nonaka Exp $ */
/*
* Copyright (c) 2005 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.3 2011/07/19 15:44:52 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_dma.c,v 1.4 2015/01/22 03:43:24 nonaka 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