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/c726f91c2e3d
branches:  trunk
changeset: 822528:c726f91c2e3d
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 fa4a0d4915a0 -r c726f91c2e3d 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