Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc When we receive a PCI PIO error, print ...



details:   https://anonhg.NetBSD.org/src/rev/afd04e2d0003
branches:  trunk
changeset: 785953:afd04e2d0003
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sun Apr 07 16:32:41 2013 +0000

description:
When we receive a PCI PIO error, print the PCIC status register too.

diffstat:

 sys/arch/sparc/sparc/intr.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 62147df42d40 -r afd04e2d0003 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c       Sun Apr 07 14:14:49 2013 +0000
+++ b/sys/arch/sparc/sparc/intr.c       Sun Apr 07 16:32:41 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.116 2012/04/13 06:26:04 mrg Exp $ */
+/*     $NetBSD: intr.c,v 1.117 2013/04/07 16:32:41 jdc Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.116 2012/04/13 06:26:04 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.117 2013/04/07 16:32:41 jdc Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_sparc_arch.h"
@@ -443,9 +443,10 @@
        }
 
        if (si & MSIIEP_SYS_IPR_PIO_ERR) {
-               printf("pio: addr=%08x, cmd=%x\n",
+               printf("pio: addr=%08x, cmd=%x stat=%04x\n",
                       mspcic_read_stream_4(pcic_pio_err_addr),
-                      mspcic_read_stream_1(pcic_pio_err_cmd));
+                      mspcic_read_stream_1(pcic_pio_err_cmd),
+                      mspcic_read_stream_2(pcic_stat));
                fatal = 0;
        }
 



Home | Main Index | Thread Index | Old Index