changeset 10597:67b207a9aeb8

6882902 ::interrupts dcmd does not compute the correct 'Shared' value for MSIs in px driver
author Daniel Ice <Daniel.Ice@Sun.COM>
date Mon, 21 Sep 2009 16:32:48 -0700
parents ebad9a25355a
children 6f30db2c2cd0
files usr/src/cmd/mdb/sparc/modules/intr/intr.c
diffstat 1 files changed, 5 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/cmd/mdb/sparc/modules/intr/intr.c	Mon Sep 21 15:56:41 2009 -0700
+++ b/usr/src/cmd/mdb/sparc/modules/intr/intr.c	Mon Sep 21 16:32:48 2009 -0700
@@ -335,9 +335,8 @@
 					    intr_p.devi_intr_curr_type;
 				}
 
-				if ((info.intr_type == DDI_INTR_TYPE_FIXED) &&
-				    ((ino.ino_ipil_size > 1) ||
-				    (ipil.ipil_ih_size > 1))) {
+				if ((ino.ino_ipil_size > 1) ||
+				    (ipil.ipil_ih_size > 1)) {
 					info.shared = 1;
 				}
 
@@ -384,12 +383,12 @@
 {
 	if (!detailed) {
 		mdb_printf("\n%<u>\tDevice\t"
-		    " Shared\t"
 		    " Type\t"
 		    " MSG #\t"
 		    " State\t"
 		    " INO\t"
 		    " Mondo\t"
+		    " Shared\t"
 		    "  Pil\t"
 		    " CPU   %</u>"
 		    "\n");
@@ -401,19 +400,18 @@
 {
 	if (!detailed) {
 		mdb_printf(" %11s#%d\t", info.driver_name, info.instance);
-		mdb_printf(" %5s\t",
-		    info.shared ? "yes" : "no");
 		mdb_printf(" %s\t", intr_get_intr_type(info.intr_type));
 		if (info.intr_type == DDI_INTR_TYPE_FIXED) {
 			mdb_printf("  --- \t");
 		} else {
 			mdb_printf(" %4d\t", info.num);
 		}
-
 		mdb_printf(" %2s\t",
 		    info.intr_state ? "enbl" : "disbl");
 		mdb_printf(" 0x%x\t", info.ino_ino);
 		mdb_printf(" 0x%x\t", info.mondo);
+		mdb_printf(" %5s\t",
+		    info.shared ? "yes" : "no");
 		mdb_printf(" %4d\t", info.pil);
 		mdb_printf(" %3d \n", info.cpuid);
 	} else {