Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic got 'bad mbi comp_stat 5' during DIOCGCACHE under...



details:   https://anonhg.NetBSD.org/src/rev/cb6bfe5ff521
branches:  trunk
changeset: 351779:cb6bfe5ff521
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sun Feb 26 23:30:14 2017 +0000

description:
got 'bad mbi comp_stat 5' during DIOCGCACHE under Parallels, according
to linux driver it's possible status when controller thinks the CCB is invalid;
handle same as BHA_MBI_ABORT/BHA_MBI_UNKNOWN i.e. just clear the CCB anyway

diffstat:

 sys/dev/ic/bha.c    |  5 +++--
 sys/dev/ic/bhareg.h |  3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r a10bf13b4e2b -r cb6bfe5ff521 sys/dev/ic/bha.c
--- a/sys/dev/ic/bha.c  Sun Feb 26 23:06:36 2017 +0000
+++ b/sys/dev/ic/bha.c  Sun Feb 26 23:30:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bha.c,v 1.76 2016/07/14 04:19:27 msaitoh Exp $ */
+/*     $NetBSD: bha.c,v 1.77 2017/02/26 23:30:14 jdolecek Exp $        */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -46,7 +46,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bha.c,v 1.76 2016/07/14 04:19:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bha.c,v 1.77 2017/02/26 23:30:14 jdolecek Exp $");
 
 #include "opt_ddb.h"
 
@@ -1574,6 +1574,7 @@
 
                case BHA_MBI_ABORT:
                case BHA_MBI_UNKNOWN:
+               case BHA_MBI_BADCCB:
                        /*
                         * Even if the CCB wasn't found, we clear it anyway.
                         * See preceding comment.
diff -r a10bf13b4e2b -r cb6bfe5ff521 sys/dev/ic/bhareg.h
--- a/sys/dev/ic/bhareg.h       Sun Feb 26 23:06:36 2017 +0000
+++ b/sys/dev/ic/bhareg.h       Sun Feb 26 23:30:14 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bhareg.h,v 1.20 2008/04/28 20:23:49 martin Exp $       */
+/*     $NetBSD: bhareg.h,v 1.21 2017/02/26 23:30:14 jdolecek Exp $     */
 
 /*-
  * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -166,6 +166,7 @@
 #define BHA_MBI_ABORT  0x2     /* aborted ccb */
 #define BHA_MBI_UNKNOWN        0x3     /* Tried to abort invalid CCB */
 #define BHA_MBI_ERROR  0x4     /* Completed with error */
+#define BHA_MBI_BADCCB 0x5     /* invalid CCB */
 
 #if    defined(BIG_DMA)
 WARNING...THIS WON'T WORK(won't fit on 1 page)



Home | Main Index | Thread Index | Old Index