From joe.korty@ccur.com Thu Jul 10 13:52:37 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:02 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqaSG017351 for ; Thu, 10 Jul 2008 13:52:36 -0700 X-ASG-Debug-ID: 1215723215-7b4901ae0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 3652C18AECCD for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id p1OkWp2f0Ht5Smad for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrZ8L031203 for ; Thu, 10 Jul 2008 16:53:35 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrZEV031202 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:35 -0400 Resent-Message-Id: <200807102053.m6AKrZEV031202@gamx.iccur.com> Message-Id: <200807102053.m6AKrZEV031202@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 004/18] kdb-inatomic-usage Subject: [PATCH 004/18] kdb-inatomic-usage Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:34 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723222 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0202 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1398 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb KDB should use the non-sleeping copy_from_user_atomic, rather than the sleeping copy_from_user, as it runs from interrupt level. Signed-off-by: Joe Korty Index: 2.6.26-rc9/include/asm-x86/kdb.h =================================================================== --- 2.6.26-rc9.orig/include/asm-x86/kdb.h 2008-07-10 12:14:26.000000000 -0400 +++ 2.6.26-rc9/include/asm-x86/kdb.h 2008-07-10 12:24:53.000000000 -0400 @@ -81,7 +81,7 @@ } set_fs(KERNEL_DS); - r = __copy_to_user((void *)to_xxx, from, size); + r = __copy_to_user_inatomic((void *)to_xxx, from, size); set_fs(oldfs); return r; } @@ -99,7 +99,7 @@ } set_fs(KERNEL_DS); - r = __copy_to_user(to, (void *)from_xxx, size); + r = __copy_to_user_inatomic(to, (void *)from_xxx, size); set_fs(oldfs); return r; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:41 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:03 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqd0Q017373 for ; Thu, 10 Jul 2008 13:52:39 -0700 X-ASG-Debug-ID: 1215723222-208b00580000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 0085118AECD9 for ; Thu, 10 Jul 2008 13:53:43 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id 0tGcq7DFBu6XsdNG for ; Thu, 10 Jul 2008 13:53:43 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrd6P031264 for ; Thu, 10 Jul 2008 16:53:39 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrc8A031263 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:38 -0400 Resent-Message-Id: <200807102053.m6AKrc8A031263@gamx.iccur.com> Message-Id: <200807102053.m6AKrc8A031263@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 016/18] kdb-add-mempolicy-cmd Subject: [PATCH 016/18] kdb-add-mempolicy-cmd Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:38 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723224 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1401 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Create the KDB mempolicy command. Added a new kdbm_mpol() routine, which supports a new 'mempolicy' command, where the command format is: mempolicy and 'addr' is the address of the mempolicy structure. This command is not present if CONFIG_NUMA is disabled. This command parses the mempolicy type, and for the bind policy it outputs the zonelist and decodes which node's zones are in the zonelist. It also decodes the info for the other mempolicies. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_vm.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_vm.c 2008-07-10 13:35:56.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_vm.c 2008-07-10 13:36:59.000000000 -0400 @@ -134,6 +134,89 @@ return 0; } + +#ifdef CONFIG_NUMA +#include + +/* + * kdbm_mpol + * + * This function implements the 'mempolicy' command. + * Print a struct mempolicy. + * + * mempolicy
Print struct mempolicy at
+ */ +static int +kdbm_mpol(int argc, const char **argv) +{ + unsigned long addr; + long offset = 0; + int nextarg; + int err = 0; + struct mempolicy *mp = NULL; + + if (argc != 1) + return KDB_ARGCOUNT; + + nextarg = 1; + if ((err = kdbgetaddrarg(argc, argv, &nextarg, &addr, &offset, + NULL)) != 0) + return(err); + + if (!(mp = kmalloc(sizeof(*mp), GFP_ATOMIC))) { + kdb_printf("%s: cannot kmalloc mp\n", __FUNCTION__); + goto out; + } + + if ((err = kdb_getarea(*mp, addr))) { + kdb_printf("%s: invalid mempolicy address\n", __FUNCTION__); + goto out; + } + + kdb_printf("struct mempolicy at 0x%p\n", (struct mempolicy *)addr); + kdb_printf(" refcnt %d\n", atomic_read(&mp->refcnt)); + + switch (mp->mode) { + case MPOL_DEFAULT: + kdb_printf(" mode %d (MPOL_DEFAULT)\n", mp->mode); + break; + + case MPOL_PREFERRED: + kdb_printf(" mode %d (MPOL_PREFERRED)\n", mp->mode); + kdb_printf(" preferred_node %d\n", mp->v.preferred_node); + break; + + case MPOL_BIND: + case MPOL_INTERLEAVE: + { + int i, nlongs; + unsigned long *longp; + + kdb_printf(" mode %d (%s)\n", mp->mode, + mp->mode == MPOL_INTERLEAVE + ? "MPOL_INTERLEAVE" + : "MPOL_BIND"); + nlongs = (int)BITS_TO_LONGS(MAX_NUMNODES); + kdb_printf(" nodes:"); + longp = mp->v.nodes.bits; + for (i = 0; i < nlongs; i++, longp++) + kdb_printf(" 0x%lx ", *longp); + kdb_printf("\n"); + break; + } + + default: + kdb_printf(" mode %d (unknown)\n", mp->mode); + break; + } +out: + if (mp) + kfree(mp); + return err; +} + +#endif /* CONFIG_NUMA */ + /* * kdbm_vm * @@ -819,6 +902,9 @@ { kdb_register("vm", kdbm_vm, "[-v] ", "Display vm_area_struct", 0); kdb_register("vmp", kdbm_vm, "[-v] ", "Display all vm_area_struct for ", 0); +#ifdef CONFIG_NUMA + kdb_register("mempolicy", kdbm_mpol, "", "Display mempolicy structure", 0); +#endif kdb_register("pte", kdbm_pte, "( -m | -p ) []", "Display pte_t for mm_struct or pid", 0); kdb_register("rpte", kdbm_rpte, "( -m | -p ) []", "Find pte_t containing pfn for mm_struct or pid", 0); kdb_register("dentry", kdbm_dentry, "", "Display interesting dentry stuff", 0); @@ -836,6 +922,9 @@ { kdb_unregister("vm"); kdb_unregister("vmp"); +#ifdef CONFIG_NUMA + kdb_unregister("mempolicy"); +#endif kdb_unregister("pte"); kdb_unregister("rpte"); kdb_unregister("dentry"); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:32 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:52 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqVI6017285 for ; Thu, 10 Jul 2008 13:52:31 -0700 X-ASG-Debug-ID: 1215723215-3c1000550000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 34B1BDF21D9 for ; Thu, 10 Jul 2008 13:53:35 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id nriT6REdjDJ80VDu for ; Thu, 10 Jul 2008 13:53:35 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrYI5031198 for ; Thu, 10 Jul 2008 16:53:34 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrYUk031197 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:34 -0400 Resent-Message-Id: <200807102053.m6AKrYUk031197@gamx.iccur.com> Message-Id: <200807102053.m6AKrYUk031197@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 003/18] kdb-vm-fl-insert Subject: [PATCH 003/18] kdb-vm-fl-insert Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:34 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723217 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0012 1.0000 -2.0133 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.63 X-Barracuda-Spam-Status: No, SCORE=0.63 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1389 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Fix these -rc9 import compilation errors: kdb/modules/kdbm_vm.c:826: error: 'struct file_lock_operations' has no member named 'fl_insert' kdb/modules/kdbm_vm.c:826: error: 'struct file_lock_operations' has no member named 'fl_remove' Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_vm.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_vm.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_vm.c 2008-07-10 12:22:09.000000000 -0400 @@ -609,8 +609,7 @@ kdb_printf(" file_lock_operations"); if (fl.fl_ops) - kdb_printf("\n fl_insert = 0x%p fl_remove = 0x%p fl_copy_lock = 0x%p fl_release_private = 0x%p\n", - fl.fl_ops->fl_insert, fl.fl_ops->fl_remove, + kdb_printf("\n fl_copy_lock = 0x%p fl_release_private = 0x%p\n", fl.fl_ops->fl_copy_lock, fl.fl_ops->fl_release_private); else kdb_printf(" empty\n"); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:37 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:02 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqaYq017350 for ; Thu, 10 Jul 2008 13:52:36 -0700 X-ASG-Debug-ID: 1215723220-7c5001820000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 3663218AECD9 for ; Thu, 10 Jul 2008 13:53:41 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id CpWdLaGPlc45uPmD for ; Thu, 10 Jul 2008 13:53:41 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrdID031279 for ; Thu, 10 Jul 2008 16:53:40 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrdVR031278 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:39 -0400 Resent-Message-Id: <200807102053.m6AKrdVR031278@gamx.iccur.com> Message-Id: <200807102053.m6AKrdVR031278@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 000/18] Introduction Subject: [PATCH 000/18] Introduction Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:39 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723222 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0202 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1399 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb This patch series ports kdb from 2.6.26-rc8 to -rc9, defines some new kdb 'data structure display' commands, and implements several little fixups and enhancements that I've been using in KDB for a while. Regards, Joe ----------- series file ----------- kdb-v4.4-2.6.26-rc8-common-1.bz2 kdb-v4.4-2.6.26-rc8-x86-1.bz2 # kdb-vm-fl-insert # kdb-inatomic-usage kdb-expand-kdb-cmderror kdb-expand-dupl-cmd-error-msg kdb-touch-nmi-watchdog kdb-blade-8843-support kdb-show-cpus-needing-nmi kdb-ps-show-all kdb-suppress-boottime-msgs kdb-add-oops-breakpoint # kdb-cmd-memmap-discontigmem kdb-add-numa-support-to-task-cmd kdb-add-numa-support-to-vm-cmd kdb-add-mempolicy-cmd kdb-add-pgdat-cmd kdb-add-kdump-cmd --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:33 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:00 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqWkD017304 for ; Thu, 10 Jul 2008 13:52:33 -0700 X-ASG-Debug-ID: 1215723217-120201ec0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id D79672D97CD for ; Thu, 10 Jul 2008 13:53:38 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id fECziJvSCJvywc0K for ; Thu, 10 Jul 2008 13:53:38 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrbJ3031239 for ; Thu, 10 Jul 2008 16:53:37 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrbkc031238 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:37 -0400 Resent-Message-Id: <200807102053.m6AKrbkc031238@gamx.iccur.com> Message-Id: <200807102053.m6AKrbkc031238@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 011/18] kdb-suppress-boottime-msgs Subject: [PATCH 011/18] kdb-suppress-boottime-msgs Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:37 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723218 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1394 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Suppress KDB boottime INFO messages if a quiet boot was asked for. Make KDB honor the console_loglevel when printing out informative messages at boot time. This makes a fully quiet bootup sequence possible. Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 13:31:28.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:32:05.000000000 -0400 @@ -4056,10 +4056,12 @@ int i, diag; for (i = 0; kdb_cmds[i]; ++i) { if (!defcmd_in_progress) - kdb_printf("kdb_cmd[%d]: %s", i, kdb_cmds[i]); + if (console_loglevel >= 6 /* KERN_INFO */) + kdb_printf("kdb_cmd[%d]: %s", i, kdb_cmds[i]); diag = kdb_parse(kdb_cmds[i]); if (diag) - kdb_printf("command failed, kdb diag %d\n", diag); + kdb_printf("kdb command %s failed, kdb diag %d\n", + kdb_cmds[i], diag); } if (defcmd_in_progress) { kdb_printf("Incomplete 'defcmd' set, forcing endefcmd\n"); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:32 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:56 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqVJC017283 for ; Thu, 10 Jul 2008 13:52:32 -0700 X-ASG-Debug-ID: 1215723216-120601d30000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 8ECD72D97C4 for ; Thu, 10 Jul 2008 13:53:36 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id MlXEmDXiPS47NveU for ; Thu, 10 Jul 2008 13:53:36 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrZ7H031208 for ; Thu, 10 Jul 2008 16:53:35 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrZJ6031207 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:35 -0400 Resent-Message-Id: <200807102053.m6AKrZJ6031207@gamx.iccur.com> Message-Id: <200807102053.m6AKrZJ6031207@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 005/18] kdb-expand-kdb-cmderror Subject: [PATCH 005/18] kdb-expand-kdb-cmderror Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:35 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723217 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0216 1.0000 -1.8805 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.76 X-Barracuda-Spam-Status: No, SCORE=0.76 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1391 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Enhance kdb_cmderror diagnostic output. Make kdb_cmderror _always_ display the diagnostic code value. Prior to this patch, it would only display the code when it happened to be negative. (There are positive, non-error diagnostic codes in use, in addition to zero). Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 12:27:54.000000000 -0400 @@ -683,7 +683,7 @@ int i; if (diag >= 0) { - kdb_printf("no error detected\n"); + kdb_printf("no error detected (diagnostic is %d)\n", diag); return; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:36 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:03 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqZnh017336 for ; Thu, 10 Jul 2008 13:52:35 -0700 X-ASG-Debug-ID: 1215723218-1c3700570000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 789F018AECC9 for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id 03RQGsEkMmmeR0O8 for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrc5s031249 for ; Thu, 10 Jul 2008 16:53:38 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrbgx031248 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:37 -0400 Resent-Message-Id: <200807102053.m6AKrbgx031248@gamx.iccur.com> Message-Id: <200807102053.m6AKrbgx031248@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 013/18] kdb-cmd-memmap-discontigmem Subject: [PATCH 013/18] kdb-cmd-memmap-discontigmem Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:37 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723220 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1402 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Add CONFIG_DISCONTIGMEM support to kdbm_memmap. Updated the kdbm_memmap() 'memmap' command routine so that it now works when CONFIG_DISCONTIGMEM is enabled. When CONFIG_DISCONTIGMEM is enabled this routine outputs information for all pages in the system unless a 'node id' parameter is specifed, in which case the information for just that node's pages is output. Also changed this routine so that it can handle pages count values of -1. This was causing it to blow up, even when CONFIG_DISCONTIGMEM was disabled. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_pg.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_pg.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_pg.c 2008-07-10 13:34:55.000000000 -0400 @@ -557,18 +557,43 @@ int slab_count = 0; int dirty_count = 0; int locked_count = 0; - int page_counts[9]; + int page_counts[10]; /* [8] = large counts, [9] = -1 counts */ int buffered_count = 0; #ifdef buffer_delay int delay_count = 0; #endif int diag; unsigned long addr; +#ifdef CONFIG_DISCONTIGMEM + int node_id = -1, found_node = 0; + int tot_page_count = 0; + unsigned long unode_id; + pg_data_t *pgdat; + + if (argc == 1) { /* node_id was specified */ + diag = kdbgetularg(argv[argc], &unode_id); + if (diag) + return diag; + node_id = (int)unode_id; + } + else if (argc) + return KDB_ARGCOUNT; + + tot_page_count = 0; + memset(page_counts, 0, sizeof(page_counts)); + for_each_online_pgdat(pgdat) { + if ((node_id != -1) && (pgdat->node_id != node_id)) + continue; + found_node = 1; + addr = (unsigned long)pgdat->node_mem_map; + page_count = pgdat->node_spanned_pages; + tot_page_count += page_count; +#else addr = (unsigned long)mem_map; page_count = max_mapnr; memset(page_counts, 0, sizeof(page_counts)); - +#endif for (i = 0; i < page_count; i++) { if ((diag = kdb_getarea(page, addr))) return(diag); @@ -580,7 +605,9 @@ dirty_count++; if (PageLocked(&page)) locked_count++; - if (page._count.counter < 8) + if (page._count.counter == -1) + page_counts[9]++; + else if (page._count.counter < 8) page_counts[page._count.counter]++; else page_counts[8]++; @@ -591,9 +618,18 @@ delay_count++; #endif } - } - +#ifdef CONFIG_DISCONTIGMEM + } + page_count = tot_page_count; + if (node_id != -1) { + if (!found_node) { + kdb_printf("Node %d does not exist.\n", node_id); + return 0; + } + kdb_printf("Node %d pages:\n", node_id); + } +#endif kdb_printf(" Total pages: %6d\n", page_count); kdb_printf(" Slab pages: %6d\n", slab_count); kdb_printf(" Dirty pages: %6d\n", dirty_count); @@ -602,6 +638,7 @@ #ifdef buffer_delay kdb_printf(" Delalloc pages: %6d\n", delay_count); #endif + kdb_printf(" -1 page count: %6d\n", page_counts[9]); for (i = 0; i < 8; i++) { kdb_printf(" %d page count: %6d\n", i, page_counts[i]); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:35 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:00 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqYpF017330 for ; Thu, 10 Jul 2008 13:52:35 -0700 X-ASG-Debug-ID: 1215723220-182701fa0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id E9DF7DF21E1 for ; Thu, 10 Jul 2008 13:53:40 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id c4KhMAWYvBl3ixbM for ; Thu, 10 Jul 2008 13:53:40 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrdhQ031274 for ; Thu, 10 Jul 2008 16:53:39 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrdRb031273 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:39 -0400 Resent-Message-Id: <200807102053.m6AKrdRb031273@gamx.iccur.com> Message-Id: <200807102053.m6AKrdRb031273@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 018/18] kdb-add-kdump-cmd Subject: [PATCH 018/18] kdb-add-kdump-cmd Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:39 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723220 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1396 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Add kdump command to KDB. This command triggers a dump of the kernel via the kexec/kdump mechanism. Author: Jim Houston Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/Makefile =================================================================== --- 2.6.26-rc9.orig/kdb/modules/Makefile 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/Makefile 2008-07-10 13:41:59.000000000 -0400 @@ -6,7 +6,7 @@ # Copyright (c) 1999-2006 Silicon Graphics, Inc. All Rights Reserved. # -obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o +obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o kdbm_kdump.o obj-m += kdbm_debugtypes.o ifdef CONFIG_X86 obj-$(CONFIG_KDB_MODULES) += kdbm_x86.o Index: 2.6.26-rc9/kdb/modules/kdbm_kdump.c =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ 2.6.26-rc9/kdb/modules/kdbm_kdump.c 2008-07-10 13:40:59.000000000 -0400 @@ -0,0 +1,43 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + * Copyright (c) 2006 Concurrent Computer Corp + */ + +#include +#include +#include +#include +#include +#include +#include + + +MODULE_AUTHOR("Concurrent Computer Corp"); +MODULE_DESCRIPTION("interface to request kdump crash dump"); +MODULE_LICENSE("GPL"); + +static int +kdbm_kdump(int argc, const char **argv) +{ + kdb_printf("Calling crash_kexec\n"); + crash_kexec(get_irq_regs()); + kdb_printf("crash_kexec failed\n"); + return 0; +} + +static int __init kdbm_kdump_init(void) +{ + kdb_register("kdump", kdbm_kdump, "", "request kdump crash dump", 0); + return 0; +} + +static void __exit kdbm_kdump_exit(void) +{ + kdb_unregister("kdump"); +} + +module_init(kdbm_kdump_init) +module_exit(kdbm_kdump_exit) Index: 2.6.26-rc9/kernel/kexec.c =================================================================== --- 2.6.26-rc9.orig/kernel/kexec.c 2008-07-10 12:12:51.000000000 -0400 +++ 2.6.26-rc9/kernel/kexec.c 2008-07-10 13:40:59.000000000 -0400 @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -1077,6 +1078,7 @@ BUG_ON(!locked); } } +EXPORT_SYMBOL_GPL(crash_kexec); static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, size_t data_len) --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:32 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:57 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqWWc017300 for ; Thu, 10 Jul 2008 13:52:32 -0700 X-ASG-Debug-ID: 1215723217-1816024b0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 7FE99DF21D9 for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id HZdHu6C7YvRINQV6 for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKraoF031229 for ; Thu, 10 Jul 2008 16:53:36 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKraCJ031228 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:36 -0400 Resent-Message-Id: <200807102053.m6AKraCJ031228@gamx.iccur.com> Message-Id: <200807102053.m6AKraCJ031228@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 009/18] kdb-show-cpus-needing-nmi Subject: [PATCH 009/18] kdb-show-cpus-needing-nmi Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:36 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723218 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0002 1.0000 -2.0200 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1392 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Display exactly which cpus needed an NMI to get them into kdb. Signed-off-by: Joe Korty Index: 2.6.26-rc9/arch/x86/kdb/kdbasupport_32.c =================================================================== --- 2.6.26-rc9.orig/arch/x86/kdb/kdbasupport_32.c 2008-07-10 12:14:26.000000000 -0400 +++ 2.6.26-rc9/arch/x86/kdb/kdbasupport_32.c 2008-07-10 13:30:48.000000000 -0400 @@ -1056,10 +1056,14 @@ int c; if (KDB_FLAG(CATASTROPHIC)) return; - kdb_printf(" Sending NMI to cpus that have not responded yet\n"); - for_each_online_cpu(c) - if (kdb_running_process[c].seqno < kdb_seqno - 1) + kdb_printf(" Sending NMI to non-responding cpu(s): "); + for_each_online_cpu(c) { + if (kdb_running_process[c].seqno < kdb_seqno - 1) { + kdb_printf(" %d", c); send_IPI_mask(cpumask_of_cpu(c), NMI_VECTOR); + } + } + kdb_printf(".\n"); } #endif /* CONFIG_SMP */ Index: 2.6.26-rc9/arch/x86/kdb/kdbasupport_64.c =================================================================== --- 2.6.26-rc9.orig/arch/x86/kdb/kdbasupport_64.c 2008-07-10 12:14:26.000000000 -0400 +++ 2.6.26-rc9/arch/x86/kdb/kdbasupport_64.c 2008-07-10 13:30:48.000000000 -0400 @@ -1006,10 +1006,14 @@ int c; if (KDB_FLAG(CATASTROPHIC)) return; - kdb_printf(" Sending NMI to cpus that have not responded yet\n"); - for_each_online_cpu(c) - if (kdb_running_process[c].seqno < kdb_seqno - 1) + kdb_printf(" Sending NMI to non-responding cpus: "); + for_each_online_cpu(c) { + if (kdb_running_process[c].seqno < kdb_seqno - 1) { + kdb_printf(" %d", c); send_IPI_mask(cpumask_of_cpu(c), NMI_VECTOR); + } + } + kdb_printf(".\n"); } #endif /* CONFIG_SMP */ --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:34 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:00 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqWMx017299 for ; Thu, 10 Jul 2008 13:52:32 -0700 X-ASG-Debug-ID: 1215723216-7c52018a0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 0371C18AECCB for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id o1v51Z7Ruttqwl7a for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKraMn031218 for ; Thu, 10 Jul 2008 16:53:36 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrZPb031217 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:35 -0400 Resent-Message-Id: <200807102053.m6AKrZPb031217@gamx.iccur.com> Message-Id: <200807102053.m6AKrZPb031217@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 007/18] kdb-touch-nmi-watchdog Subject: [PATCH 007/18] kdb-touch-nmi-watchdog Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:35 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723218 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0040 1.0000 -1.9948 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.65 X-Barracuda-Spam-Status: No, SCORE=0.65 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1397 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Touch NMI watchdog in various KDB busy-loops. Various places where, for example, KDB writes out data to the terminal may take so long that the NMI watchdog timer expires, panicing the kernel. So touch the NMI watchdog timer on each iteration through such loops. Author: Jim Houston Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdb_io.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdb_io.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/kdb_io.c 2008-07-10 13:27:33.000000000 -0400 @@ -664,6 +664,7 @@ while (c) { c->write(c, kdb_buffer, strlen(kdb_buffer)); + touch_nmi_watchdog(); c = c->next; } if (logging) { @@ -720,6 +721,7 @@ while (c) { c->write(c, moreprompt, strlen(moreprompt)); + touch_nmi_watchdog(); c = c->next; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:31 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:50 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqV7Q017284 for ; Thu, 10 Jul 2008 13:52:31 -0700 X-ASG-Debug-ID: 1215723216-20d4019c0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 9BF4CDF21DC for ; Thu, 10 Jul 2008 13:53:36 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id LvMvhPitjezp8cS4 for ; Thu, 10 Jul 2008 13:53:36 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrZJb031213 for ; Thu, 10 Jul 2008 16:53:35 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrZ5u031212 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:35 -0400 Resent-Message-Id: <200807102053.m6AKrZ5u031212@gamx.iccur.com> Message-Id: <200807102053.m6AKrZ5u031212@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 006/18] kdb-expand-dupl-cmd-error-msg Subject: [PATCH 006/18] kdb-expand-dupl-cmd-error-msg Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:35 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723217 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0209 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1388 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Expand the KDB 'duplicate command' error message. Make more informative the error message that KDB prints out when an attempt is made to register a new KDB command that has the same name as an already-registered KDB command. The new message prints the name, etc of the offending command. This makes it easier to find the culprit. Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 12:30:55.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:27:05.000000000 -0400 @@ -3760,8 +3760,8 @@ */ for (i=0, kp=kdb_commands; icmd_name && (strcmp(kp->cmd_name, cmd)==0)) { - kdb_printf("Duplicate kdb command registered: '%s'\n", - cmd); + kdb_printf("Duplicate kdb command registered: " + "%s, func %p help %s\n", cmd, func, help); return 1; } } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:32 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:54 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqWg9017293 for ; Thu, 10 Jul 2008 13:52:32 -0700 X-ASG-Debug-ID: 1215723217-120401fa0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 337932D97C4 for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id Pcm8D1ZYMg4Z4BKP for ; Thu, 10 Jul 2008 13:53:37 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKraxs031223 for ; Thu, 10 Jul 2008 16:53:36 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrabM031222 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:36 -0400 Resent-Message-Id: <200807102053.m6AKrabM031222@gamx.iccur.com> Message-Id: <200807102053.m6AKrabM031222@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 008/18] kdb-blade-8843-support Subject: [PATCH 008/18] kdb-blade-8843-support Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:36 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723218 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1390 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Get KDB to work on the IMB HS20 Blade 8843 platform. Symptoms: after doing the \eKDB to get into kdb, we would get stuck in kdba_local_arch_setup(), waiting forever for the KBD_STAT_OBF status bit to set. The same was true for the exit processing in kdba_local_arch_cleanup(). Fix: so use code similar to that in kdb_kbdsend() and change the 'while forever' to a 'timeout for loop' and give up if the KBD_STAT_OBF bit never appears. This change lets us drop into and exit kdb sessions on a Blade 8843. Note: after dropping into kdb and spending several minutes in the kdb session (regardless of whether constantly typing kdb commands, or leaving the session idle), the Blade's console session will timeout and drop back into the "system>" prompt, and the blade will need to be reset and rebooted. This patch does _not_ fix this timeout issue. However, if you exit the kdb session with a 'go' command before the timeout occurs, then the system console will not drop back to the "system>" prompt, and the system will continue to function properly. Tested on a IBM HS20 Blade 8843. Miscellenous comments: 1. In order to get kdb=early to work on a Blade 8843, you have to use "console=uart,io,0x2f8,19200n" instead of the usual "console=ttyS0,19200" format. (The early kdb session does not have the problem where we drop back into the "system>" prompt.) 2. These code changes were also tested on a non-blade system to ensure that these code changes function properly with 'normal' systems. 3. The x86_64 versions of kdba_local_arch_setup() and kdba_local_arch_cleanup() routines are empty, so no changes were made for x86_64. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/arch/x86/kdb/kdba_io.c =================================================================== --- 2.6.26-rc9.orig/arch/x86/kdb/kdba_io.c 2008-07-10 12:14:26.000000000 -0400 +++ 2.6.26-rc9/arch/x86/kdb/kdba_io.c 2008-07-10 13:29:22.000000000 -0400 @@ -561,13 +561,15 @@ void kdba_local_arch_setup(void) { #ifdef CONFIG_VT_CONSOLE + int timeout; unsigned char c; while (kbd_read_status() & KBD_STAT_IBF); kbd_write_command(KBD_CCMD_READ_MODE); mdelay(1); while (kbd_read_status() & KBD_STAT_IBF); - while ( !(kbd_read_status() & KBD_STAT_OBF) ); + for (timeout = 200 * 1000; timeout && + (!(kbd_read_status() & KBD_STAT_OBF)); timeout--); c = kbd_read_input(); c &= ~KBD_MODE_KBD_INT; while (kbd_read_status() & KBD_STAT_IBF); @@ -584,13 +586,15 @@ void kdba_local_arch_cleanup(void) { #ifdef CONFIG_VT_CONSOLE + int timeout; unsigned char c; while (kbd_read_status() & KBD_STAT_IBF); kbd_write_command(KBD_CCMD_READ_MODE); mdelay(1); while (kbd_read_status() & KBD_STAT_IBF); - while ( !(kbd_read_status() & KBD_STAT_OBF) ); + for (timeout = 200 * 1000; timeout && + (!(kbd_read_status() & KBD_STAT_OBF)); timeout--); c = kbd_read_input(); c |= KBD_MODE_KBD_INT; while (kbd_read_status() & KBD_STAT_IBF); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:34 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:59 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqYhO017321 for ; Thu, 10 Jul 2008 13:52:34 -0700 X-ASG-Debug-ID: 1215723218-2011019f0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C8C76DF21E1 for ; Thu, 10 Jul 2008 13:53:38 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id ACxrvPtzZ7aEH42y for ; Thu, 10 Jul 2008 13:53:38 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrbsf031244 for ; Thu, 10 Jul 2008 16:53:37 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrb8N031243 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:37 -0400 Resent-Message-Id: <200807102053.m6AKrb8N031243@gamx.iccur.com> Message-Id: <200807102053.m6AKrb8N031243@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 012/18] kdb-add-oops-breakpoint Subject: [PATCH 012/18] kdb-add-oops-breakpoint Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:37 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723219 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0201 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1393 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Add a KDB breakpoint to the OOPs path. In a debug kernel, every OOPs should stop in KDB so that the OOPS can be examined by the operator in detail. Signed-off-by: Joe Korty Index: 2.6.26-rc9/lib/bug.c =================================================================== --- 2.6.26-rc9.orig/lib/bug.c 2008-07-10 12:12:51.000000000 -0400 +++ 2.6.26-rc9/lib/bug.c 2008-07-10 13:32:44.000000000 -0400 @@ -41,6 +41,10 @@ #include #include +#ifdef CONFIG_KDB +#include +#endif + extern const struct bug_entry __start___bug_table[], __stop___bug_table[]; #ifdef CONFIG_MODULES @@ -162,5 +166,9 @@ "[verbose debug info unavailable]\n", (void *)bugaddr); +#ifdef CONFIG_KDB + kdb(KDB_REASON_ENTER, 0, regs); +#endif + return BUG_TRAP_TYPE_BUG; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:35 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:53:02 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqYg7017328 for ; Thu, 10 Jul 2008 13:52:34 -0700 X-ASG-Debug-ID: 1215723219-2dcc010b0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 9634E2D97CD for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id 3CKl8asNiAbQSuOU for ; Thu, 10 Jul 2008 13:53:39 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrcqN031254 for ; Thu, 10 Jul 2008 16:53:38 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrcws031253 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:38 -0400 Resent-Message-Id: <200807102053.m6AKrcws031253@gamx.iccur.com> Message-Id: <200807102053.m6AKrcws031253@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 014/18] kdb-add-numa-support-to-task-cmd Subject: [PATCH 014/18] kdb-add-numa-support-to-task-cmd Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:38 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723220 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0009 1.0000 -2.0153 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.63 X-Barracuda-Spam-Status: No, SCORE=0.63 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55693 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1400 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Extend the KDB task command to handle CONFIG_NUMA fields. Changed the kdbm_task() 'task' command so that it now outputs the mempolicy and il_next task structure fields if CONFIG_NUMA is enabled. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_task.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_task.c 2008-07-10 12:14:15.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_task.c 2008-07-10 13:35:31.000000000 -0400 @@ -129,6 +129,12 @@ kdb_printf(" thread_info=0x%p\n", task_thread_info(tp)); kdb_printf(" ti flags=0x%lx\n", (unsigned long)task_thread_info(tp)->flags); +#ifdef CONFIG_NUMA + kdb_printf( + " mempolicy=0x%p il_next=%d\n", + tp->mempolicy, tp->il_next); +#endif + out: if (tp) kfree(tp); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 13:52:38 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 13:52:59 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AKqbKa017367 for ; Thu, 10 Jul 2008 13:52:37 -0700 X-ASG-Debug-ID: 1215723219-3b5f00780000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 5EAF1DF21E7 for ; Thu, 10 Jul 2008 13:53:42 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id M0LpZ6hATUHw6LNK for ; Thu, 10 Jul 2008 13:53:42 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrc8v031259 for ; Thu, 10 Jul 2008 16:53:38 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrcBu031258 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:38 -0400 Resent-Message-Id: <200807102053.m6AKrcBu031258@gamx.iccur.com> Message-Id: <200807102053.m6AKrcBu031258@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 015/18] kdb-add-numa-support-to-vm-cmd Subject: [PATCH 015/18] kdb-add-numa-support-to-vm-cmd Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:38 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215723223 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0209 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55692 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1395 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Extend the KDB vm command to support NUMA stuff. Enhanced the kdbm_print_vm() 'vm -v' to printout the following additional info when CONFIG_NUMA is enabled: vm_ops->set_policy vm_ops->get_policy vp->vm_policy Also added: vm_ops->populate outside the CONFIG_NUMA ifdef. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_vm.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_vm.c 2008-07-10 12:22:09.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_vm.c 2008-07-10 13:35:56.000000000 -0400 @@ -68,7 +68,8 @@ kdb_printf("vm_start = 0x%p vm_end = 0x%p\n", (void *) vp->vm_start, (void *) vp->vm_end); - kdb_printf("vm_page_prot = 0x%lx\n", pgprot_val(vp->vm_page_prot)); + kdb_printf("vm_page_prot = 0x%llx\n", + (unsigned long long)pgprot_val(vp->vm_page_prot)); kdb_printf("vm_flags: "); for (tp = vmflags; tp->mask; tp++) { @@ -93,13 +94,21 @@ if (vp->vm_ops != NULL) { kdb_printf("vm_ops->open = 0x%p\n", vp->vm_ops->open); kdb_printf("vm_ops->close = 0x%p\n", vp->vm_ops->close); + kdb_printf("vm_ops->fault = 0x%p\n", vp->vm_ops->fault); #ifdef HAVE_VMOP_MPROTECT kdb_printf("vm_ops->mprotect = 0x%p\n", vp->vm_ops->mprotect); #endif +#ifdef CONFIG_NUMA + kdb_printf("vm_ops->set_policy = 0x%p\n", vp->vm_ops->set_policy); + kdb_printf("vm_ops->get_policy = 0x%p\n", vp->vm_ops->get_policy); +#endif } kdb_printf("vm_pgoff = 0x%lx\n", vp->vm_pgoff); kdb_printf("vm_file = 0x%p\n", (void *) vp->vm_file); kdb_printf("vm_private_data = 0x%p\n", vp->vm_private_data); +#ifdef CONFIG_NUMA + kdb_printf("vm_policy = 0x%p\n", vp->vm_policy); +#endif return 0; } --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 14:55:24 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 14:55:33 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6ALtNqO024465 for ; Thu, 10 Jul 2008 14:55:24 -0700 X-ASG-Debug-ID: 1215726987-2dd603880000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 9A35F2D9F83 for ; Thu, 10 Jul 2008 14:56:28 -0700 (PDT) Received: from gamx.iccur.com (flusers.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id 8g856wgDb90oOUHg for ; Thu, 10 Jul 2008 14:56:28 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrblo031234 for ; Thu, 10 Jul 2008 16:53:37 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKraOB031233 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:36 -0400 Resent-Message-Id: <200807102053.m6AKraOB031233@gamx.iccur.com> Message-Id: <200807102053.m6AKraOB031233@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 010/18] kdb-ps-show-all Subject: [PATCH 010/18] kdb-ps-show-all Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:36 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: flusers.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215726989 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0128 1.0000 -1.9377 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.71 X-Barracuda-Spam-Status: No, SCORE=0.71 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55697 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1403 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Better document that kdb's 'ps A' command can be used to show _all_ processes and threads, not just those that kdb has deemed 'important'. Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 13:27:05.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-10 13:31:28.000000000 -0400 @@ -3170,13 +3170,13 @@ } kdb_while_each_thread(g, p); if (idle || daemon) { if (idle) - kdb_printf("%d idle process%s (state I)%s", + kdb_printf("%d idle process%s (state I)%s\n", idle, idle == 1 ? "" : "es", daemon ? " and " : ""); if (daemon) kdb_printf("%d sleeping system daemon (state M) process%s", daemon, daemon == 1 ? "" : "es"); - kdb_printf(" suppressed\n"); + kdb_printf(" suppressed,\nuse 'ps A' to see all.\n"); } } @@ -3925,7 +3925,7 @@ kdb_register_repeat("help", kdb_help, "", "Display Help Message", 1, KDB_REPEAT_NONE); kdb_register_repeat("?", kdb_help, "", "Display Help Message", 0, KDB_REPEAT_NONE); kdb_register_repeat("cpu", kdb_cpu, "","Switch to new cpu", 0, KDB_REPEAT_NONE); - kdb_register_repeat("ps", kdb_ps, "", "Display active task list", 0, KDB_REPEAT_NONE); + kdb_register_repeat("ps", kdb_ps, "[|A]", "Display active task list", 0, KDB_REPEAT_NONE); kdb_register_repeat("pid", kdb_pid, "", "Switch to another task", 0, KDB_REPEAT_NONE); kdb_register_repeat("reboot", kdb_reboot, "", "Reboot the machine immediately", 0, KDB_REPEAT_NONE); #if defined(CONFIG_MODULES) --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 14:55:24 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 14:55:33 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6ALtOO0024476 for ; Thu, 10 Jul 2008 14:55:24 -0700 X-ASG-Debug-ID: 1215726987-2dd603880002-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 710782D9F87 for ; Thu, 10 Jul 2008 14:56:29 -0700 (PDT) Received: from gamx.iccur.com (flusers.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id IL70QAtmMKp58VKy for ; Thu, 10 Jul 2008 14:56:29 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AKrdxV031269 for ; Thu, 10 Jul 2008 16:53:39 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AKrdSW031268 for kdb@oss.sgi.com; Thu, 10 Jul 2008 16:53:39 -0400 Resent-Message-Id: <200807102053.m6AKrdSW031268@gamx.iccur.com> Message-Id: <200807102053.m6AKrdSW031268@gamx.iccur.com> From: quilt@tsunami.ccur.com Date: Thu Jul 10 16:25:03 EDT 2008 X-ASG-Orig-Subj: [PATCH 017/18] kdb-add-pgdat-cmd Subject: [PATCH 017/18] kdb-add-pgdat-cmd Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 16:53:39 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: flusers.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215726990 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55697 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1404 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Create a pgdat command for KDB. This displays the 'pg_data_t' structure associated with a NUMA node id. pgdat When CONFIG_NUMA is disabled, the node_id parameter is ignored if it is specified, and the one pg_data_t structure is output. When CONFIG_NUMA is enabled, the user may optionally specify a node_id of the pg_data_t structure to be output. If not specified, then the node 0 structure is output. The output includes a decoding of the node's zonelists. Author: John Blackwood Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/modules/kdbm_vm.c =================================================================== --- 2.6.26-rc9.orig/kdb/modules/kdbm_vm.c 2008-07-10 13:36:59.000000000 -0400 +++ 2.6.26-rc9/kdb/modules/kdbm_vm.c 2008-07-10 13:37:56.000000000 -0400 @@ -218,6 +218,98 @@ #endif /* CONFIG_NUMA */ /* + * kdbm_pgdat + * + * This function implements the 'pgdat' command. + * Print a struct pglist_data (pg_dat_t). + * + * pgdat Print struct pglist_data for node . + * + * Print pglist_data for node 0 if node_id not specified, + * or print the one pglist_data structure if !CONFIG_NUMA. + */ +static int +kdbm_pgdat(int argc, const char **argv) +{ + int err = 0, node_id = 0, i; + pg_data_t *pgdatp = NULL; + +#ifdef CONFIG_NUMA + if (argc > 1) + return KDB_ARGCOUNT; + if (argc == 1) { + int nextarg; + long offset = 0; + unsigned long node_id_ul; + + nextarg = 1; + if ((err = kdbgetaddrarg(argc, argv, &nextarg, &node_id_ul, + &offset, NULL)) != 0) { + return(err); + } + node_id = (int)node_id_ul; + } +#endif + for_each_online_pgdat(pgdatp) { + if (pgdatp->node_id == node_id) + break; + } + if (!pgdatp) { + kdb_printf("%s: specified node not found\n", __FUNCTION__); + return 0; + } + kdb_printf("struct pglist_data at 0x%p node_id = %d\n", + pgdatp, pgdatp->node_id); + + for (i = 0; i < MAX_ZONELISTS; i++) { + int zr; + struct zoneref *zonerefp; + struct zone *zonep; + + zonerefp = pgdatp->node_zonelists[i]._zonerefs; + kdb_printf(" _zonerefs[%d] at 0x%p\n", i, zonerefp); + + for (zr = 0; zr <= MAX_ZONES_PER_ZONELIST; zr++, zonerefp++) { + int z; + pg_data_t *tmp_pgdatp; + + zonep = zonelist_zone(zonerefp); + if (!zonep) + break; + + kdb_printf(" 0x%p", zonep); + + for_each_online_pgdat(tmp_pgdatp) { + for (z = 0; z < MAX_NR_ZONES; z++) { + if (zonep == &tmp_pgdatp->node_zones[z]) { + kdb_printf (" (node %d node_zones[%d])", + tmp_pgdatp->node_id, z); + break; + } + } + if (z != MAX_NR_ZONES) + break; /* found it */ + } + kdb_printf("\n"); + } + } + + kdb_printf(" nr_zones = %d", pgdatp->nr_zones); +#ifdef CONFIG_FLAT_NODE_MEM_MAP + kdb_printf(" node_mem_map = 0x%p\n", pgdatp->node_mem_map); +#endif + kdb_printf(" bdata = 0x%p", pgdatp->bdata); + kdb_printf(" node_start_pfn = 0x%lx\n", pgdatp->node_start_pfn); + kdb_printf(" node_present_pages = %ld (0x%lx)\n", + pgdatp->node_present_pages, pgdatp->node_present_pages); + kdb_printf(" node_spanned_pages = %ld (0x%lx)\n", + pgdatp->node_spanned_pages, pgdatp->node_spanned_pages); + kdb_printf(" kswapd = 0x%p\n", pgdatp->kswapd); + + return err; +} + +/* * kdbm_vm * * This function implements the 'vm' command. Print a vm_area_struct. @@ -904,6 +996,9 @@ kdb_register("vmp", kdbm_vm, "[-v] ", "Display all vm_area_struct for ", 0); #ifdef CONFIG_NUMA kdb_register("mempolicy", kdbm_mpol, "", "Display mempolicy structure", 0); + kdb_register("pgdat", kdbm_pgdat, "", "Display pglist_data node structure", 0); +#else + kdb_register("pgdat", kdbm_pgdat, "", "Display pglist_data node structure", 0); #endif kdb_register("pte", kdbm_pte, "( -m | -p ) []", "Display pte_t for mm_struct or pid", 0); kdb_register("rpte", kdbm_rpte, "( -m | -p ) []", "Find pte_t containing pfn for mm_struct or pid", 0); @@ -925,6 +1020,7 @@ #ifdef CONFIG_NUMA kdb_unregister("mempolicy"); #endif + kdb_unregister("pgdat"); kdb_unregister("pte"); kdb_unregister("rpte"); kdb_unregister("dentry"); --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Thu Jul 10 15:47:52 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 15:47:55 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6AMlqV3031878 for ; Thu, 10 Jul 2008 15:47:52 -0700 X-ASG-Debug-ID: 1215730137-604400170000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 2388018AF947 for ; Thu, 10 Jul 2008 15:48:57 -0700 (PDT) Received: from gamx.iccur.com (flusers.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id zT6hukylnAVbQtdB for ; Thu, 10 Jul 2008 15:48:57 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6AMmu3f000522 for ; Thu, 10 Jul 2008 18:48:56 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6AMmunE000521 for kdb@oss.sgi.com; Thu, 10 Jul 2008 18:48:56 -0400 Resent-Message-Id: <200807102248.m6AMmunE000521@gamx.iccur.com> Message-Id: <200807102248.m6AMmunE000521@gamx.iccur.com> From: joe.korty@ccur.com Date: Thu Jul 10 18:44:40 EDT 2008 X-ASG-Orig-Subj: [PATCH 019/19] kdb-i386-boot-hang Subject: [PATCH 019/19] kdb-i386-boot-hang Resent-From: joe.korty@ccur.com Resent-Date: Thu, 10 Jul 2008 18:48:56 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: flusers.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215730138 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0207 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.62 X-Barracuda-Spam-Status: No, SCORE=0.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=INVALID_DATE, INVALID_DATE_2, MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55699 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.01 INVALID_DATE Invalid Date: header (not RFC 2822) 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header 1.76 INVALID_DATE_2 Invalid Date: header (not RFC 2822) To: undisclosed-recipients:; X-archive-position: 1405 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb KDB causes two of my i386 systems to hang on boot. This happens even if KDB is turned off. The following code snippet, borrowed from the x86_64 KDB port, fixes the hang for me. Signed-off-by: Joe Korty Index: 2.6.26-rc9/arch/x86/kernel/io_apic_32.c =================================================================== --- 2.6.26-rc9.orig/arch/x86/kernel/io_apic_32.c 2008-07-10 18:30:57.000000000 -0400 +++ 2.6.26-rc9/arch/x86/kernel/io_apic_32.c 2008-07-10 18:31:11.000000000 -0400 @@ -1188,6 +1188,10 @@ return -ENOSPC; if (test_and_set_bit(vector, used_vectors)) goto next; +#ifdef CONFIG_KDB + if (vector == KDBENTER_VECTOR) + goto next; +#endif current_vector = vector; current_offset = offset; --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jidong.xiao@gmail.com Thu Jul 10 23:15:58 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 10 Jul 2008 23:16:02 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6B6Fufs002294 for ; Thu, 10 Jul 2008 23:15:58 -0700 X-ASG-Debug-ID: 1215757006-1b5701800000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from fk-out-0910.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 486552DB7DF for ; Thu, 10 Jul 2008 23:16:47 -0700 (PDT) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by cuda.sgi.com with ESMTP id 2N5RIpxfoeM2UdMT for ; Thu, 10 Jul 2008 23:16:47 -0700 (PDT) Received: by fk-out-0910.google.com with SMTP id 26so1885311fkx.4 for ; Thu, 10 Jul 2008 23:16:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JycFrx/Oe8l6AWzm7noRH+yCK+pqqV7KV1WIW1F86xo=; b=BEoGmJ8xhkttaRwi1BC7RZjWAXt6WOr6oDmyNE/DVIk8nDClzda8dh4dAT9pJyw/lB xHJwnbVimpQ/mw2JjqCp95CwtO9NM0eFK4QP86AkrkwWUsffGuR1qMOX6POsOJ0XHPM0 hrIfVAWV17P5gdTJFVkbW0Hi+WqTPgry84vDA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=J3jPTfV7+gu+kADemgrS7RGea2zVXbhr36JloLDtxhYYIINFl6o06jtXteEzYhimQy ytYUWINwWSDGJPRF59IJNxca1mpaMIee8M2/O4KR543uiNZnphAeaxNyh2s73TjS4g4V 3/6aa4gNphq30tp1IYYAS3kvILOtcenc+Ms/U= Received: by 10.125.69.4 with SMTP id w4mr2724714mkk.18.1215757005883; Thu, 10 Jul 2008 23:16:45 -0700 (PDT) Received: by 10.125.151.11 with HTTP; Thu, 10 Jul 2008 23:16:45 -0700 (PDT) Message-ID: <4104961b0807102316k7c62b1d3s47fd744b578d7280@mail.gmail.com> Date: Fri, 11 Jul 2008 14:16:45 +0800 From: "jidong xiao" To: quilt@tsunami.ccur.com X-ASG-Orig-Subj: Re: [PATCH 018/18] kdb-add-kdump-cmd Subject: Re: [PATCH 018/18] kdb-add-kdump-cmd Cc: KDB In-Reply-To: <200807102053.m6AKrdRb031273@gamx.iccur.com> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline References: <200807102053.m6AKrdRb031273@gamx.iccur.com> X-Barracuda-Connect: fk-out-0910.google.com[209.85.128.187] X-Barracuda-Start-Time: 1215757008 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55726 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1406 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jidong.xiao@gmail.com Precedence: bulk X-list: kdb As I understand kexec/kdump code is arch dependent, but from your patch there is no arch specific piece of code, please can you explain this? Thanks Jason Xiao On Fri, Jul 11, 2008 at 4:57 AM, wrote: > Add kdump command to KDB. This command triggers > a dump of the kernel via the kexec/kdump mechanism. > > Author: Jim Houston > Signed-off-by: Joe Korty > > Index: 2.6.26-rc9/kdb/modules/Makefile > =================================================================== > --- 2.6.26-rc9.orig/kdb/modules/Makefile 2008-07-10 12:14:15.000000000 -0400 > +++ 2.6.26-rc9/kdb/modules/Makefile 2008-07-10 13:41:59.000000000 -0400 > @@ -6,7 +6,7 @@ > # Copyright (c) 1999-2006 Silicon Graphics, Inc. All Rights Reserved. > # > > -obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o > +obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o kdbm_kdump.o > obj-m += kdbm_debugtypes.o > ifdef CONFIG_X86 > obj-$(CONFIG_KDB_MODULES) += kdbm_x86.o > Index: 2.6.26-rc9/kdb/modules/kdbm_kdump.c > =================================================================== > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 > +++ 2.6.26-rc9/kdb/modules/kdbm_kdump.c 2008-07-10 13:40:59.000000000 -0400 > @@ -0,0 +1,43 @@ > +/* > + * This file is subject to the terms and conditions of the GNU General Public > + * License. See the file "COPYING" in the main directory of this archive > + * for more details. > + * > + * Copyright (c) 2006 Concurrent Computer Corp > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > + > +MODULE_AUTHOR("Concurrent Computer Corp"); > +MODULE_DESCRIPTION("interface to request kdump crash dump"); > +MODULE_LICENSE("GPL"); > + > +static int > +kdbm_kdump(int argc, const char **argv) > +{ > + kdb_printf("Calling crash_kexec\n"); > + crash_kexec(get_irq_regs()); > + kdb_printf("crash_kexec failed\n"); > + return 0; > +} > + > +static int __init kdbm_kdump_init(void) > +{ > + kdb_register("kdump", kdbm_kdump, "", "request kdump crash dump", 0); > + return 0; > +} > + > +static void __exit kdbm_kdump_exit(void) > +{ > + kdb_unregister("kdump"); > +} > + > +module_init(kdbm_kdump_init) > +module_exit(kdbm_kdump_exit) > Index: 2.6.26-rc9/kernel/kexec.c > =================================================================== > --- 2.6.26-rc9.orig/kernel/kexec.c 2008-07-10 12:12:51.000000000 -0400 > +++ 2.6.26-rc9/kernel/kexec.c 2008-07-10 13:40:59.000000000 -0400 > @@ -19,6 +19,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -1077,6 +1078,7 @@ > BUG_ON(!locked); > } > } > +EXPORT_SYMBOL_GPL(crash_kexec); > > static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, > size_t data_len) > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. > --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Fri Jul 11 07:39:14 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 07:39:18 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BEdDcI014630 for ; Fri, 11 Jul 2008 07:39:13 -0700 X-ASG-Debug-ID: 1215787218-3e2101b30000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 9DA5FDEAFF4 for ; Fri, 11 Jul 2008 07:40:18 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id nb3F08uDpoONhGfk for ; Fri, 11 Jul 2008 07:40:18 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6BEblRM009501; Fri, 11 Jul 2008 10:37:47 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6BEbld1009500; Fri, 11 Jul 2008 10:37:47 -0400 Date: Fri, 11 Jul 2008 10:37:47 -0400 From: Joe Korty To: jidong xiao Cc: kdb@oss.sgi.com, Jim Houston X-ASG-Orig-Subj: Re: [PATCH 018/18] kdb-add-kdump-cmd Subject: Re: [PATCH 018/18] kdb-add-kdump-cmd Message-ID: <20080711143747.GA9299@tsunami.ccur.com> Reply-To: Joe Korty References: <200807102053.m6AKrdRb031273@gamx.iccur.com> <4104961b0807102316k7c62b1d3s47fd744b578d7280@mail.gmail.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4104961b0807102316k7c62b1d3s47fd744b578d7280@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215787219 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0201 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55759 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Content-Transfer-Encoding: 8bit X-archive-position: 1407 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb On Fri, Jul 11, 2008 at 02:16:45AM -0400, jidong xiao wrote: > As I understand kexec/kdump code is arch dependent, but from your > patch there is no arch specific piece of code, please can you explain > this? > > Thanks > Jason Xiao Hi Jason, Well, kdump has a generic component as well a per-arch support components, so I guess if one is on an arch where the per-arch component is not present the the call to crash_kexec() will (hopefully) NOP. However, I am not a user of kdump, and we are (so far) an x86-only shop, so the behavour of crash_kexec() on other arches is unknown to me. I've forwarded your letter to the author of the patch, perhaps he will be able to provide additional illumination. Regards, Joe > On Fri, Jul 11, 2008 at 4:57 AM, wrote: > > Add kdump command to KDB. This command triggers > > a dump of the kernel via the kexec/kdump mechanism. > > > > Author: Jim Houston > > Signed-off-by: Joe Korty > > > > Index: 2.6.26-rc9/kdb/modules/Makefile > > =================================================================== > > --- 2.6.26-rc9.orig/kdb/modules/Makefile 2008-07-10 12:14:15.000000000 -0400 > > +++ 2.6.26-rc9/kdb/modules/Makefile 2008-07-10 13:41:59.000000000 -0400 > > @@ -6,7 +6,7 @@ > > # Copyright (c) 1999-2006 Silicon Graphics, Inc. All Rights Reserved. > > # > > > > -obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o > > +obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o kdbm_kdump.o > > obj-m += kdbm_debugtypes.o > > ifdef CONFIG_X86 > > obj-$(CONFIG_KDB_MODULES) += kdbm_x86.o > > Index: 2.6.26-rc9/kdb/modules/kdbm_kdump.c > > =================================================================== > > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 > > +++ 2.6.26-rc9/kdb/modules/kdbm_kdump.c 2008-07-10 13:40:59.000000000 -0400 > > @@ -0,0 +1,43 @@ > > +/* > > + * This file is subject to the terms and conditions of the GNU General Public > > + * License. See the file "COPYING" in the main directory of this archive > > + * for more details. > > + * > > + * Copyright (c) 2006 Concurrent Computer Corp > > + */ > > + > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > +#include > > + > > + > > +MODULE_AUTHOR("Concurrent Computer Corp"); > > +MODULE_DESCRIPTION("interface to request kdump crash dump"); > > +MODULE_LICENSE("GPL"); > > + > > +static int > > +kdbm_kdump(int argc, const char **argv) > > +{ > > + kdb_printf("Calling crash_kexec\n"); > > + crash_kexec(get_irq_regs()); > > + kdb_printf("crash_kexec failed\n"); > > + return 0; > > +} > > + > > +static int __init kdbm_kdump_init(void) > > +{ > > + kdb_register("kdump", kdbm_kdump, "", "request kdump crash dump", 0); > > + return 0; > > +} > > + > > +static void __exit kdbm_kdump_exit(void) > > +{ > > + kdb_unregister("kdump"); > > +} > > + > > +module_init(kdbm_kdump_init) > > +module_exit(kdbm_kdump_exit) > > Index: 2.6.26-rc9/kernel/kexec.c > > =================================================================== > > --- 2.6.26-rc9.orig/kernel/kexec.c 2008-07-10 12:12:51.000000000 -0400 > > +++ 2.6.26-rc9/kernel/kexec.c 2008-07-10 13:40:59.000000000 -0400 > > @@ -19,6 +19,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -1077,6 +1078,7 @@ > > BUG_ON(!locked); > > } > > } > > +EXPORT_SYMBOL_GPL(crash_kexec); > > > > static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, > > size_t data_len) --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jidong.xiao@gmail.com Fri Jul 11 08:23:42 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 08:23:46 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BFNfMk021593 for ; Fri, 11 Jul 2008 08:23:42 -0700 X-ASG-Debug-ID: 1215789885-18da00470000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gv-out-0910.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 30FBADFB23B for ; Fri, 11 Jul 2008 08:24:45 -0700 (PDT) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.188]) by cuda.sgi.com with ESMTP id q2pJALg0I5er3lHr for ; Fri, 11 Jul 2008 08:24:45 -0700 (PDT) Received: by gv-out-0910.google.com with SMTP id n29so635234gve.9 for ; Fri, 11 Jul 2008 08:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=yXIEyTajHFgYgR5CxyP00CJqzBUsOfkr0puF5+We+yw=; b=rxKKxRq5aHvwY/0xeNheM8NAPakpV1acYvzYn5MvI0oOYco7iyQQ/mbRAz7B7ecO5G tSz+5hyxwP8wvREkZXmCEr9z2d/Y6E6y8B4Zo1TlPqjX3KNNg6WxGTsLO0hpYAXpOq1Z +usTVQe7wSv1o0y0E8tFtrwc1F4Rv/yNa2qoE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Rp/5b2TD74AHI6iuxTM7t76FNno025/sKyTPtWqLvEhcqFEBs3tfNTYONERcd3UT/t dwY9QsuSzjm8thg4hqeprm4BqjH0oWkmEFRShHrwMaVWRzH58i2s2uvseYln+nyp/5TH NF17SkEsu6O/p0Gav3LMfeKOwrKqFjba9pXmE= Received: by 10.125.139.1 with SMTP id r1mr3046827mkn.19.1215789884388; Fri, 11 Jul 2008 08:24:44 -0700 (PDT) Received: by 10.125.151.11 with HTTP; Fri, 11 Jul 2008 08:24:44 -0700 (PDT) Message-ID: <4104961b0807110824k512b492v17dff270dd832c2a@mail.gmail.com> Date: Fri, 11 Jul 2008 23:24:44 +0800 From: "jidong xiao" To: "Joe Korty" X-ASG-Orig-Subj: Re: [PATCH 018/18] kdb-add-kdump-cmd Subject: Re: [PATCH 018/18] kdb-add-kdump-cmd Cc: kdb@oss.sgi.com, "Jim Houston" In-Reply-To: <20080711143747.GA9299@tsunami.ccur.com> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline References: <200807102053.m6AKrdRb031273@gamx.iccur.com> <4104961b0807102316k7c62b1d3s47fd744b578d7280@mail.gmail.com> <20080711143747.GA9299@tsunami.ccur.com> X-Barracuda-Connect: gv-out-0910.google.com[216.239.58.188] X-Barracuda-Start-Time: 1215789887 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.62 X-Barracuda-Spam-Status: No, SCORE=-1.62 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_SC0_SA085b X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55761 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.40 BSF_SC0_SA085b Custom Rule SA085b X-archive-position: 1408 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jidong.xiao@gmail.com Precedence: bulk X-list: kdb On Fri, Jul 11, 2008 at 10:37 PM, Joe Korty wrote: > On Fri, Jul 11, 2008 at 02:16:45AM -0400, jidong xiao wrote: >> As I understand kexec/kdump code is arch dependent, but from your >> patch there is no arch specific piece of code, please can you explain >> this? >> >> Thanks >> Jason Xiao > > Hi Jason, > Well, kdump has a generic component as well a per-arch > support components, so I guess if one is on an arch where > the per-arch component is not present the the call to > crash_kexec() will (hopefully) NOP. However, I am not a > user of kdump, and we are (so far) an x86-only shop, so the > behavour of crash_kexec() on other arches is unknown to me. > > I've forwarded your letter to the author of the patch, > perhaps he will be able to provide additional illumination. > > Regards, > Joe If I understand correctly, you are trying to add kexec/kdump functionality into kdb. say, input "kdump" after the kdb prompt, then kdump will begin to dump. This is actually already implemented by Dan some time back, you can refer to following link, http://www.mail-archive.com/kdb@oss.sgi.com/msg01358.html With this patch you can drop into kdb and enter "kdump", below is the demo: Jason login: Entering kdb (task 0xffffffff802fcae0 pid 0) on cpu 0 due to Keyboard Entry [0]kdb> kdump Linux version 2.6.18-53.el5 (root@Jason) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)) #1 SMP Sat Jan 19 21:31:58 EST 2008 Command line: root=/dev/sda12 console=ttyS0,9600 console=tty0 irqpoll maxcpus=1 reset_devices=1 memmap=exactmap memmap=640K@0K memmap=5508K@16384K memmap=124908K@22532K elfcorehdr=147440K memmap=63K#340752K BIOS-provided physical RAM map: BIOS-e820: 0000000000000100 - 00000000000a0000 (usable) BIOS-e820: 0000000000100000 - 00000000cffa8000 (usable) BIOS-e820: 00000000cffa8000 - 00000000cffb7c00 (ACPI data) BIOS-e820: 00000000cffb7c00 - 00000000d0000000 (reserved) BIOS-e820: 00000000e0000000 - 00000000f0000000 (reserved) BIOS-e820: 00000000fe000000 - 0000000100000000 (reserved) BIOS-e820: 0000000100000000 - 0000000230000000 (usable) ... ... Though his patch is against x86_64, it's not difficult to port to i386. I once tried this. But porting to ia64 is a little bit complicated. So I don't quite understand why you are modify the source code under modules/ subdirectory. Regards Jason > >> On Fri, Jul 11, 2008 at 4:57 AM, wrote: >> > Add kdump command to KDB. This command triggers >> > a dump of the kernel via the kexec/kdump mechanism. >> > >> > Author: Jim Houston >> > Signed-off-by: Joe Korty >> > >> > Index: 2.6.26-rc9/kdb/modules/Makefile >> > =================================================================== >> > --- 2.6.26-rc9.orig/kdb/modules/Makefile 2008-07-10 12:14:15.000000000 -0400 >> > +++ 2.6.26-rc9/kdb/modules/Makefile 2008-07-10 13:41:59.000000000 -0400 >> > @@ -6,7 +6,7 @@ >> > # Copyright (c) 1999-2006 Silicon Graphics, Inc. All Rights Reserved. >> > # >> > >> > -obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o >> > +obj-$(CONFIG_KDB_MODULES) += kdbm_pg.o kdbm_task.o kdbm_vm.o kdbm_sched.o kdbm_kdump.o >> > obj-m += kdbm_debugtypes.o >> > ifdef CONFIG_X86 >> > obj-$(CONFIG_KDB_MODULES) += kdbm_x86.o >> > Index: 2.6.26-rc9/kdb/modules/kdbm_kdump.c >> > =================================================================== >> > --- /dev/null 1970-01-01 00:00:00.000000000 +0000 >> > +++ 2.6.26-rc9/kdb/modules/kdbm_kdump.c 2008-07-10 13:40:59.000000000 -0400 >> > @@ -0,0 +1,43 @@ >> > +/* >> > + * This file is subject to the terms and conditions of the GNU General Public >> > + * License. See the file "COPYING" in the main directory of this archive >> > + * for more details. >> > + * >> > + * Copyright (c) 2006 Concurrent Computer Corp >> > + */ >> > + >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> > +#include >> > + >> > + >> > +MODULE_AUTHOR("Concurrent Computer Corp"); >> > +MODULE_DESCRIPTION("interface to request kdump crash dump"); >> > +MODULE_LICENSE("GPL"); >> > + >> > +static int >> > +kdbm_kdump(int argc, const char **argv) >> > +{ >> > + kdb_printf("Calling crash_kexec\n"); >> > + crash_kexec(get_irq_regs()); >> > + kdb_printf("crash_kexec failed\n"); >> > + return 0; >> > +} >> > + >> > +static int __init kdbm_kdump_init(void) >> > +{ >> > + kdb_register("kdump", kdbm_kdump, "", "request kdump crash dump", 0); >> > + return 0; >> > +} >> > + >> > +static void __exit kdbm_kdump_exit(void) >> > +{ >> > + kdb_unregister("kdump"); >> > +} >> > + >> > +module_init(kdbm_kdump_init) >> > +module_exit(kdbm_kdump_exit) >> > Index: 2.6.26-rc9/kernel/kexec.c >> > =================================================================== >> > --- 2.6.26-rc9.orig/kernel/kexec.c 2008-07-10 12:12:51.000000000 -0400 >> > +++ 2.6.26-rc9/kernel/kexec.c 2008-07-10 13:40:59.000000000 -0400 >> > @@ -19,6 +19,7 @@ >> > #include >> > #include >> > #include >> > +#include >> > #include >> > #include >> > #include >> > @@ -1077,6 +1078,7 @@ >> > BUG_ON(!locked); >> > } >> > } >> > +EXPORT_SYMBOL_GPL(crash_kexec); >> > >> > static u32 *append_elf_note(u32 *buf, char *name, unsigned type, void *data, >> > size_t data_len) > --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Fri Jul 11 09:32:53 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 09:32:57 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BGWrWL025953 for ; Fri, 11 Jul 2008 09:32:53 -0700 X-ASG-Debug-ID: 1215794038-710902860000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C50822DE370 for ; Fri, 11 Jul 2008 09:33:58 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id GZoO2IGTNbwVqGDb for ; Fri, 11 Jul 2008 09:33:58 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6BGXvjx010774 for ; Fri, 11 Jul 2008 12:33:58 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6BGXvjY010773 for kdb@oss.sgi.com; Fri, 11 Jul 2008 12:33:57 -0400 Resent-Message-Id: <200807111633.m6BGXvjY010773@gamx.iccur.com> Message-Id: <200807111633.m6BGXvjY010773@gamx.iccur.com> From: joe.korty@ccur.com Date: Fri, 11 Jul 2008 12:22:29 -0400 X-ASG-Orig-Subj: [PATCH 20/20] kdb-clocksource-resync Subject: [PATCH 20/20] kdb-clocksource-resync Reply-To: "Joe Korty" Resent-From: joe.korty@ccur.com Resent-Date: Fri, 11 Jul 2008 12:33:57 -0400 Resent-To: kdb@oss.sgi.com X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215794039 X-Barracuda-Bayes: INNOCENT GLOBAL 0.1331 1.0000 -1.1977 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -0.32 X-Barracuda-Spam-Status: No, SCORE=-0.32 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=MISSING_HEADERS, NO_REAL_NAME, TO_CC_NONE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55765 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.55 NO_REAL_NAME From: does not include a real name 0.19 MISSING_HEADERS Missing To: header 0.13 TO_CC_NONE No To: or Cc: header To: undisclosed-recipients:; X-archive-position: 1409 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb Fix up the clocksource watchdog whenever we leave KDB. Without this fixup, the TSC will be marked unstable whenever we leave KDB after being in KDB for 'too long' (tens of seconds). This is an undesireable system interaction with a measurement tool, as being marked unstable means the system has removed the TSC as a source of system time. Typical message: [3]kdb> g Clocksource tsc unstable (delta = 4687003347 ns) Signed-off-by: Joe Korty Index: 2.6.26-rc9/kdb/kdbmain.c =================================================================== --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 18:31:11.000000000 -0400 +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-11 11:46:18.000000000 -0400 @@ -40,6 +40,7 @@ #include #endif #include +#include #include #include @@ -2122,6 +2123,7 @@ kdbnearsym_cleanup(); debug_kusage(); } + clocksource_touch_watchdog(); if (!KDB_STATE(GO1)) { /* * Release all other cpus which will see KDB_STATE(LEAVING) is set. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Fri Jul 11 10:53:28 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 10:53:31 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BHrRq7031184 for ; Fri, 11 Jul 2008 10:53:28 -0700 X-ASG-Debug-ID: 1215798873-5f43003a0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id F3B0D2DE6BE for ; Fri, 11 Jul 2008 10:54:33 -0700 (PDT) Received: from gamx.iccur.com (flusers.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id tDN67cLGYKUZuSoG for ; Fri, 11 Jul 2008 10:54:33 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6BHsQSU011576; Fri, 11 Jul 2008 13:54:26 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6BHsQHu011575; Fri, 11 Jul 2008 13:54:26 -0400 Date: Fri, 11 Jul 2008 13:54:26 -0400 From: Joe Korty To: jidong xiao Cc: "kdb@oss.sgi.com" , "Houston, Jim" X-ASG-Orig-Subj: Re: [PATCH 018/18] kdb-add-kdump-cmd Subject: Re: [PATCH 018/18] kdb-add-kdump-cmd Message-ID: <20080711175426.GB11183@tsunami.ccur.com> Reply-To: Joe Korty References: <200807102053.m6AKrdRb031273@gamx.iccur.com> <4104961b0807102316k7c62b1d3s47fd744b578d7280@mail.gmail.com> <20080711143747.GA9299@tsunami.ccur.com> <4104961b0807110824k512b492v17dff270dd832c2a@mail.gmail.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4104961b0807110824k512b492v17dff270dd832c2a@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Barracuda-Connect: flusers.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215798873 X-Barracuda-Bayes: INNOCENT GLOBAL 0.1020 1.0000 -1.3810 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -0.98 X-Barracuda-Spam-Status: No, SCORE=-0.98 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_SC0_SA085b X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55770 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.40 BSF_SC0_SA085b Custom Rule SA085b Content-Transfer-Encoding: 8bit X-archive-position: 1410 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb On Fri, Jul 11, 2008 at 11:24:44AM -0400, jidong xiao wrote: > If I understand correctly, you are trying to add kexec/kdump > functionality into kdb. say, input "kdump" after the kdb prompt, then > kdump will begin to dump. > > This is actually already implemented by Dan some time back, you can > refer to following link, > http://www.mail-archive.com/kdb@oss.sgi.com/msg01358.html Hi Jason, That patch doesn't seem to have made it into kdb, which is why I missed it. In fact I like the version I submitted better. It is smaller and is architecture-agnostic as well. But I don't mind if it is dropped. There is always the sysRQ method of invoking a crash dump to fall back on. Regards, Joe --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jlan@sgi.com Fri Jul 11 14:54:49 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 14:54:52 -0700 (PDT) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BLsm6J018242 for ; Fri, 11 Jul 2008 14:54:49 -0700 Received: from [127.0.0.1] (sshgate.corp.sgi.com [198.149.36.12]) by cthulhu.engr.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id m6BLtqee030725; Fri, 11 Jul 2008 14:55:53 -0700 Message-ID: <4877D6C2.7040804@sgi.com> Date: Fri, 11 Jul 2008 14:55:14 -0700 From: Jay Lan User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: Joe Korty CC: KDB , jim.houston@ccur.com, jidong.xiao@gmail.com Subject: Re: [PATCH 000/18] Introduction References: <200807102053.m6AKrdVR031278@gamx.iccur.com> In-Reply-To: <200807102053.m6AKrdVR031278@gamx.iccur.com> X-Enigmail-Version: 0.94.0.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 1411 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jlan@sgi.com Precedence: bulk X-list: kdb quilt@tsunami.ccur.com wrote: > This patch series ports kdb from 2.6.26-rc8 to -rc9, > defines some new kdb 'data structure display' commands, > and implements several little fixups and enhancements > that I've been using in KDB for a while. Hi Joe, Thanks a lot for your big patchset! I have integrated your patches (with exception of the kdump patch) plus the kdb-i386-boot-hang patch to kdb-v4.4-2.6.26-rc9-*.bz2. I think we can use a little bit more time on kdump-kdb integration. I have committed to making it happen from the KDB side since it sems not possible to get it done at the kernel upstreams. Regards, - jay > > Regards, > Joe > > ----------- > series file > ----------- > > kdb-v4.4-2.6.26-rc8-common-1.bz2 > kdb-v4.4-2.6.26-rc8-x86-1.bz2 > # > kdb-vm-fl-insert > # > kdb-inatomic-usage > kdb-expand-kdb-cmderror > kdb-expand-dupl-cmd-error-msg > kdb-touch-nmi-watchdog > kdb-blade-8843-support > kdb-show-cpus-needing-nmi > kdb-ps-show-all > kdb-suppress-boottime-msgs > kdb-add-oops-breakpoint > # > kdb-cmd-memmap-discontigmem > kdb-add-numa-support-to-task-cmd > kdb-add-numa-support-to-vm-cmd > kdb-add-mempolicy-cmd > kdb-add-pgdat-cmd > kdb-add-kdump-cmd > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jlan@sgi.com Fri Jul 11 15:13:06 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 15:13:09 -0700 (PDT) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BMD5vL019634 for ; Fri, 11 Jul 2008 15:13:05 -0700 Received: from [127.0.0.1] (sshgate.corp.sgi.com [198.149.36.12]) by cthulhu.engr.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id m6BMEBee032370; Fri, 11 Jul 2008 15:14:12 -0700 Message-ID: <4877DB0D.9020807@sgi.com> Date: Fri, 11 Jul 2008 15:13:33 -0700 From: Jay Lan User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: Joe Korty CC: KDB Subject: Re: [PATCH 20/20] kdb-clocksource-resync References: <200807111633.m6BGXvjY010773@gamx.iccur.com> In-Reply-To: <200807111633.m6BGXvjY010773@gamx.iccur.com> X-Enigmail-Version: 0.94.0.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 1412 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jlan@sgi.com Precedence: bulk X-list: kdb joe.korty@ccur.com wrote: > Fix up the clocksource watchdog whenever we leave KDB. Thanks. This one did not make it to kdb-2.6.26-rc9-*. Queued up for next update. Regards, - jay > > Without this fixup, the TSC will be marked unstable > whenever we leave KDB after being in KDB for 'too long' > (tens of seconds). This is an undesireable system > interaction with a measurement tool, as being marked > unstable means the system has removed the TSC as a source > of system time. > > Typical message: > > [3]kdb> g > Clocksource tsc unstable (delta = 4687003347 ns) > > Signed-off-by: Joe Korty > > Index: 2.6.26-rc9/kdb/kdbmain.c > =================================================================== > --- 2.6.26-rc9.orig/kdb/kdbmain.c 2008-07-10 18:31:11.000000000 -0400 > +++ 2.6.26-rc9/kdb/kdbmain.c 2008-07-11 11:46:18.000000000 -0400 > @@ -40,6 +40,7 @@ > #include > #endif > #include > +#include > #include > > #include > @@ -2122,6 +2123,7 @@ > kdbnearsym_cleanup(); > debug_kusage(); > } > + clocksource_touch_watchdog(); > if (!KDB_STATE(GO1)) { > /* > * Release all other cpus which will see KDB_STATE(LEAVING) is set. > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From joe.korty@ccur.com Fri Jul 11 15:14:51 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 11 Jul 2008 15:14:54 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6BMEpwA019940 for ; Fri, 11 Jul 2008 15:14:51 -0700 X-ASG-Debug-ID: 1215814556-389700150000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from gamx.iccur.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 810BEDFE5A0; Fri, 11 Jul 2008 15:15:56 -0700 (PDT) Received: from gamx.iccur.com (vpnflf.ccur.com [12.192.68.2]) by cuda.sgi.com with ESMTP id zINRN1aaLh1o2Ctx; Fri, 11 Jul 2008 15:15:56 -0700 (PDT) Received: from gamx.iccur.com (localhost.localdomain [127.0.0.1]) by tsunami.ccur.com (8.13.8/8.13.5) with ESMTP id m6BMFnE3023719; Fri, 11 Jul 2008 18:15:49 -0400 Received: (from jak@localhost) by gamx.iccur.com (8.13.8/8.13.5/Submit) id m6BMFmsH023718; Fri, 11 Jul 2008 18:15:48 -0400 Date: Fri, 11 Jul 2008 18:15:48 -0400 From: Joe Korty To: Jay Lan Cc: KDB , "Houston, Jim" , "jidong.xiao@gmail.com" X-ASG-Orig-Subj: Re: [PATCH 000/18] Introduction Subject: Re: [PATCH 000/18] Introduction Message-ID: <20080711221548.GA23674@tsunami.ccur.com> Reply-To: Joe Korty References: <200807102053.m6AKrdVR031278@gamx.iccur.com> <4877D6C2.7040804@sgi.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4877D6C2.7040804@sgi.com> User-Agent: Mutt/1.4.2.1i X-Barracuda-Connect: vpnflf.ccur.com[12.192.68.2] X-Barracuda-Start-Time: 1215814557 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0001 1.0000 -2.0206 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.55785 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Content-Transfer-Encoding: 8bit X-archive-position: 1413 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: joe.korty@ccur.com Precedence: bulk X-list: kdb On Fri, Jul 11, 2008 at 05:55:14PM -0400, Jay Lan wrote: > quilt@tsunami.ccur.com wrote: > > This patch series ports kdb from 2.6.26-rc8 to -rc9, > > defines some new kdb 'data structure display' commands, > > and implements several little fixups and enhancements > > that I've been using in KDB for a while. > > Thanks a lot for your big patchset! I have integrated your > patches (with exception of the kdump patch) plus the > kdb-i386-boot-hang patch to kdb-v4.4-2.6.26-rc9-*.bz2. You're welcome. And thanks for reviewing and acting on these so quickly. > I think we can use a little bit more time on kdump-kdb > integration. Tis OK with me :) The new, stock KDB will be much better (for my uses at least) even without the kdump patch. Regards, Joe --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jidong.xiao@gmail.com Sun Jul 13 23:16:35 2008 Received: with ECARTIS (v1.0.0; list kdb); Sun, 13 Jul 2008 23:16:39 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6E6GXIc024290 for ; Sun, 13 Jul 2008 23:16:35 -0700 X-ASG-Debug-ID: 1216016259-1d1a02970000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from nf-out-0910.google.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 3546E18C3B7C for ; Sun, 13 Jul 2008 23:17:39 -0700 (PDT) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by cuda.sgi.com with ESMTP id 33anmgJtQukUVCF3 for ; Sun, 13 Jul 2008 23:17:39 -0700 (PDT) Received: by nf-out-0910.google.com with SMTP id h3so1229342nfh.42 for ; Sun, 13 Jul 2008 23:17:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=vpBg7e0m/Jup/BXc//EyfoQOHFRdPeqpW9Y7izvZlWI=; b=jMo5M1Ei2JTOY/iLRVOQKqOvhoZt2bWUkRyg/jEvrv3CrfYmFRb10FbUmA1qrTxjkN sIYjkuzJOGKgra5pSI+Mlyv5wZhhQIKNTfifsMYSg9AVcbKvcPm5OJreq71+plsCkzth Cm0HWQh/hP8/iOjl7rskwaALB1Sb5iy7n5u9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=IhqnFYzoFBvYK+BbfxguCKp01jxo3Pki4lxIMaKHhWuxLJIswiZ0o9lzPe5AtyugrP pJA4Bc1JQyu4P9y7xmmfl55hSCxAnN7Po0TGNulmhgzBmgBZ6Qp439L6LBf7H7YeGQwI zKfp3FWZqvO/Y9UNROprMh7ymLa50Gy6851bA= Received: by 10.125.165.14 with SMTP id s14mr3403421mko.95.1216016258431; Sun, 13 Jul 2008 23:17:38 -0700 (PDT) Received: by 10.125.151.11 with HTTP; Sun, 13 Jul 2008 23:17:38 -0700 (PDT) Message-ID: <4104961b0807132317x4d03e53akdaaaaf0674fe4dd9@mail.gmail.com> Date: Mon, 14 Jul 2008 14:17:38 +0800 From: "jidong xiao" To: "Jay Lan" X-ASG-Orig-Subj: Re: [PATCH 000/18] Introduction Subject: Re: [PATCH 000/18] Introduction Cc: "Joe Korty" , KDB , jim.houston@ccur.com In-Reply-To: <4877D6C2.7040804@sgi.com> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline References: <200807102053.m6AKrdVR031278@gamx.iccur.com> <4877D6C2.7040804@sgi.com> X-Barracuda-Connect: nf-out-0910.google.com[64.233.182.184] X-Barracuda-Start-Time: 1216016260 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56000 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1414 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jidong.xiao@gmail.com Precedence: bulk X-list: kdb On Sat, Jul 12, 2008 at 5:55 AM, Jay Lan wrote: > quilt@tsunami.ccur.com wrote: >> This patch series ports kdb from 2.6.26-rc8 to -rc9, >> defines some new kdb 'data structure display' commands, >> and implements several little fixups and enhancements >> that I've been using in KDB for a while. > > Hi Joe, > > Thanks a lot for your big patchset! I have integrated your > patches (with exception of the kdump patch) plus the > kdb-i386-boot-hang patch to kdb-v4.4-2.6.26-rc9-*.bz2. > > I think we can use a little bit more time on kdump-kdb > integration. I have committed to making it happen from the > KDB side since it sems not possible to get it done at the > kernel upstreams. Hi, Jay, Somehow I don't quite understand what your concern is, Dan's patch(see the link I pasted in the previous email for details.) would suffice for integrating kdump into kdb. I don't know why it was not accepted. I took his patch and ported to i386, then I tested the kdump command inside kdb, the result is okay, it works well in i386 and x86_64, the kernel I was using includes a couple of releases between 2.6.16 and 2.6.18. If you need the patches against the latest kdb release, I can submitted them to this maillist. In addition, I can port it into ia64 and send you the patch later. In the meanwhile, I don't think the patch summitted by Joe, (I mean the "kdump-kdb" patch) is really necessary. Regards Jason > > Regards, > - jay > >> >> Regards, >> Joe >> >> ----------- >> series file >> ----------- >> >> kdb-v4.4-2.6.26-rc8-common-1.bz2 >> kdb-v4.4-2.6.26-rc8-x86-1.bz2 >> # >> kdb-vm-fl-insert >> # >> kdb-inatomic-usage >> kdb-expand-kdb-cmderror >> kdb-expand-dupl-cmd-error-msg >> kdb-touch-nmi-watchdog >> kdb-blade-8843-support >> kdb-show-cpus-needing-nmi >> kdb-ps-show-all >> kdb-suppress-boottime-msgs >> kdb-add-oops-breakpoint >> # >> kdb-cmd-memmap-discontigmem >> kdb-add-numa-support-to-task-cmd >> kdb-add-numa-support-to-vm-cmd >> kdb-add-mempolicy-cmd >> kdb-add-pgdat-cmd >> kdb-add-kdump-cmd >> --------------------------- >> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. > > --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jlan@sgi.com Mon Jul 14 10:14:58 2008 Received: with ECARTIS (v1.0.0; list kdb); Mon, 14 Jul 2008 10:15:02 -0700 (PDT) Received: from kluge.engr.sgi.com (kluge.engr.sgi.com [192.102.96.102]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6EHEv9f026105 for ; Mon, 14 Jul 2008 10:14:58 -0700 Received: from [150.166.8.78] (aware.engr.sgi.com [150.166.8.78]) by kluge.engr.sgi.com (SGI-8.12.5/8.12.5) with ESMTP id m6EHG8CD965112; Mon, 14 Jul 2008 10:16:08 -0700 (PDT) Message-ID: <487B89D4.7070807@sgi.com> Date: Mon, 14 Jul 2008 10:16:04 -0700 From: Jay Lan User-Agent: Thunderbird 2.0.0.6 (X11/20070801) MIME-Version: 1.0 To: jidong xiao CC: Joe Korty , KDB , jim.houston@ccur.com Subject: Re: [PATCH 000/18] Introduction References: <200807102053.m6AKrdVR031278@gamx.iccur.com> <4877D6C2.7040804@sgi.com> <4104961b0807132317x4d03e53akdaaaaf0674fe4dd9@mail.gmail.com> In-Reply-To: <4104961b0807132317x4d03e53akdaaaaf0674fe4dd9@mail.gmail.com> Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 1415 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jlan@sgi.com Precedence: bulk X-list: kdb jidong xiao wrote: > On Sat, Jul 12, 2008 at 5:55 AM, Jay Lan wrote: >> quilt@tsunami.ccur.com wrote: >>> This patch series ports kdb from 2.6.26-rc8 to -rc9, >>> defines some new kdb 'data structure display' commands, >>> and implements several little fixups and enhancements >>> that I've been using in KDB for a while. >> Hi Joe, >> >> Thanks a lot for your big patchset! I have integrated your >> patches (with exception of the kdump patch) plus the >> kdb-i386-boot-hang patch to kdb-v4.4-2.6.26-rc9-*.bz2. >> >> I think we can use a little bit more time on kdump-kdb >> integration. I have committed to making it happen from the >> KDB side since it sems not possible to get it done at the >> kernel upstreams. > > Hi, Jay, > Somehow I don't quite understand what your concern is, Dan's > patch(see the link I pasted in the previous email for details.) would > suffice for integrating kdump into kdb. I don't know why it was not > accepted. The maintainer of KDB was Keith Owens back then and he thought the "correct" way to do it was to do it at the kernel. I agreed with him. Since efforts of people (including Keith Owens and Takenori Nagano) to get the fix to upstream kernel failed, i recently committed to get the siutation resolved from the KDB side. > I took his patch and ported to i386, then I tested the kdump > command inside kdb, the result is okay, it works well in i386 and > x86_64, the kernel I was using includes a couple of releases between > 2.6.16 and 2.6.18. If you need the patches against the latest kdb > release, I can submitted them to this maillist. In addition, I can > port it into ia64 and send you the patch later. This is great! Could you? A patch to KDB should work on x86_64, i386 and ia64. > > In the meanwhile, I don't think the patch summitted by Joe, (I mean > the "kdump-kdb" patch) is really necessary. I do not have a chance to try Joe's kdump-kdb patch yet. I think Joe made it clear that it was OK not including his patch. I believe he would be happy to see a solution if your revised patch works great. Regards, - jay > > Regards > Jason > >> Regards, >> - jay >> >>> Regards, >>> Joe >>> >>> ----------- >>> series file >>> ----------- >>> >>> kdb-v4.4-2.6.26-rc8-common-1.bz2 >>> kdb-v4.4-2.6.26-rc8-x86-1.bz2 >>> # >>> kdb-vm-fl-insert >>> # >>> kdb-inatomic-usage >>> kdb-expand-kdb-cmderror >>> kdb-expand-dupl-cmd-error-msg >>> kdb-touch-nmi-watchdog >>> kdb-blade-8843-support >>> kdb-show-cpus-needing-nmi >>> kdb-ps-show-all >>> kdb-suppress-boottime-msgs >>> kdb-add-oops-breakpoint >>> # >>> kdb-cmd-memmap-discontigmem >>> kdb-add-numa-support-to-task-cmd >>> kdb-add-numa-support-to-vm-cmd >>> kdb-add-mempolicy-cmd >>> kdb-add-pgdat-cmd >>> kdb-add-kdump-cmd >>> --------------------------- >>> Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. >> > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 11:22:17 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 11:22:23 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HIMHhj009864 for ; Thu, 17 Jul 2008 11:22:17 -0700 X-ASG-Debug-ID: 1216319004-625a01090000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 6117318F00A9 for ; Thu, 17 Jul 2008 11:23:24 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id Iz2ks3pbcf6zu8eJ for ; Thu, 17 Jul 2008 11:23:24 -0700 (PDT) Received: (qmail 19191 invoked by uid 1542); 17 Jul 2008 18:23:23 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=X1CqKoMBZKRc2nfn1VbrP5pts41A6VT+Zz3YD/D/rTdtmEeXv6g6gfRU4suurKOQ+9Q0iS2TFJdQ1U+ZG6hSRIr8xEKbzyY3dotgm/8QFdtDrFPQpEHBgGtEHe/ryifu ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 18:23:23 -0000 From: "Hasan Rashid" To: X-ASG-Orig-Subj: kdb has no working console and has switched itself off Subject: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 11:23:23 -0700 Message-ID: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoOjKnOAP1ctJlRFuwA1TgqRRqFg== X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216319005 X-Barracuda-Bayes: INNOCENT GLOBAL 0.4997 1.0000 0.0000 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56327 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1416 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb I am running Linux 2.6.22.19 with the kdb-patch, on an embedded device. I am connected to the device via serial port as that is the only interface available, other than Ethernet. When my kernel boots up I see the following message " kdb has no working console and has switched itself off". And whenever, I try echo "1" > /proc/sys/kernel/kdb I get the same message. Why is the kernel disabling it? What do I need to enable in the kernel? TIA! Regards, Hasan R. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jlan@sgi.com Thu Jul 17 12:16:43 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 12:16:47 -0700 (PDT) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HJGgoI013861 for ; Thu, 17 Jul 2008 12:16:42 -0700 Received: from [127.0.0.1] (sshgate.corp.sgi.com [198.149.36.12]) by cthulhu.engr.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id m6HJHmee004557; Thu, 17 Jul 2008 12:17:48 -0700 Message-ID: <487F9AB4.8050905@sgi.com> Date: Thu, 17 Jul 2008 12:17:08 -0700 From: Jay Lan User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: Hasan Rashid CC: kdb@oss.sgi.com Subject: Re: kdb has no working console and has switched itself off References: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> In-Reply-To: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> X-Enigmail-Version: 0.94.0.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 1417 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jlan@sgi.com Precedence: bulk X-list: kdb Hasan Rashid wrote: > I am running Linux 2.6.22.19 with the kdb-patch, on an embedded device. I am > connected to the device via serial port as that is the only interface > available, other than Ethernet. When my kernel boots up I see the following > message " kdb has no working console and has switched itself off". And > whenever, I try echo "1" > /proc/sys/kernel/kdb I get the same message. Why > is the kernel disabling it? What do I need to enable in the kernel? You need a console to use KDB. Can anybody with embedded device experience help him? Thanks! - jay > > TIA! > > Regards, Hasan R. > > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 12:46:27 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 12:46:31 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HJkQoM020982 for ; Thu, 17 Jul 2008 12:46:27 -0700 X-ASG-Debug-ID: 1216324054-32e200250000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 48D3A18F1AF0 for ; Thu, 17 Jul 2008 12:47:34 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id kmkyoz22sHQFW7h5 for ; Thu, 17 Jul 2008 12:47:34 -0700 (PDT) Received: (qmail 17173 invoked by uid 1542); 17 Jul 2008 19:47:34 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=42U1EzZkJVOBS5QicSE0cA2EhQOwkE3Cf6MWiAByQaSabmlrl81De0ZJvgRDaTyOlMtMuZNPGb+s5L0LmCa+H8QKR7AsyBLFyUUamlmgfg3JzpDMhn4BDoPan3Rv8xYh ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 19:47:34 -0000 From: "Hasan Rashid" To: "'Jay Lan'" Cc: References: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> <487F9AB4.8050905@sgi.com> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 12:47:32 -0700 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoQh6p4PH7j/SUQEaIP1J5+POg/wAAv44A In-Reply-To: <487F9AB4.8050905@sgi.com> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216324055 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0006 1.0000 -2.0174 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56331 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1418 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb This is only with the 2.6.22.19 kernel. I have a similar device (WRAP board) with the same setup, just a serial port connected to my computer and KDB works just fine on that. Kernel boot post is as follows: Linux version 2.6.22 (root@devserver1) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #9 Wed Jul 16 14:33:49 PDT 2008 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 00000000000a0000 (usable) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000008000000 (usable) BIOS-e820: 00000000fff00000 - 0000000100000000 (reserved) ... .... ..... kdb: Initialization failed - no console. kdb is disabled. kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved ..... .... ... Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Jay Lan > Sent: Thursday, July 17, 2008 12:17 PM > To: Hasan Rashid > Cc: kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > Hasan Rashid wrote: > > I am running Linux 2.6.22.19 with the kdb-patch, on an embedded device. > I am > > connected to the device via serial port as that is the only interface > > available, other than Ethernet. When my kernel boots up I see the > following > > message " kdb has no working console and has switched itself off". And > > whenever, I try echo "1" > /proc/sys/kernel/kdb I get the same message. > Why > > is the kernel disabling it? What do I need to enable in the kernel? > > You need a console to use KDB. > > Can anybody with embedded device experience help him? Thanks! > > - jay > > > > > TIA! > > > > Regards, Hasan R. > > > > > > --------------------------- > > Use http://oss.sgi.com/ecartis to modify your settings or to > unsubscribe. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From Scott.Lurndal@3leafsystems.com Thu Jul 17 13:05:10 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 13:05:14 -0700 (PDT) Received: from cuda.sgi.com ([192.48.176.15]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HK5AZx022440 for ; Thu, 17 Jul 2008 13:05:10 -0700 X-ASG-Debug-ID: 1216325178-3315008c0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from barracuda.3leafnetworks.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id A63FF18F1E6E for ; Thu, 17 Jul 2008 13:06:18 -0700 (PDT) Received: from barracuda.3leafnetworks.com (chronus.3leafnetworks.com [71.129.195.180]) by cuda.sgi.com with ESMTP id aX7LRQo2sOvjmj0r for ; Thu, 17 Jul 2008 13:06:18 -0700 (PDT) Received: from chronus.3leafnetworks.corp (chronus.3leafnetworks.corp [10.16.16.17]) by barracuda.3leafnetworks.com (Spam Firewall) with ESMTP id 85D2B28D9F for ; Thu, 17 Jul 2008 13:06:17 -0700 (PDT) Received: from pendragon.3leafnetworks.com ([10.32.0.1]) by chronus.3leafnetworks.corp with Microsoft SMTPSVC(6.0.3790.3959); Thu, 17 Jul 2008 13:06:17 -0700 Received: from pendragon.3leafnetworks.com (localhost.localdomain [127.0.0.1]) by pendragon.3leafnetworks.com (8.13.8/8.13.8) with ESMTP id m6HK6Hda028387; Thu, 17 Jul 2008 13:06:17 -0700 Received: (from slurndal@localhost) by pendragon.3leafnetworks.com (8.13.8/8.13.8/Submit) id m6HK6Hi5028386; Thu, 17 Jul 2008 13:06:17 -0700 Date: Thu, 17 Jul 2008 13:06:17 -0700 From: Scott Lurndal To: Hasan Rashid Cc: "'Jay Lan'" , kdb@oss.sgi.com X-ASG-Orig-Subj: Re: kdb has no working console and has switched itself off Subject: Re: kdb has no working console and has switched itself off Message-ID: <20080717200617.GA28373@pendragon.3leafnetworks.com> References: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> <487F9AB4.8050905@sgi.com> Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i X-OriginalArrivalTime: 17 Jul 2008 20:06:17.0259 (UTC) FILETIME=[927687B0:01C8E848] X-Barracuda-Connect: chronus.3leafnetworks.com[71.129.195.180] X-Barracuda-Start-Time: 1216325178 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0103 1.0000 -1.9536 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -1.95 X-Barracuda-Spam-Status: No, SCORE=-1.95 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56333 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Content-Transfer-Encoding: 8bit X-archive-position: 1419 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: scott.lurndal@3leafsystems.com Precedence: bulk X-list: kdb On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP board) > with the same setup, just a serial port connected to my computer and KDB > works just fine on that. > > .... > ..... > kdb: Initialization failed - no console. kdb is disabled. > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? scott --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 13:33:24 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 13:33:28 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HKXNrX024621 for ; Thu, 17 Jul 2008 13:33:23 -0700 X-ASG-Debug-ID: 1216326871-23ae01900000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 49805301EC1 for ; Thu, 17 Jul 2008 13:34:32 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id LAVlsjWISQwlGEGw for ; Thu, 17 Jul 2008 13:34:32 -0700 (PDT) Received: (qmail 1494 invoked by uid 1542); 17 Jul 2008 20:34:31 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=z+ns/cMHyz6667HyVQv3xjR5bOq/aGzBlvWZHRCBNZy1gVW9mI0W9zxFKUsiIka9wDNktRvr5zwmWTmx1Fo59H/BHXUtHb0KyaAat1atSm1B0uJp6QXlMGxfuQz8AMz4 ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 20:34:31 -0000 From: "Hasan Rashid" To: "'Scott Lurndal'" Cc: "'Jay Lan'" , References: <2D2821669B584C26B5B11EBF675D1F1D@dpn.local> <487F9AB4.8050905@sgi.com> <20080717200617.GA28373@pendragon.3leafnetworks.com> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 13:34:30 -0700 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoSJZ7OFmKrSHSTXOcPdKWNEAFMQAA0Z6A In-Reply-To: <20080717200617.GA28373@pendragon.3leafnetworks.com> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216326872 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0002 1.0000 -2.0198 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56335 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1420 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Scott, I compiled my kernel with the following: # Hardware I/O ports # CONFIG_SERIO=y CONFIG_SERIO_SERPORT=y # # Character devices # # CONFIG_VT is not set # CONFIG_SERIAL_NONSTANDARD is not set # # Serial drivers # CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_NR_UARTS=1 CONFIG_SERIAL_8250_RUNTIME_UARTS=1 # CONFIG_SERIAL_8250_EXTENDED is not set # Non-8250 serial port support # CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_UNIX98_PTYS=y CONFIG_LEGACY_PTYS=y CONFIG_LEGACY_PTY_COUNT=256 I found a similar post, at http://oss.sgi.com/archives/kdb/2005-08/msg00057.html, but this would imply that either my device is using a different driver (which I doubt) or the patch wasn't successful. Any other ideas? Regards, Hasan R. > -----Original Message----- > From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > Sent: Thursday, July 17, 2008 1:06 PM > To: Hasan Rashid > Cc: 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > board) > > with the same setup, just a serial port connected to my computer and KDB > > works just fine on that. > > > > .... > > ..... > > kdb: Initialization failed - no console. kdb is disabled. > > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights > > Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > scott --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From kaos@ocs.com.au Thu Jul 17 14:47:56 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 14:48:00 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HLltpZ029454 for ; Thu, 17 Jul 2008 14:47:56 -0700 X-ASG-Debug-ID: 1216331302-784801000000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from mail.ocs.com.au (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C2C88302230 for ; Thu, 17 Jul 2008 14:48:37 -0700 (PDT) Received: from mail.ocs.com.au (mail.ocs.com.au [202.134.241.204]) by cuda.sgi.com with ESMTP id 6c7DRuiwyg00QRFL for ; Thu, 17 Jul 2008 14:48:37 -0700 (PDT) Received: from ocs10w.ocs.com.au (ocs10w.ocs.com.au [192.168.254.10]) by mail.ocs.com.au (Postfix) with ESMTP id 6DC30E12CE3; Fri, 18 Jul 2008 07:48:04 +1000 (EST) Received: by ocs10w.ocs.com.au (Postfix, from userid 16331) id 50EC4FB8F9; Fri, 18 Jul 2008 07:48:04 +1000 (EST) Received: from ocs10w (localhost [127.0.0.1]) by ocs10w.ocs.com.au (Postfix) with ESMTP id 27758FB8F8; Fri, 18 Jul 2008 07:48:04 +1000 (EST) X-Mailer: exmh version 2.7.2 01/07/2005 (debian 1:2.7.2-12) with nmh-1.2 From: Keith Owens To: "Hasan Rashid" cc: "'Scott Lurndal'" , "'Jay Lan'" , kdb@oss.sgi.com X-ASG-Orig-Subj: Re: kdb has no working console and has switched itself off Subject: Re: kdb has no working console and has switched itself off In-reply-to: Your message of "Thu, 17 Jul 2008 13:34:30 MST." Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Date: Fri, 18 Jul 2008 07:48:04 +1000 Message-ID: <11426.1216331284@ocs10w> X-Barracuda-Connect: mail.ocs.com.au[202.134.241.204] X-Barracuda-Start-Time: 1216331343 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56340 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- Content-Transfer-Encoding: 8bit X-archive-position: 1421 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: kaos@ocs.com.au Precedence: bulk X-list: kdb "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: >Scott, > >I compiled my kernel with the following: > ># Hardware I/O ports ># >CONFIG_SERIO=y >CONFIG_SERIO_SERPORT=y > ># ># Character devices ># ># CONFIG_VT is not set ># CONFIG_SERIAL_NONSTANDARD is not set > ># ># Serial drivers ># >CONFIG_SERIAL_8250=y >CONFIG_SERIAL_8250_CONSOLE=y >CONFIG_SERIAL_8250_PCI=y >CONFIG_SERIAL_8250_NR_UARTS=1 >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 ># CONFIG_SERIAL_8250_EXTENDED is not set > ># Non-8250 serial port support ># >CONFIG_SERIAL_CORE=y >CONFIG_SERIAL_CORE_CONSOLE=y >CONFIG_UNIX98_PTYS=y >CONFIG_LEGACY_PTYS=y >CONFIG_LEGACY_PTY_COUNT=256 > >> -----Original Message----- >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] >> Sent: Thursday, July 17, 2008 1:06 PM >> To: Hasan Rashid >> Cc: 'Jay Lan'; kdb@oss.sgi.com >> Subject: Re: kdb has no working console and has switched itself off >> >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP >> board) >> > with the same setup, just a serial port connected to my computer and KDB >> > works just fine on that. >> > >> > .... >> > ..... >> > kdb: Initialization failed - no console. kdb is disabled. >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights >> >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? Your serial console is not being detected early enough (or not at all). You might need boot parameters console=ttyS0[,options] or console=uart,io,[,options] to ensure that the serial console is detected before kdb starts. See linux/Documentation/kernel-parameters.txt. There was a change to the kernel about a year ago to avoid probing non-existent serial hardware. That change avoided errors on some hardware, but unfortunately required extra boot parameters for early console bringup. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 14:58:11 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 14:58:16 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HLwBBO030583 for ; Thu, 17 Jul 2008 14:58:11 -0700 X-ASG-Debug-ID: 1216331958-030b01080000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id B24063007CE for ; Thu, 17 Jul 2008 14:59:18 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id 5E7ChitMitoo9fxA for ; Thu, 17 Jul 2008 14:59:18 -0700 (PDT) Received: (qmail 2615 invoked by uid 1542); 17 Jul 2008 21:59:18 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=1LBxh/Xr9e/cRBXP9J3GzwiBwBc5T0t15MUIpYsdk7Kzr7NVGuGMyMa6Mkj7LHkbEXMtnNMtQpn1DNhX8ED/amyDzWJ2myhzJjcOW1EI1XT/SKKyJNAtOmjNSsjf9NKs ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 21:59:18 -0000 From: "Hasan Rashid" To: "'Keith Owens'" Cc: "'Scott Lurndal'" , "'Jay Lan'" , References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 14:59:17 -0700 Message-ID: <06F02C9244C1484BA8A30E055420C2BB@dpn.local> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoVypTr1If78aHTdy66ILClRsRvAAAPJDw In-Reply-To: <11426.1216331284@ocs10w> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216331959 X-Barracuda-Bayes: INNOCENT GLOBAL 0.3614 1.0000 -0.1136 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -0.11 X-Barracuda-Spam-Status: No, SCORE=-0.11 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56340 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1422 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Keith, That definitely sounds like the most probable cause for it. I will look it up in the documentation and post my results to list. Thanks! Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Keith Owens > Sent: Thursday, July 17, 2008 2:48 PM > To: Hasan Rashid > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > >Scott, > > > >I compiled my kernel with the following: > > > ># Hardware I/O ports > ># > >CONFIG_SERIO=y > >CONFIG_SERIO_SERPORT=y > > > ># > ># Character devices > ># > ># CONFIG_VT is not set > ># CONFIG_SERIAL_NONSTANDARD is not set > > > ># > ># Serial drivers > ># > >CONFIG_SERIAL_8250=y > >CONFIG_SERIAL_8250_CONSOLE=y > >CONFIG_SERIAL_8250_PCI=y > >CONFIG_SERIAL_8250_NR_UARTS=1 > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > ># Non-8250 serial port support > ># > >CONFIG_SERIAL_CORE=y > >CONFIG_SERIAL_CORE_CONSOLE=y > >CONFIG_UNIX98_PTYS=y > >CONFIG_LEGACY_PTYS=y > >CONFIG_LEGACY_PTY_COUNT=256 > > > >> -----Original Message----- > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > >> Sent: Thursday, July 17, 2008 1:06 PM > >> To: Hasan Rashid > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > >> Subject: Re: kdb has no working console and has switched itself off > >> > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > >> board) > >> > with the same setup, just a serial port connected to my computer and > KDB > >> > works just fine on that. > >> > > >> > .... > >> > ..... > >> > kdb: Initialization failed - no console. kdb is disabled. > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > Rights > >> > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > Your serial console is not being detected early enough (or not at all). > You might need boot parameters console=ttyS0[,options] or > console=uart,io,[,options] to ensure that the serial console is > detected before kdb starts. See linux/Documentation/kernel- > parameters.txt. > There was a change to the kernel about a year ago to avoid probing > non-existent serial hardware. That change avoided errors on some > hardware, but unfortunately required extra boot parameters for early > console bringup. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 15:17:44 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 15:17:48 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HMHgYG032219 for ; Thu, 17 Jul 2008 15:17:44 -0700 X-ASG-Debug-ID: 1216333130-30ca00d80000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 21400E53DD2 for ; Thu, 17 Jul 2008 15:18:50 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id L1RwnxOqFtGUpTGA for ; Thu, 17 Jul 2008 15:18:50 -0700 (PDT) Received: (qmail 10018 invoked by uid 1542); 17 Jul 2008 22:18:50 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=WIzr6OP1GYUtsJF5lapo0HlMEaGYIY+vxNmMevxKas3fZoMb08gCLPaCiCYZkDtYK7rlyLceTUKWKRkLcBEy1349Wr29au7w6bKaPESMLcqSpY6pE9pNmTVbPG7PyuRJ ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 22:18:50 -0000 From: "Hasan Rashid" To: "'Keith Owens'" Cc: "'Scott Lurndal'" , "'Jay Lan'" , References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 15:18:50 -0700 Message-ID: <6B063595EB044C759E64AC51674E0AB0@dpn.local> MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoVulbbrXUh+ZWSEeq4chBBHzkIwAAnfiw In-Reply-To: <11426.1216331284@ocs10w> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216333131 X-Barracuda-Bayes: INNOCENT GLOBAL 0.4995 1.0000 0.0000 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56341 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-archive-position: 1423 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Keith, I haven't made any changes to the boot parameters yet. But here it goes: Kernel 2.4.32 booting on a WRAP board AMD Geode GX [This one works] ------------------------------------------------------------------- Kernel command line: auto BOOT_IMAGE=pebble ro root=301 console=ttyS0,19200n8,reboot=hard kdb version 4.3 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved ttyS00 at 0x03f8 (irq = 4) is a 16550A ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:pio, hdb:pio ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:pio, hdd:pio Kernel 2.6.22.19 booting on Alix2c0 AMD Geode LX [Doesn't yet] -------------------------------------------------------------- Linux version 2.6.22 (root@devserver1) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #9 Wed Jul 16 14:33:49 PDT 2008 ....... (loads bunch of other stuff) Kernel command line: auto BOOT_IMAGE=pebble ro root=301 console=ttyS0,19200n8,reboot=hard hdb=noprobe hdc=noprobe hdd=noprobe ide_setup: hdb=noprobe ide_setup: hdc=noprobe ide_setup: hdd=noprobe Initializing CPU#0 ....... (loads bunch of other stuff) kdb: Initialization failed - no console. kdb is disabled. kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved ....... (loads bunch of other stuff and then) Serial: 8250/16550 driver $Revision: 1.90 $ 1 ports, IRQ sharing disabled serial8250.0: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A serial8250 serial8250.0: unable to register port at index 1 (IO2f8 MEM0 IRQ3): -28 serial8250 serial8250.0: unable to register port at index 2 (IO3e8 MEM0 IRQ4): -28 serial8250 serial8250.0: unable to register port at index 3 (IO2e8 MEM0 IRQ3): -28 Looking at all that, I think its not recognizing it early enough. Does this give you more info? I am looking at the documentation to see if there is anything I can add to the boot params. Regards, Hasan Rashid Embedded Systems Software Engineer Office: 1(530)571-5507 Email: hasan@digitalpath.net Digital Path, Inc 275 Airpark Blvd suite 500 Chico, CA 95973 > -----Original Message----- > From: Keith Owens [mailto:kaos@ocs.com.au] > Sent: Thursday, July 17, 2008 2:48 PM > To: Hasan Rashid > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > >Scott, > > > >I compiled my kernel with the following: > > > ># Hardware I/O ports > ># > >CONFIG_SERIO=y > >CONFIG_SERIO_SERPORT=y > > > ># > ># Character devices > ># > ># CONFIG_VT is not set > ># CONFIG_SERIAL_NONSTANDARD is not set > > > ># > ># Serial drivers > ># > >CONFIG_SERIAL_8250=y > >CONFIG_SERIAL_8250_CONSOLE=y > >CONFIG_SERIAL_8250_PCI=y > >CONFIG_SERIAL_8250_NR_UARTS=1 > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > ># Non-8250 serial port support > ># > >CONFIG_SERIAL_CORE=y > >CONFIG_SERIAL_CORE_CONSOLE=y > >CONFIG_UNIX98_PTYS=y > >CONFIG_LEGACY_PTYS=y > >CONFIG_LEGACY_PTY_COUNT=256 > > > >> -----Original Message----- > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > >> Sent: Thursday, July 17, 2008 1:06 PM > >> To: Hasan Rashid > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > >> Subject: Re: kdb has no working console and has switched itself off > >> > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > >> board) > >> > with the same setup, just a serial port connected to my computer and > KDB > >> > works just fine on that. > >> > > >> > .... > >> > ..... > >> > kdb: Initialization failed - no console. kdb is disabled. > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > Rights > >> > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > Your serial console is not being detected early enough (or not at all). > You might need boot parameters console=ttyS0[,options] or > console=uart,io,[,options] to ensure that the serial console is > detected before kdb starts. See linux/Documentation/kernel- > parameters.txt. > There was a change to the kernel about a year ago to avoid probing > non-existent serial hardware. That change avoided errors on some > hardware, but unfortunately required extra boot parameters for early > console bringup. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 16:25:52 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 16:25:56 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HNPpNt009505 for ; Thu, 17 Jul 2008 16:25:52 -0700 X-ASG-Debug-ID: 1216337218-6cf801290000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 17749E546EE for ; Thu, 17 Jul 2008 16:26:59 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id t0yH8Nv9PaIdw6dN for ; Thu, 17 Jul 2008 16:26:59 -0700 (PDT) Received: (qmail 2438 invoked by uid 1542); 17 Jul 2008 23:26:58 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=1etcShjmpOpco3iltfFyKTAKsDogYO8dVNwZC4VZEGmr85FT4BcWHF0FZoPBXr9ZJ7rzj/uqorhmv/Zrb8QExN98+7ulNqO6UUHtC6sn6B5dR7pe4BkOJMQcAygz5sNb ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 23:26:58 -0000 From: "Hasan Rashid" To: "'Keith Owens'" Cc: "'Scott Lurndal'" , "'Jay Lan'" , References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 16:26:58 -0700 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoVypTr1If78aHTdy66ILClRsRvAADQyXw In-Reply-To: <11426.1216331284@ocs10w> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216337220 X-Barracuda-Bayes: INNOCENT GLOBAL 0.3823 1.0000 -0.0482 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -0.05 X-Barracuda-Spam-Status: No, SCORE=-0.05 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56344 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1424 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Keith, I replaced the boot arguments to (uart) what you see now. Kernel command line: auto BOOT_IMAGE=kiCkaSs ro root=301 console=ttyS0,19200n8 console=uart,io,0x3f8,19200n8 reboot=hard hdb=noprobe hdc=noprobe hdd=noprobe ide_setup: hdb=noprobe ide_setup: hdc=noprobe ide_setup: hdd=noprobe Initializing CPU#0 Early serial console at I/O port 0x3f8 (options '19200n8') kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved kdb_cmd[0]: defcmd archkdb "" "First line arch debugging" kdb_cmd[7]: defcmd archkdbcpu "" "archkdb with only tasks on cpus" kdb_cmd[14]: defcmd archkdbshort "" "archkdb with less detailed backtrace" kdb_cmd[21]: defcmd archkdbcommon "" "Common arch debugging" Kdb gets initialized and setup with early console detection. Now when I press CTRL+A nothing happens. How do I invoke kdb prompt? TIA! Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Keith Owens > Sent: Thursday, July 17, 2008 2:48 PM > To: Hasan Rashid > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > >Scott, > > > >I compiled my kernel with the following: > > > ># Hardware I/O ports > ># > >CONFIG_SERIO=y > >CONFIG_SERIO_SERPORT=y > > > ># > ># Character devices > ># > ># CONFIG_VT is not set > ># CONFIG_SERIAL_NONSTANDARD is not set > > > ># > ># Serial drivers > ># > >CONFIG_SERIAL_8250=y > >CONFIG_SERIAL_8250_CONSOLE=y > >CONFIG_SERIAL_8250_PCI=y > >CONFIG_SERIAL_8250_NR_UARTS=1 > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > ># Non-8250 serial port support > ># > >CONFIG_SERIAL_CORE=y > >CONFIG_SERIAL_CORE_CONSOLE=y > >CONFIG_UNIX98_PTYS=y > >CONFIG_LEGACY_PTYS=y > >CONFIG_LEGACY_PTY_COUNT=256 > > > >> -----Original Message----- > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > >> Sent: Thursday, July 17, 2008 1:06 PM > >> To: Hasan Rashid > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > >> Subject: Re: kdb has no working console and has switched itself off > >> > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > >> board) > >> > with the same setup, just a serial port connected to my computer and > KDB > >> > works just fine on that. > >> > > >> > .... > >> > ..... > >> > kdb: Initialization failed - no console. kdb is disabled. > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > Rights > >> > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > Your serial console is not being detected early enough (or not at all). > You might need boot parameters console=ttyS0[,options] or > console=uart,io,[,options] to ensure that the serial console is > detected before kdb starts. See linux/Documentation/kernel- > parameters.txt. > There was a change to the kernel about a year ago to avoid probing > non-existent serial hardware. That change avoided errors on some > hardware, but unfortunately required extra boot parameters for early > console bringup. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From Scott.Lurndal@3leafsystems.com Thu Jul 17 16:39:10 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 16:39:14 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HNd8BT010362 for ; Thu, 17 Jul 2008 16:39:10 -0700 X-ASG-Debug-ID: 1216338015-10b4007e0000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from barracuda.3leafnetworks.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id CE823E27C86 for ; Thu, 17 Jul 2008 16:40:16 -0700 (PDT) Received: from barracuda.3leafnetworks.com (chronus.3leafnetworks.com [71.129.195.180]) by cuda.sgi.com with ESMTP id oGt5SEeVUuFVRIph for ; Thu, 17 Jul 2008 16:40:16 -0700 (PDT) Received: from chronus.3leafnetworks.corp (chronus.3leafnetworks.corp [10.16.16.17]) by barracuda.3leafnetworks.com (Spam Firewall) with ESMTP id 01A6240917 for ; Thu, 17 Jul 2008 16:32:20 -0700 (PDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-type: text/plain X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 16:31:50 -0700 Message-ID: <7C1D552561AF0544ACC7CF6F10E4966EDE3E07@chronus.3leafnetworks.corp> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: kdb has no working console and has switched itself off Thread-Index: AcjoVypTr1If78aHTdy66ILClRsRvAADQyXwAABEne0= References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> From: "Scott Lurndal" To: "Hasan Rashid" , "Keith Owens" Cc: "Jay Lan" , X-Barracuda-Connect: chronus.3leafnetworks.com[71.129.195.180] X-Barracuda-Start-Time: 1216338016 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56346 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message Content-Transfer-Encoding: 8bit X-archive-position: 1425 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: Scott.Lurndal@3leafsystems.com Precedence: bulk X-list: kdb it is KDB now instead of ctrl-a. scott -----Original Message----- From: Hasan Rashid [mailto:hasan@digitalpath.net] Sent: Thu 7/17/2008 4:26 PM To: 'Keith Owens' Cc: Scott Lurndal; 'Jay Lan'; kdb@oss.sgi.com Subject: RE: kdb has no working console and has switched itself off Keith, I replaced the boot arguments to (uart) what you see now. Kernel command line: auto BOOT_IMAGE=kiCkaSs ro root=301 console=ttyS0,19200n8 console=uart,io,0x3f8,19200n8 reboot=hard hdb=noprobe hdc=noprobe hdd=noprobe ide_setup: hdb=noprobe ide_setup: hdc=noprobe ide_setup: hdd=noprobe Initializing CPU#0 Early serial console at I/O port 0x3f8 (options '19200n8') kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved kdb_cmd[0]: defcmd archkdb "" "First line arch debugging" kdb_cmd[7]: defcmd archkdbcpu "" "archkdb with only tasks on cpus" kdb_cmd[14]: defcmd archkdbshort "" "archkdb with less detailed backtrace" kdb_cmd[21]: defcmd archkdbcommon "" "Common arch debugging" Kdb gets initialized and setup with early console detection. Now when I press CTRL+A nothing happens. How do I invoke kdb prompt? TIA! Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Keith Owens > Sent: Thursday, July 17, 2008 2:48 PM > To: Hasan Rashid > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > >Scott, > > > >I compiled my kernel with the following: > > > ># Hardware I/O ports > ># > >CONFIG_SERIO=y > >CONFIG_SERIO_SERPORT=y > > > ># > ># Character devices > ># > ># CONFIG_VT is not set > ># CONFIG_SERIAL_NONSTANDARD is not set > > > ># > ># Serial drivers > ># > >CONFIG_SERIAL_8250=y > >CONFIG_SERIAL_8250_CONSOLE=y > >CONFIG_SERIAL_8250_PCI=y > >CONFIG_SERIAL_8250_NR_UARTS=1 > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > ># Non-8250 serial port support > ># > >CONFIG_SERIAL_CORE=y > >CONFIG_SERIAL_CORE_CONSOLE=y > >CONFIG_UNIX98_PTYS=y > >CONFIG_LEGACY_PTYS=y > >CONFIG_LEGACY_PTY_COUNT=256 > > > >> -----Original Message----- > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > >> Sent: Thursday, July 17, 2008 1:06 PM > >> To: Hasan Rashid > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > >> Subject: Re: kdb has no working console and has switched itself off > >> > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > >> board) > >> > with the same setup, just a serial port connected to my computer and > KDB > >> > works just fine on that. > >> > > >> > .... > >> > ..... > >> > kdb: Initialization failed - no console. kdb is disabled. > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > Rights > >> > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > Your serial console is not being detected early enough (or not at all). > You might need boot parameters console=ttyS0[,options] or > console=uart,io,[,options] to ensure that the serial console is > detected before kdb starts. See linux/Documentation/kernel- > parameters.txt. > There was a change to the kernel about a year ago to avoid probing > non-existent serial hardware. That change avoided errors on some > hardware, but unfortunately required extra boot parameters for early > console bringup. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Thu Jul 17 16:46:51 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 17 Jul 2008 16:46:55 -0700 (PDT) Received: from cuda.sgi.com (cuda2.sgi.com [192.48.168.29]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6HNkpJ5010781 for ; Thu, 17 Jul 2008 16:46:51 -0700 X-ASG-Debug-ID: 1216338478-50fb02580000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4C005302CBB for ; Thu, 17 Jul 2008 16:47:58 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id 0A4HtNNhUeB8kTbO for ; Thu, 17 Jul 2008 16:47:58 -0700 (PDT) Received: (qmail 9059 invoked by uid 1542); 17 Jul 2008 23:47:58 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=o+0JRGxYTq3aN1px6lDMbo8c85qRb/oVJPshQrkB1Mtm5aCVX7y/eIa/fczf7U+IL5j9nStFMsBqR+MVeqIe/m++NU1+Xc+PCRuAUk3iKV9ty0avALLPEs4T8nAFCcFN ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 17 Jul 2008 23:47:58 -0000 From: "Hasan Rashid" To: "'Scott Lurndal'" , "'Keith Owens'" Cc: "'Jay Lan'" , References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> <7C1D552561AF0544ACC7CF6F10E4966EDE3E07@chronus.3leafnetworks.corp> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Thu, 17 Jul 2008 16:47:58 -0700 Message-ID: MIME-Version: 1.0 Content-type: text/plain X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 Thread-Index: AcjoVypTr1If78aHTdy66ILClRsRvAADQyXwAABEne0AAGpZ0A== In-Reply-To: <7C1D552561AF0544ACC7CF6F10E4966EDE3E07@chronus.3leafnetworks.corp> X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216338479 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests=HTML_MESSAGE X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56347 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 HTML_MESSAGE BODY: HTML included in message Content-Transfer-Encoding: 8bit X-archive-position: 1426 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Good to know, thanks! Also, I wanted to update the post. I found out that the real, I mean the real, problem was this "console=uart,io,0x3f8,19200n8,reboot=hard". As you can see there is no space after the comma the boot arg wasn't successfully loaded. After removing that the problem was gone and kdb initialized properly, I am about to chew up my styrofoam cup now. I appreciate everyone in helping me resolve this. Thank you! Regards, Hasan R. _____ From: Scott Lurndal [mailto:Scott.Lurndal@3leafsystems.com] Sent: Thursday, July 17, 2008 4:32 PM To: Hasan Rashid; Keith Owens Cc: Jay Lan; kdb@oss.sgi.com Subject: RE: kdb has no working console and has switched itself off it is KDB now instead of ctrl-a. scott -----Original Message----- From: Hasan Rashid [mailto:hasan@digitalpath.net] Sent: Thu 7/17/2008 4:26 PM To: 'Keith Owens' Cc: Scott Lurndal; 'Jay Lan'; kdb@oss.sgi.com Subject: RE: kdb has no working console and has switched itself off Keith, I replaced the boot arguments to (uart) what you see now. Kernel command line: auto BOOT_IMAGE=kiCkaSs ro root=301 console=ttyS0,19200n8 console=uart,io,0x3f8,19200n8 reboot=hard hdb=noprobe hdc=noprobe hdd=noprobe ide_setup: hdb=noprobe ide_setup: hdc=noprobe ide_setup: hdd=noprobe Initializing CPU#0 Early serial console at I/O port 0x3f8 (options '19200n8') kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights Reserved kdb_cmd[0]: defcmd archkdb "" "First line arch debugging" kdb_cmd[7]: defcmd archkdbcpu "" "archkdb with only tasks on cpus" kdb_cmd[14]: defcmd archkdbshort "" "archkdb with less detailed backtrace" kdb_cmd[21]: defcmd archkdbcommon "" "Common arch debugging" Kdb gets initialized and setup with early console detection. Now when I press CTRL+A nothing happens. How do I invoke kdb prompt? TIA! Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Keith Owens > Sent: Thursday, July 17, 2008 2:48 PM > To: Hasan Rashid > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > Subject: Re: kdb has no working console and has switched itself off > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > >Scott, > > > >I compiled my kernel with the following: > > > ># Hardware I/O ports > ># > >CONFIG_SERIO=y > >CONFIG_SERIO_SERPORT=y > > > ># > ># Character devices > ># > ># CONFIG_VT is not set > ># CONFIG_SERIAL_NONSTANDARD is not set > > > ># > ># Serial drivers > ># > >CONFIG_SERIAL_8250=y > >CONFIG_SERIAL_8250_CONSOLE=y > >CONFIG_SERIAL_8250_PCI=y > >CONFIG_SERIAL_8250_NR_UARTS=1 > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > ># Non-8250 serial port support > ># > >CONFIG_SERIAL_CORE=y > >CONFIG_SERIAL_CORE_CONSOLE=y > >CONFIG_UNIX98_PTYS=y > >CONFIG_LEGACY_PTYS=y > >CONFIG_LEGACY_PTY_COUNT=256 > > > >> -----Original Message----- > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > >> Sent: Thursday, July 17, 2008 1:06 PM > >> To: Hasan Rashid > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > >> Subject: Re: kdb has no working console and has switched itself off > >> > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > >> > This is only with the 2.6.22.19 kernel. I have a similar device (WRAP > >> board) > >> > with the same setup, just a serial port connected to my computer and > KDB > >> > works just fine on that. > >> > > >> > .... > >> > ..... > >> > kdb: Initialization failed - no console. kdb is disabled. > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > Rights > >> > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > Your serial console is not being detected early enough (or not at all). > You might need boot parameters console=ttyS0[,options] or > console=uart,io,[,options] to ensure that the serial console is > detected before kdb starts. See linux/Documentation/kernel- > parameters.txt. > There was a change to the kernel about a year ago to avoid probing > non-existent serial hardware. That change avoided errors on some > hardware, but unfortunately required extra boot parameters for early > console bringup. > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From hasan@digitalpath.net Fri Jul 18 10:44:53 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 18 Jul 2008 10:45:00 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6IHiqd4010128 for ; Fri, 18 Jul 2008 10:44:53 -0700 X-ASG-Debug-ID: 1216403159-6df403240000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from smtp.digitalpath.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 4434DE5E4EF for ; Fri, 18 Jul 2008 10:45:59 -0700 (PDT) Received: from smtp.digitalpath.net (smtp.digitalpath.net [65.164.104.14]) by cuda.sgi.com with ESMTP id qIy2gSPE1qcC2iK9 for ; Fri, 18 Jul 2008 10:45:59 -0700 (PDT) Received: (qmail 6448 invoked by uid 1542); 18 Jul 2008 17:45:59 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=digitalpath.net; b=X6jmmNnt63q8SWXXfrvSdst08lHhdXEANOzTix6dHqthRDgUNcuYbq1+9ipAQE9MOnYjTGqAMuEXg45HWwM+rpRGT2lpZpq8/oI2lC5PfnwZD4PJpe0gG6nvbVnTCFg7 ; Received: from unknown (HELO netopsray) (65.164.104.9) by smtp.digitalpath.net with SMTP; 18 Jul 2008 17:45:58 -0000 From: "Hasan Rashid" To: "'Keith Owens'" Cc: References: Your message of "Thu, 17 Jul 2008 13:34:30 MST." <11426.1216331284@ocs10w> <7C1D552561AF0544ACC7CF6F10E4966EDE3E07@chronus.3leafnetworks.corp> X-ASG-Orig-Subj: RE: kdb has no working console and has switched itself off Subject: RE: kdb has no working console and has switched itself off Date: Fri, 18 Jul 2008 10:45:57 -0700 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcjoVypTr1If78aHTdy66ILClRsRvAADQyXwAABEne0AJh2h8A== In-Reply-To: <7C1D552561AF0544ACC7CF6F10E4966EDE3E07@chronus.3leafnetworks.corp> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512 X-Barracuda-Connect: smtp.digitalpath.net[65.164.104.14] X-Barracuda-Start-Time: 1216403161 X-Barracuda-Bayes: INNOCENT GLOBAL 0.0000 1.0000 -2.0210 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: -2.02 X-Barracuda-Spam-Status: No, SCORE=-2.02 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.1, rules version 3.1.56416 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1427 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: hasan@digitalpath.net Precedence: bulk X-list: kdb Upon invoking KDB from command line KDB, kdb crashes. Here is what I get: (This only happens when invoked by keyboard, any thoughts why?) ================================= [ INFO: inconsistent lock state ] 2.6.22 #9 --------------------------------- inconsistent {hardirq-on-W} -> {in-hardirq-W} usage. swapper/0 [HC1[1]:SC0[0]:HE0:SE1] takes: (kdb_printf_lock){+-..}, at: [] kdb_printf+0x179/0x300 {hardirq-on-W} state was registered at: [] __lock_acquire+0x4f3/0xbb0 [] lock_acquire+0x61/0x80 [] _spin_lock+0x2c/0x40 [] kdb_printf+0x179/0x300 [] kdb_cmd_init+0x43/0xa0 [] kdb_init+0x56/0xe0 [] start_kernel+0x175/0x290 [<00000000>] 0x0 [] 0xffffffff irq event stamp: 506284 hardirqs last enabled at (506283): [] default_idle+0x44/0x60 hardirqs last disabled at (506284): [] common_interrupt+0x24/0x40 softirqs last enabled at (506280): [] __do_softirq+0xa3/0xc0 softirqs last disabled at (506273): [] do_softirq+0x46/0x50 other info that might help us debug this: 2 locks held by swapper/0: #0: (&irq_lists[i].lock){++..}, at: [] serial8250_interrupt+0x2a/0x150 #1: (&port_lock_key){++..}, at: [] serial8250_interrupt+0x73/0x150 stack backtrace: [] show_trace_log_lvl+0x1a/0x30 [] show_trace+0x12/0x20 [] dump_stack+0x15/0x20 [] print_usage_bug+0x153/0x170 [] mark_lock+0x57f/0x590 [] __lock_acquire+0x661/0xbb0 [] lock_acquire+0x61/0x80 [] _spin_lock+0x2c/0x40 [] kdb_printf+0x179/0x300 [] kdb_local+0x6c/0x650 [] kdb_main_loop+0x93/0x1d0 [] kdba_main_loop+0x36/0x50 [] kdb+0x356/0x900 [] receive_chars+0x28b/0x330 [] serial8250_interrupt+0x144/0x150 [] handle_IRQ_event+0x28/0x60 [] handle_level_irq+0x65/0xe0 [] do_IRQ+0x43/0xa0 [] common_interrupt+0x2e/0x40 [] cpu_idle+0x5a/0x70 [] rest_init+0x3d/0x40 [] start_kernel+0x1ef/0x290 [<00000000>] 0x0 ======================= Regards, Hasan R. > -----Original Message----- > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf Of > Scott Lurndal > Sent: Thursday, July 17, 2008 4:32 PM > To: Hasan Rashid; Keith Owens > Cc: Jay Lan; kdb@oss.sgi.com > Subject: RE: kdb has no working console and has switched itself off > > it is KDB now instead of ctrl-a. > > > scott > > -----Original Message----- > From: Hasan Rashid [mailto:hasan@digitalpath.net] > Sent: Thu 7/17/2008 4:26 PM > To: 'Keith Owens' > Cc: Scott Lurndal; 'Jay Lan'; kdb@oss.sgi.com > Subject: RE: kdb has no working console and has switched itself off > > Keith, > I replaced the boot arguments to (uart) what you see now. > Kernel command line: auto BOOT_IMAGE=kiCkaSs ro root=301 > console=ttyS0,19200n8 console=uart,io,0x3f8,19200n8 reboot=hard > hdb=noprobe > hdc=noprobe hdd=noprobe > ide_setup: hdb=noprobe > ide_setup: hdc=noprobe > ide_setup: hdd=noprobe > Initializing CPU#0 > Early serial console at I/O port 0x3f8 (options '19200n8') > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All Rights > Reserved > kdb_cmd[0]: defcmd archkdb "" "First line arch debugging" > kdb_cmd[7]: defcmd archkdbcpu "" "archkdb with only tasks on cpus" > kdb_cmd[14]: defcmd archkdbshort "" "archkdb with less detailed backtrace" > kdb_cmd[21]: defcmd archkdbcommon "" "Common arch debugging" > > Kdb gets initialized and setup with early console detection. Now when I > press CTRL+A nothing happens. How do I invoke kdb prompt? > > TIA! > > Regards, Hasan R. > > > -----Original Message----- > > From: kdb-bounce@oss.sgi.com [mailto:kdb-bounce@oss.sgi.com] On Behalf > Of > > Keith Owens > > Sent: Thursday, July 17, 2008 2:48 PM > > To: Hasan Rashid > > Cc: 'Scott Lurndal'; 'Jay Lan'; kdb@oss.sgi.com > > Subject: Re: kdb has no working console and has switched itself off > > > > "Hasan Rashid" (on Thu, 17 Jul 2008 13:34:30 -0700) wrote: > > >Scott, > > > > > >I compiled my kernel with the following: > > > > > ># Hardware I/O ports > > ># > > >CONFIG_SERIO=y > > >CONFIG_SERIO_SERPORT=y > > > > > ># > > ># Character devices > > ># > > ># CONFIG_VT is not set > > ># CONFIG_SERIAL_NONSTANDARD is not set > > > > > ># > > ># Serial drivers > > ># > > >CONFIG_SERIAL_8250=y > > >CONFIG_SERIAL_8250_CONSOLE=y > > >CONFIG_SERIAL_8250_PCI=y > > >CONFIG_SERIAL_8250_NR_UARTS=1 > > >CONFIG_SERIAL_8250_RUNTIME_UARTS=1 > > ># CONFIG_SERIAL_8250_EXTENDED is not set > > > > > ># Non-8250 serial port support > > ># > > >CONFIG_SERIAL_CORE=y > > >CONFIG_SERIAL_CORE_CONSOLE=y > > >CONFIG_UNIX98_PTYS=y > > >CONFIG_LEGACY_PTYS=y > > >CONFIG_LEGACY_PTY_COUNT=256 > > > > > >> -----Original Message----- > > >> From: Scott Lurndal [mailto:scott.lurndal@3leafsystems.com] > > >> Sent: Thursday, July 17, 2008 1:06 PM > > >> To: Hasan Rashid > > >> Cc: 'Jay Lan'; kdb@oss.sgi.com > > >> Subject: Re: kdb has no working console and has switched itself off > > >> > > >> On Thu, Jul 17, 2008 at 12:47:32PM -0700, Hasan Rashid wrote: > > >> > This is only with the 2.6.22.19 kernel. I have a similar device > (WRAP > > >> board) > > >> > with the same setup, just a serial port connected to my computer > and > > KDB > > >> > works just fine on that. > > >> > > > >> > .... > > >> > ..... > > >> > kdb: Initialization failed - no console. kdb is disabled. > > >> > kdb version 4.4 by Keith Owens, Scott Lurndal. Copyright SGI, All > > Rights > > >> > > >> Did you build your 2.6.22.19 with CONFIG_SERIAL_CONSOLE, > > >> CONFIG_SERIAL_8250_CONSOLE or CONFIG_SERIAL_CORE_CONSOLE? > > > > Your serial console is not being detected early enough (or not at all). > > You might need boot parameters console=ttyS0[,options] or > > console=uart,io,[,options] to ensure that the serial console is > > detected before kdb starts. See linux/Documentation/kernel- > > parameters.txt. > > There was a change to the kernel about a year ago to avoid probing > > non-existent serial hardware. That change avoided errors on some > > hardware, but unfortunately required extra boot parameters for early > > console bringup. > > > > --------------------------- > > Use http://oss.sgi.com/ecartis to modify your settings or to > unsubscribe. > > > > --------------------------- > Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From jlan@sgi.com Fri Jul 18 12:54:32 2008 Received: with ECARTIS (v1.0.0; list kdb); Fri, 18 Jul 2008 12:54:36 -0700 (PDT) Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6IJsVnI022355 for ; Fri, 18 Jul 2008 12:54:31 -0700 Received: from [127.0.0.1] (sshgate.corp.sgi.com [198.149.36.12]) by cthulhu.engr.sgi.com (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id m6IJtVee008068; Fri, 18 Jul 2008 12:55:32 -0700 Message-ID: <4880F50B.3070609@sgi.com> Date: Fri, 18 Jul 2008 12:54:51 -0700 From: Jay Lan User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: KDB CC: Konstantin Baydarov , Greg Banks , anehori@checkpoint.com Subject: [ANNOUNCE] KDB hardware breakpoint support integrated in 2.6.26-{common,ia64,x86}-2 X-Enigmail-Version: 0.94.0.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-archive-position: 1428 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: jlan@sgi.com Precedence: bulk X-list: kdb Hi, I have integrated hardware breakpoint (bph/bpha) support on IA64 from Greg Banks and support on x86 arch from Konstantin Baydarov in the kdb-v4.4-2.6.26-{common,ia64,x86)-2 patches. This will break compilation of other platforms. Basically, two things you need to change: 1) write a pair of wrapper, kdba_alloc_hwbp & kdba_free_hwbp, in your arch/*/kdb/kdba_bp.c to call kdba_allocbp and kdba_freebp. 2) change all references to bp->bp_hard bp->bp_hard[0] if you keep one kdbhard_bp_t pointer in the kdb_bp_t struct (as in the IA64 case), or change to bp->bp_hard[] if you keep kdbhard_bp_t pointer per cpu in the kdb_bp_t struct (as in the case of x86.) The above steps would only get your arch-dependent code compiled again. You still need to provide your own implementation to support hardware breakpoints. Send me email if you need help. I will attach Greg's and Konstantin's original description below. Note that i had to twist their codes a bit, especially the common code, to get a version that works on ia64, x86_64 and i386. Another note. You should use bph/bpha to set breakpoints on data addresses and use bp to set breakpoints on instruction. At least the bph/bpha on ia64 does not support instruction mode. Avi Nehori reported that the case below did not work. It may still true. I did nothing in this regard. when you set an hardware break point to address XXXXX int *ptr = XXXXX -4; *(ptr + 4) =9; didnt work. Regards, - jay [Description from Greg Banks] The patch implements only the bare minimum to solve my particular problem. Things it does *NOT* do include: * Implement "inst" type breakpoints (using the IBR registers instead of the DBR registers). This would be fairly easy but utterly redundant given that existing software breakpoints (which writes a break.m instruction into RAM) work fine. * Implement "io" type breakpoints. I have no idea how. * Fix KDB to allow a read+write breakpoint, i.e. a breakpoint which traps when the cpu either reads or writes. You get to choose read breakpoints, or write breakpoints, but not both, and you can't put two breakpoints on the same address either. * Fix KDB to allow watching areas of memory other than 1, 2 or 4 bytes in size. The natural size on ia64 would be 8 bytes, and the format of the DBR registers allows much larger areas (powers of 2 up to 2^56). * Fix KDB to align the breakpoint address to the watched size (the hardware does this internally, so KDB should report what the hw is actually going to do). IA64 hardware debug registers generate faults, not traps. IOW, on return from the debugger, the cpu executes exactly the same instruction again. This patch gets around that this way: - Force the user to use the "ss" command to single-step the instruction manually; this was how I got through my debugging sessions. Caveats: Any process using ptrace() or perfmon() to access DBRs from userspace will be surprised to see psr.db propagate across fork. However, as the wider problem of making those processes and KDB co-exist while using the same small set of DBRs remains unaddressed, I wasn't too worried. [Description from Konstantin Baydarov]: This patch adds support for global hardware breakpoints to KDB on x86 targets. Hardware breakpoints are installed by setting per CPU db registers. So to make a hardware breakpoint global it should be installed in db registers on every CPU in system. So global hw bp can't be handle by kdb_bp_install_global and kdb_bp_remove_global because these functions are called only on "monarch" CPU, kdb_bp_install_local and kdb_bp_remove_local should be used instead because these are called for all CPUs. Main changes: - kdb_hardbreaks[KDB_MAXHARDBPT] - The processor architecture hardware breakpoint registers descriptors is defined for every CPU: static kdbhard_bp_t kdb_hardbreaks[NR_CPUS][KDB_MAXHARDBPT]; - "kdb_bp_t" (main breakpint structure) contains hardware breakpoint registers for every CPU: kdbhard_bp_t* bp_hard[NR_CPUS]; - global hardware breakpoint installation and removal is handled by kdb_bp_install_local and kdb_bp_remove_local which are executed on every CPU - kdba_allocbp and kdba_freebp are static, now kdba_alloc_hwbp and kdba_free_hwbp are used for allocating/freeing hardware breakpoint registers. If the hardware breakpoint is global then kdba_alloc_hwbp tries to allocate hardware breakpoint registers on every CPU. If there is no free hardware breakpoint on a CPU the allocation fails. - bph_installed was added to the hardware breakpoint descriptor to track per CPU hardware breakpoint installation. --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe. From sbachu@celestialsys.com Thu Jul 24 23:08:38 2008 Received: with ECARTIS (v1.0.0; list kdb); Thu, 24 Jul 2008 23:08:42 -0700 (PDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.168.28]) by oss.sgi.com (8.12.11.20060308/8.12.11/SuSE Linux 0.7) with ESMTP id m6P68cot020452 for ; Thu, 24 Jul 2008 23:08:38 -0700 X-ASG-Debug-ID: 1216966189-1cc200940000-sLlkUa X-Barracuda-URL: http://cuda.sgi.com:80/cgi-bin/mark.cgi Received: from imap.sh.mvista.com (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 06BF8E9E5D9 for ; Thu, 24 Jul 2008 23:09:49 -0700 (PDT) Received: from imap.sh.mvista.com (gateway-1237.mvista.com [63.81.120.155]) by cuda.sgi.com with ESMTP id w55QyjKjwdXI8H60 for ; Thu, 24 Jul 2008 23:09:49 -0700 (PDT) Received: from localhost.localdomain (unknown [10.161.2.157]) by imap.sh.mvista.com (Postfix) with ESMTP id 8994C3ED0 for ; Thu, 24 Jul 2008 23:09:48 -0700 (PDT) Message-ID: <48896E23.70507@celestialsys.com> Date: Fri, 25 Jul 2008 11:39:39 +0530 From: "sbachu@celestialsys.com" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: kdb@oss.sgi.com X-ASG-Orig-Subj: Reg : Kernel crash in KDB Enter event from USB Keyboard Subject: Reg : Kernel crash in KDB Enter event from USB Keyboard Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Barracuda-Connect: gateway-1237.mvista.com[63.81.120.155] X-Barracuda-Start-Time: 1216966190 X-Barracuda-Bayes: INNOCENT GLOBAL 0.5002 1.0000 0.7500 X-Barracuda-Virus-Scanned: by cuda.sgi.com at sgi.com X-Barracuda-Spam-Score: 0.75 X-Barracuda-Spam-Status: No, SCORE=0.75 using per-user scores of TAG_LEVEL=2.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=2.1 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.1.791 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-archive-position: 1429 X-ecartis-version: Ecartis v1.0.0 Sender: kdb-bounce@oss.sgi.com Errors-to: kdb-bounce@oss.sgi.com X-original-sender: sbachu@celestialsys.com Precedence: bulk X-list: kdb Hi , I am facing one issue with USB keyboard, while working with KDB. USB keyboard was connected to USB Hub 2.0. I applied latest kdb patches to latest kernel 1. linux-2.6.25.9.tar.bz2 2. kdb-v4.4-2.6.26-rc7-common-1 3. kdb-v4.4-2.6.26-rc7-x86-1 Kernel is getting crash while pressing "Pause" key on USB keyboard. If "Pause key" pressed from normal PS/2 Keyboard , then USB remaining keys will function well. Can you give me inputs to solve this issue. Thanks and Regards, Santhosh Kumar B --------------------------- Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.