Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Treat unexpected command completions a little mor...



details:   https://anonhg.NetBSD.org/src/rev/b1796c4c9fdf
branches:  trunk
changeset: 762001:b1796c4c9fdf
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Feb 13 01:21:52 2011 +0000

description:
Treat unexpected command completions a little more like regular completions.
Slight chance this might prevent some occasional log spew trouble at shutdown
time.

diffstat:

 sys/dev/ic/siisata.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5155b64dc7b0 -r b1796c4c9fdf sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c      Sun Feb 13 00:42:45 2011 +0000
+++ b/sys/dev/ic/siisata.c      Sun Feb 13 01:21:52 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.13 2010/11/13 09:00:00 uebayasi Exp $ */
+/* $NetBSD: siisata.c,v 1.14 2011/02/13 01:21:52 jakllsch Exp $ */
 
 /* from ahcisata_core.c */
 
@@ -79,7 +79,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.13 2010/11/13 09:00:00 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.14 2011/02/13 01:21:52 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -454,6 +454,7 @@
                /* is this expected? */
                /* XXX improve */
                if ((schp->sch_active_slots & __BIT(slot)) == 0) {
+                       PRWRITE(sc, PRX(chp->ch_channel, PRO_PIS), 0xffffffff);
                        log(LOG_WARNING, "%s: unexpected command "
                            "completion on port %d\n",
                            SIISATANAME(sc), chp->ch_channel);



Home | Main Index | Thread Index | Old Index