mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <peterz@infradead.org>
To: Steve Wahl <steve.wahl@hpe.com>
Cc: Dave Hansen <dave.hansen@intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	x86@kernel.org, tglx@kernel.org, mingo@redhat.com, bp@alien8.de,
	dave.hansen@linux.intel.com, justin.ernst@hpe.com,
	kyle.meyer@hpe.com, dimitri.sivanich@hpe.com,
	russ.anderson@hpe.com, linux-kernel@vger.kernel.org,
	mhiramat@kernel.org, Matt Mullins <mmullins@fb.com>
Subject: Re: [PATCH] x86: Drop KGDB support
Date: Thu, 29 Oct 2026 09:46:06 +0100	[thread overview]
Message-ID: <20261029084606.GE1779021@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <auJT1Ld3urbqaeA0@swahl-home.5wahls.com>

On Wed, Oct 28, 2026 at 02:58:12PM -0500, Steve Wahl wrote:
> On Wed, Oct 28, 2026 at 08:10:54AM -0700, Dave Hansen wrote:
> > On 10/28/26 07:26, Peter Zijlstra wrote:
> > ...
> > > Also, when was the last time you used KGDB? I think I've tried it once,
> > > some 20 years ago, and haven't bothered since -- it was *that* good 🙂
> > 
> > I can't remember the last time I used it. I also grepped through all of
> > my stashed-away kernel configs I've been using for the past 15 or so
> > years. The only place I even see it configured in is in distro-derived
> > configs. None of my trimmed down debug configs.
> > 
> > There seems to be approximately one clear commit that shows anyone using
> > the x86 kgdb.c in the last decade:
> > 
> > 	commit 71ab8323cc357c68985a2d6fc6cfc22b1dbbc1c3
> > 	Author: Matt Mullins <mmullins@fb.com>
> > 	Date:   Fri May 31 12:47:54 2019 -0700
> > 
> > 	    x86/kgdb: Return 0 from kgdb_arch_set_breakpoint()
> > 
> > The only question for me at this point would be whether we should just
> > config it out for a couple of releases rather than removing it outright.
> 
> I have never used kgdb, but kdb is a different story.  I originally
> reacted quite poorly to this patch, assuming from what was changed
> in uv_nmi.c that both kgdb and kdb were being removed.
> 
> I would like to see the kdb action remain in uv_nmi.c, even when
> removing kgdb.  Is there a good reason why both were removed?

kdb is just a local wrapper around the kgdb gunk. If we kept that, we'd
still have all of kgdb.

> There have been a number of times over the past few years, on large
> cpu count systems that aren't easy to configure for VM usage, where
> I have a problem that wedges the system or leaves it unresponsive,
> and I enable kdb, reproduce the problem, enter kdb via uv_nmi, just
> to dump the stack of all processors and find out what they are
> doing, and check other things that I can get to with kdb.

So this uv_nmi thing looks a lot like sysrq; you could wire up one of
them things to use lib/nmi_backtrace.c to dump stacks for all CPUs, no?

  reply	other threads:[~2026-10-29  8:46 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-28 12:21 Peter Zijlstra
2026-10-28 14:15 ` H. Peter Anvin
2026-10-28 14:26   ` Peter Zijlstra
2026-10-28 15:10     ` Dave Hansen
2026-10-28 19:58       ` Steve Wahl
2026-10-29  8:46         ` Peter Zijlstra [this message]
2026-10-29 10:34           ` David Laight
2026-10-30  2:00             ` Masami Hiramatsu (Google)
2026-10-29 10:51         ` David Laight
2026-10-29 15:32           ` Steve Wahl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261029084606.GE1779021@noisy.programming.kicks-ass.net \
    --to=peterz@infradead.org \
    --cc=bp@alien8.de \
    --cc=dave.hansen@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=dimitri.sivanich@hpe.com \
    --cc=hpa@zytor.com \
    --cc=justin.ernst@hpe.com \
    --cc=kyle.meyer@hpe.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mhiramat@kernel.org \
    --cc=mingo@redhat.com \
    --cc=mmullins@fb.com \
    --cc=russ.anderson@hpe.com \
    --cc=steve.wahl@hpe.com \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®