Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev disable BUS_SPACE_MAP_PREFETCHABLE unti...
details: https://anonhg.NetBSD.org/src/rev/fcf3f04aa5f2
branches: trunk
changeset: 352277:fcf3f04aa5f2
user: macallan <macallan%NetBSD.org@localhost>
date: Fri Mar 24 01:14:26 2017 +0000
description:
disable BUS_SPACE_MAP_PREFETCHABLE until I figure out which psychos support
partial writes
apparently the only devices which can actually do that are UPA graphics cards
diffstat:
sys/arch/sparc64/dev/psycho.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (36 lines):
diff -r 7e384bdb1b2b -r fcf3f04aa5f2 sys/arch/sparc64/dev/psycho.c
--- a/sys/arch/sparc64/dev/psycho.c Fri Mar 24 01:00:47 2017 +0000
+++ b/sys/arch/sparc64/dev/psycho.c Fri Mar 24 01:14:26 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psycho.c,v 1.124 2016/05/10 19:23:59 palle Exp $ */
+/* $NetBSD: psycho.c,v 1.125 2017/03/24 01:14:26 macallan Exp $ */
/*
* Copyright (c) 1999, 2000 Matthew R. Green
@@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psycho.c,v 1.124 2016/05/10 19:23:59 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psycho.c,v 1.125 2017/03/24 01:14:26 macallan Exp $");
#include "opt_ddb.h"
@@ -1173,6 +1173,8 @@
__func__, t->type, (unsigned long long)offset,
(unsigned long long)size, flags));
+ flags &= ~BUS_SPACE_MAP_PREFETCHABLE;
+
ss = sparc_pci_childspace(t->type);
DPRINTF(PDB_BUSMAP, (" cspace %d", ss));
@@ -1200,6 +1202,8 @@
struct psycho_ranges *pr;
int ss;
+ flags &= ~BUS_SPACE_MAP_PREFETCHABLE;
+
ss = sparc_pci_childspace(t->type);
DPRINTF(PDB_BUSMAP, ("%s: prot %x flags %d busaddr %qx\n",
Home |
Main Index |
Thread Index |
Old Index