From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Edge Subject: Can I use SGI's kdb with a dom0 pv-ops kernel? Date: Tue, 29 Jun 2010 15:05:42 -0700 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0817308724==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0817308724== Content-Type: multipart/alternative; boundary=0016364edb7e3be6a8048a32702d --0016364edb7e3be6a8048a32702d Content-Type: text/plain; charset=ISO-8859-1 I asked this a few weeks ago but didn't get a response, so at the risk of being a nag, I'll abbreviate and restate. I know there are other Xen specific debuggers, but I want to know if there's any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be included in a dom0 pv-ops kernel? While the patches apply cleanly and build, the result is that one drops into kdb on an oops the serial keyboard is non-functional. Is this a problem inherent in including an incompatible debugger, or perhaps just something wrong in a .config? Does anyone else use this debugger for dom0 work ? Thanks -Bruce --0016364edb7e3be6a8048a32702d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I asked this a few weeks ago but didn't get a response, so at the = risk of being a nag, I'll abbreviate and restate.

<= div>I know there are other Xen specific debuggers, but I want to know if th= ere's any reason why SGI's kdb,=A0http://oss.sgi.com/projects/kdb, should not be included in a= dom0 pv-ops kernel?

While the patches apply cleanly and build, the result i= s that one drops into kdb on an oops the serial keyboard is non-functional.= =A0
Is this a problem inherent in including an incompatible debug= ger, or perhaps just something wrong in a .config?

Does anyone else use this debugger for dom0 work ?

Thanks

-Bruce
--0016364edb7e3be6a8048a32702d-- --===============0817308724== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0817308724==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Can I use SGI's kdb with a dom0 pv-ops kernel? Date: Wed, 30 Jun 2010 12:11:33 -0400 Message-ID: <20100630161133.GD5100@phenom.dumpdata.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bruce Edge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Tue, Jun 29, 2010 at 03:05:42PM -0700, Bruce Edge wrote: > I asked this a few weeks ago but didn't get a response, so at the risk of > being a nag, I'll abbreviate and restate. > > I know there are other Xen specific debuggers, but I want to know if there's > any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be > included in a dom0 pv-ops kernel? Upstream is integrating one that I think is in 2.6.33 or 2.6.34. So when we rev up that we will get it for free. > > While the patches apply cleanly and build, the result is that one drops into > kdb on an oops the serial keyboard is non-functional. > Is this a problem inherent in including an incompatible debugger, or perhaps > just something wrong in a .config? What is your serial setup? Are you using the serial console also for Xen? Is the serial console that Dom0 sees usuable outside kdb? As in, can you use a null modem connection and poke Dom0 via that? > > Does anyone else use this debugger for dom0 work ? I haven't used it. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Edge Subject: Re: Can I use SGI's kdb with a dom0 pv-ops kernel? Date: Wed, 30 Jun 2010 09:44:46 -0700 Message-ID: References: <20100630161133.GD5100@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1516719296==" Return-path: In-Reply-To: <20100630161133.GD5100@phenom.dumpdata.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1516719296== Content-Type: multipart/alternative; boundary=001485f1dcd4511bda048a4212ea --001485f1dcd4511bda048a4212ea Content-Type: text/plain; charset=ISO-8859-1 On Wed, Jun 30, 2010 at 9:11 AM, Konrad Rzeszutek Wilk < konrad.wilk@oracle.com> wrote: > On Tue, Jun 29, 2010 at 03:05:42PM -0700, Bruce Edge wrote: > > I asked this a few weeks ago but didn't get a response, so at the risk of > > being a nag, I'll abbreviate and restate. > > > > I know there are other Xen specific debuggers, but I want to know if > there's > > any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be > > included in a dom0 pv-ops kernel? > > Upstream is integrating one that I think is in 2.6.33 > or 2.6.34. So when we rev up that we will get it for free. > Which upstream source is doing this integration? I'm not seeing any reference to it on http://kernelnewbies.org/Linux_2_6_33 or http://kernelnewbies.org/Linux_2_6_34 > > > > While the patches apply cleanly and build, the result is that one drops > into > > kdb on an oops the serial keyboard is non-functional. > > Is this a problem inherent in including an incompatible debugger, or > perhaps > > just something wrong in a .config? > > What is your serial setup? Virtual direct connect via iLO. > Are you using the serial console also for Xen? Yes > Is the serial console that Dom0 sees usuable outside kdb? Yes > As in, can you use a null modem connection and poke Dom0 via that? > Yep. The main connection to these boxes is the serial port. The kernel cmdline has "console=hvc0,115200n8" so I get boot output on it, I'm using "exec /sbin/getty -8 38400 hvc0" to get a login on the serial console, which works fine. The 3xCtrl-A also works. It's only KDB that doesn't like it. It appears kdb can output to the console but cannot read from it. These are the kdb patch files I used: (from http://oss.sgi.com/projects/kdb) -r--r--r-- 1 bedge wlvusers 199234 2010-06-22 11:22 kdb-v4.4-2.6.32-common-3.bz2 -r--r--r-- 1 bedge wlvusers 136442 2010-06-22 11:22 kdb-v4.4-2.6.32-x86-3.bz2 .config changes: CONFIG_KDB=y CONFIG_KDB_MODULES=y # CONFIG_KDB_OFF is not set CONFIG_KDB_CONTINUE_CATASTROPHIC=2 > > > > Does anyone else use this debugger for dom0 work ? > > I haven't used it. > Thanks for the info Konrad. -Bruce --001485f1dcd4511bda048a4212ea Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Wed, Jun 30, 2010 at 9:11 AM, Konrad Rzeszute= k Wilk <konr= ad.wilk@oracle.com> wrote:
On Tue, Jun 29, 2010 at 03:05:42PM -0700, Bruce Edge wrot= e:
> I asked this a few weeks ago but didn't get a response, so at the = risk of
> being a nag, I'll abbreviate and restate.
>
> I know there are other Xen specific debuggers, but I want to know if t= here's
> any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be > included in a dom0 pv-ops kernel?

Upstream is integrating one that I think is in 2.6.33
or 2.6.34. So when we rev up that we will get it for free.
=

Which upstream source is doing this integration? I'= m not seeing any reference to it on=A0



>
> While the patches apply cleanly and build, the result is that one drop= s into
> kdb on an oops the serial keyboard is non-functional.
> Is this a problem inherent in including an incompatible debugger, or p= erhaps
> just something wrong in a .config?

What is your serial setup?

Virtual d= irect connect via iLO.=A0
=A0
= Is the serial console that Dom0 sees usuable outside kdb?

Yes
=A0
As in,= =A0can you use a null modem connection and poke Dom0 via that?

Yep. The main connection to these boxes is the serial port. = The kernel cmdline has "console=3Dhvc0,115200n8" so I get boot ou= tput on it,=A0I'm using =A0"exec /sbin/getty -8 38400 hvc0" t= o get a login on the serial console, which works fine. The 3xCtrl-A also wo= rks.=A0
It's only KDB that doesn't like it. It appears kdb can output = to the console but cannot read from it.

These are = the kdb patch files I used: (from http://oss.sgi.com/projects/kdb)
=A0
-r--r--r-- 1 bedge wlvusers 199234 2010-06-22 11:22= kdb-v4.4-2.6.32-common-3.bz2
-r--r--r-- 1 bedge wlvusers 136442 = 2010-06-22 11:22 kdb-v4.4-2.6.32-x86-3.bz2

.config changes:

CONFIG_KDB=3Dy
CON= FIG_KDB_MODULES=3Dy
# CONFIG_KDB_OFF is not set
CONFIG_= KDB_CONTINUE_CATASTROPHIC=3D2



>
> Does anyone else use this debugger for dom0 work ?

I haven't used it.

Thanks for the info Konrad.

-Bruce
--001485f1dcd4511bda048a4212ea-- --===============1516719296== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1516719296==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Konrad Rzeszutek Wilk Subject: Re: Can I use SGI's kdb with a dom0 pv-ops kernel? Date: Wed, 30 Jun 2010 13:07:39 -0400 Message-ID: <20100630170739.GB15327@phenom.dumpdata.com> References: <20100630161133.GD5100@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bruce Edge Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Wed, Jun 30, 2010 at 09:44:46AM -0700, Bruce Edge wrote: > On Wed, Jun 30, 2010 at 9:11 AM, Konrad Rzeszutek Wilk < > konrad.wilk@oracle.com> wrote: > > > On Tue, Jun 29, 2010 at 03:05:42PM -0700, Bruce Edge wrote: > > > I asked this a few weeks ago but didn't get a response, so at the risk of > > > being a nag, I'll abbreviate and restate. > > > > > > I know there are other Xen specific debuggers, but I want to know if > > there's > > > any reason why SGI's kdb, http://oss.sgi.com/projects/kdb, should not be > > > included in a dom0 pv-ops kernel? > > > > Upstream is integrating one that I think is in 2.6.33 > > or 2.6.34. So when we rev up that we will get it for free. > > > > Which upstream source is doing this integration? I'm not seeing any > reference to it on > > http://kernelnewbies.org/Linux_2_6_33 or > http://kernelnewbies.org/Linux_2_6_34 I am getting them confused. Here is what I see: it dc7d552705215ac50a0617fcf51bb9c736255b8e Author: Jason Wessel Date: Thu Apr 17 20:05:37 2008 +0200 kgdb: core kgdb core code. Handles the protocol and the arch details. which looks to be in kernel/kgdb.c. You need to have CONFIG_KGDB enabled for it and some of the Linux command line paramters. That is not the SGI one but the other one. Is the KGDB not working (or you just are more comfortable with teh SGI one?) > > As in, can you use a null modem connection and poke Dom0 via that? > > > > Yep. The main connection to these boxes is the serial port. The kernel > cmdline has "console=hvc0,115200n8" so I get boot output on it, I'm using > "exec /sbin/getty -8 38400 hvc0" to get a login on the serial console, > which works fine. The 3xCtrl-A also works. I wonder if the problem you are hitting is that you are using the hvc0 driver. Not the real serial driver. Which means that the hvc0 driver isn't picking up any of your input b/c its workqueue has been effectivly terminated. One way to go around this is to not use the serial console for Xen and have the Dom0 use it exclusivly. Which means you would be doing 'console=ttyS0,38400'. At least that is the theory - I am not sure if Xen will allow you to do that. From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: Can I use SGI's kdb with a dom0 pv-ops kernel? Date: Thu, 01 Jul 2010 10:35:13 +0100 Message-ID: <4C2C7D710200007800009094@vpn.id2.novell.com> References: <20100630161133.GD5100@phenom.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Bruce Edge , Konrad Rzeszutek Wilk Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org >>> On 30.06.10 at 18:44, Bruce Edge wrote: >> Are you using the serial console also for Xen? >=20 >=20 > Yes That is your problem, I would assume, unless you taught kdb's serial driver to use the Xen specific replacement (i.e. not going directly to the hardware serial port). Jan=20