[Kgdb-bugreport] [PATCH 23/37] kgdb: Add the ability to schedule a breakpoint via a tasklet

2009-12-23 Thread Jason Wessel
not be safe to have an inline breakpoint. This is true of some of the kgdb I/O drivers which share code with kgdb and rest of the kernel users. Signed-off-by: Jason Wessel --- include/linux/kgdb.h |1 + kernel/debug/debug_core.c | 26 ++ 2 files changed, 27

[Kgdb-bugreport] [PATCH 21/37] powerpc, kgdb: Introduce low level trap catching

2009-12-23 Thread Jason Wessel
ption() is called with correct parameters when catching an oops, because kdb needs to know if the entry was an oops, single step, or breakpoint exception. CC: Benjamin Herrenschmidt CC: Paul Mackerras Signed-off-by: Jason Wessel --- arch/powerpc/kernel/kgdb.c |7 +-- arch/powerpc/kern

[Kgdb-bugreport] [PATCH 28/37] kdb, panic, debug_core: Allow the debug core to receive a panic before smp_send_stop()

2009-12-23 Thread Jason Wessel
It is highly desirable to trap into kdb on panic, and in order to do so the notifier must be called before smp_send_stop(), else the debug_core will not be able to correctly trap all the CPUs. CC: Ingo Molnar CC: Andrew Morton Signed-off-by: Jason Wessel --- include/linux/kdb.h |1

[Kgdb-bugreport] [PATCH 14/37] sh, sh-sci: Use NO_POLL_CHAR in the SCIF polled console code

2009-12-23 Thread Jason Wessel
The sci_poll_get_char() needs to return immediately if there is no input from the chip to process, and must return a value of NO_POLL_CHAR. This allows kgdboc to process multiple polled devices while kgdb is active. CC: Paul Mundt Signed-off-by: Jason Wessel --- drivers/serial/sh-sci.c |6

[Kgdb-bugreport] [PATCH 13/37] kgdb, 8250, pl011: Return immediately from console poll

2009-12-23 Thread Jason Wessel
been changed to make use of this. CC: linux-ser...@vger.kernel.org Signed-off-by: Jason Wessel --- drivers/serial/8250.c |4 ++-- drivers/serial/amba-pl011.c |6 +++--- include/linux/kdb.h |1 + include/linux/kgdb.h|3 +++ include/linux

[Kgdb-bugreport] [PATCH 07/37] kgdb, sparc: Add in kgdb_arch_set_pc for sparc

2009-12-23 Thread Jason Wessel
The new debug core api requires all architectures that use to debug core to implement a function to set the program counter. CC: "David S. Miller" Signed-off-by: Jason Wessel --- arch/sparc/kernel/kgdb_32.c |6 ++ arch/sparc/kernel/kgdb_64.c |6 ++ 2 files c

[Kgdb-bugreport] [PATCH 27/37] debug_core, kdb: Allow the debug core to process a recursive debug entry

2009-12-23 Thread Jason Wessel
This allows kdb to debug a crash with in the kms code with a single level recursive re-entry. Signed-off-by: Jason Wessel --- kernel/debug/debug_core.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index

[Kgdb-bugreport] [PATCH 26/37] keyboard, input: Add hook to input to allow low level event clear

2009-12-23 Thread Jason Wessel
: Jason Wessel --- drivers/char/keyboard.c | 30 +- drivers/input/input.c | 15 +++ drivers/serial/kgdboc.c |9 + include/linux/input.h | 10 ++ 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/drivers/char

[Kgdb-bugreport] [PATCH 20/37] arm, kgdb: Add hook to catch an oops with debugger

2009-12-23 Thread Jason Wessel
Add in a low level hook to catch calls to die() in the debugger. After the debugger is done, the standard system rules will be in play for the original exception. The kdb debugger wants a chance to catch these sorts of exceptions for analysis. CC: Russell King Signed-off-by: Jason Wessel

[Kgdb-bugreport] [PATCH 18/37] kgdb: remove post_primary_code references

2009-12-23 Thread Jason Wessel
ent for ks->ex_vector. Signed-off-by: Jason Wessel --- arch/x86/kernel/kgdb.c| 29 - include/linux/kgdb.h | 14 -- kernel/debug/debug_core.c |8 3 files changed, 0 insertions(+), 51 deletions(-) diff --git a/arch/x86/kernel/kgdb

[Kgdb-bugreport] [PATCH 04/37] Separate the gdbstub from the debug core

2009-12-23 Thread Jason Wessel
debug_core to any other debugger connections. CC: Ingo Molnar Signed-off-by: Jason Wessel --- kernel/debug/Makefile |2 +- kernel/debug/debug_core.c | 990 ++--- kernel/debug/debug_core.h | 49 +++ kernel/debug/gdbstub.c| 939

[Kgdb-bugreport] [PATCH 10/37] kgdb: Make mem access function weak in kgdb.c and kgdb.h

2009-12-23 Thread Jason Wessel
architecture specific kgdb.c. Update documentation and prototypes as well. Signed-off-by: Sonic Zhang Signed-off-by: Jason Wessel --- include/linux/kgdb.h | 42 -- kernel/debug/gdbstub.c |6 +++--- 2 files changed, 43 insertions(+), 5 deletions

[Kgdb-bugreport] [PATCH 22/37] mips, kgdb: kdb low level trap catch and stack trace

2009-12-23 Thread Jason Wessel
acer, so a special case was added to show_stack() for when kdb is active because you generally desire to generally look at the back trace of the original exception. CC: Ralf Baechle Signed-off-by: Jason Wessel --- arch/mips/include/asm/kgdb.h |2 ++ arch/mips/kernel/kgdb.c

[Kgdb-bugreport] [PATCH 32/37] kms, kdb: Force unblank a console device

2009-12-23 Thread Jason Wessel
Airlie CC: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/serial/kgdboc.c | 59 - drivers/video/console/fbcon.c |8 + 2 files changed, 60 insertions(+), 7 deletions(-) diff --git a/drivers/serial/kgdboc.c b/drivers/serial/kgdboc.c index

[Kgdb-bugreport] [PATCH 09/37] kgdb, blackfin: Add in kgdb_arch_set_pc for blackfin

2009-12-23 Thread Jason Wessel
The new debug core api requires all architectures that use to debug core to implement a function to set the program counter. CC: Mike Frysinger Signed-off-by: Jason Wessel --- arch/blackfin/kernel/kgdb.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/blackfin

[Kgdb-bugreport] [PATCH 25/37] printk, kdb: capture printk() when in kdb shell

2009-12-23 Thread Jason Wessel
Certain calls from the kdb shell will call out to printk(), and any of these calls should get vectored back to the kdb_printf() so that the kdb pager and processing can be used, as well as to properly channel I/O to the polled I/O devices. CC: Randy Dunlap CC: Andrew Morton Signed-off-by: Jason

[Kgdb-bugreport] [PATCH 11/37] kgdb: Fix kernel-doc format error in kgdb.h

2009-12-23 Thread Jason Wessel
From: Randy Dunlap linux-next-20081022//include/linux/kgdb.h:308): duplicate section name 'Description' and fix typos in that file's kernel-doc comments. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Jason Wessel --- include/linux/kgdb.h | 1

[Kgdb-bugreport] [PATCH 33/37] drm: add KGDB/KDB support Add support for KDB entry/exit.

2009-12-23 Thread Jason Wessel
From: Jesse Barnes --- drivers/gpu/drm/drm_fb_helper.c | 83 ++ drivers/gpu/drm/i915/intel_display.c | 93 ++ include/drm/drm_crtc_helper.h|2 + include/drm/drm_fb_helper.h |4 ++ 4 files changed, 182 i

[Kgdb-bugreport] [PATCH 35/37] drm_fb_helper: Preserve capability to use atomic kms

2009-12-23 Thread Jason Wessel
. CC: David Airlie CC: Jesse Barnes CC: Clemens Ladisch Signed-off-by: Jason Wessel --- drivers/gpu/drm/drm_fb_helper.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 80aab3c..b390fd8 100644 --- a

[Kgdb-bugreport] [PATCH 34/37] i915: when kgdb is active display compression should be off

2009-12-23 Thread Jason Wessel
: David Airlie Acked-by: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/gpu/drm/i915/intel_display.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e134a81..71816db 100644 --- a

[Kgdb-bugreport] [PATCH 37/37] kgdbts, sh: Add in breakpoint pc offset for superh

2009-12-23 Thread Jason Wessel
The kgdb test suite mimics the behavior of gdb. For the sh architecture the pc must be decremented by 2 for software breakpoint. CC: Paul Mundt Signed-off-by: Jason Wessel --- drivers/misc/kgdbts.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/misc

[Kgdb-bugreport] [PATCH 36/37] drm,i915 - atomic mutex hacks

2009-12-23 Thread Jason Wessel
Here are some hacks to work around mutex crashes in the drm / i915 code. For now, this is the only way to make the kms / kgdb path safe on an SMP system. CC: Jesse Barnes CC: David Airlie Signed-off-by: Jason Wessel --- drivers/gpu/drm/drm_fb_helper.c | 18 ++ drivers

Re: [Kgdb-bugreport] [PATCH 15/37] sparc, sunzilog: Add console polling support for sunzilog serial driver

2009-12-23 Thread Jason Wessel
David Miller wrote: > From: Jason Wessel > Date: Wed, 23 Dec 2009 15:19:28 -0600 > > >> +static void sunzilog_put_poll_char(struct uart_port *port, >> +unsigned char ch) >> +{ >> +struct uart_sunzilog_port *up

Re: [Kgdb-bugreport] [PATCH 07/37] kgdb, sparc: Add in kgdb_arch_set_pc for sparc

2009-12-23 Thread Jason Wessel
David Miller wrote: > From: Jason Wessel > Date: Wed, 23 Dec 2009 15:19:20 -0600 > > >> +void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip) >> +{ >> + regs->pc = regs->npc; >> + regs->npc = ip; >> +} >> + >&

Re: [Kgdb-bugreport] [PATCH 0/37] kgdb, kdb and atomic kernel modesetting series

2009-12-23 Thread Jason Wessel
Greg KH wrote: > On Wed, Dec 23, 2009 at 03:19:13PM -0600, Jason Wessel wrote: > >> Back in May 2009 an initial kdb prototype was posted to lkml as an RFC >> to see if there was sufficient interest to merge kdb and kgdb together. >> >> There was enough interest t

Re: [Kgdb-bugreport] [PATCH 05/37] kdb: core for kgdb back end

2009-12-24 Thread Jason Wessel
Peter Zijlstra wrote: > On Wed, 2009-12-23 at 15:19 -0600, Jason Wessel wrote: > >> diff --git a/kernel/module.c b/kernel/module.c >> index e96b8ed..25f6a7b 100644 >> --- a/kernel/module.c >> +++ b/kernel/module.c >> @@ -79,6 +80,10 @@ EXPORT_TRACEPOINT_

[Kgdb-bugreport] test 3 of 3

2009-12-24 Thread Jason Wessel
123 -- This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join n

Re: [Kgdb-bugreport] [PATCH 05/37] kdb: core for kgdb back end

2009-12-28 Thread Jason Wessel
Peter Zijlstra wrote: > On Wed, 2009-12-23 at 15:19 -0600, Jason Wessel wrote: >> +kdb_prio(char *name, struct rt_prio_array *array, kdb_printf_t xxx_printf, [..] >> +kdb_runqueue(unsigned long cpu, kdb_printf_t xxx_printf) [..] > > So what is this code supposed to do? It

Re: [Kgdb-bugreport] [PATCH 05/37] kdb: core for kgdb back end

2009-12-28 Thread Jason Wessel
Peter Zijlstra wrote: > On Mon, 2009-12-28 at 10:33 -0600, Jason Wessel wrote: >> The reason we need the attached patch is to be able to call >> curr_task() for kdb to perform some basic per cpu task analysis while >> the system is stopped. > > Right, so this set_cur

Re: [Kgdb-bugreport] [PATCH 05/37] kdb: core for kgdb back end

2009-12-28 Thread Jason Wessel
Andi Kleen wrote: > Jason Wessel writes: > > I remember going with kaos through all the code > outside kdb/ in his own patch and for nearly all hooks > outside we found some way to eliminate them. > > I think a lot of this is here too. If this has been solved before so

Re: [Kgdb-bugreport] linux-next: Tree for December 31 (kgdb)

2010-01-01 Thread Jason Wessel
Tony Luck wrote: > The kgdb bits break ia64 (and any other architecture without an > too): > > Certainly this was not intended. It is properly fixed now in and folded into a number of the kgdb patches so everything will properly bisect. It is updated in kgdb-next. Thanks, Jason. -

Re: [Kgdb-bugreport] linux-next: Tree for December 31 (kgdb)

2010-01-01 Thread Jason Wessel
Randy Dunlap wrote: > On Thu, 31 Dec 2009 11:23:14 +1100 Stephen Rothwell wrote: > > >> Hi all, >> >> This one has also not had the build testing *between* merges, but has had >> all the normal build testing at the end.There may be more unbisectable >> points in the tree then usual. >> >> Change

Re: [Kgdb-bugreport] Help Needed: kgdb not work

2010-01-05 Thread Jason Wessel
jidong xiao wrote: > Hi, > > I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my > kernel, I found no kgdb code had been executed, as I understand, the > kernel should stay at some point and wait for response from another > machine, but the truth is it fully booted up just like kgd

Re: [Kgdb-bugreport] Help Needed: kgdb not work

2010-01-06 Thread Jason Wessel
jidong xiao wrote: > On Tue, Jan 5, 2010 at 8:39 PM, Jason Wessel > wrote: > >> jidong xiao wrote: >> >>> Hi, >>> >>> I compiled kernel 2.6.31.3-5 with kgdb enabled, but when I booted my >>> kernel, I found no kgdb code had been

Re: [Kgdb-bugreport] Help Needed: kgdb not work

2010-01-06 Thread Jason Wessel
Derek Atkins wrote: > Jason, > > Jason Wessel writes: > > >> Unless you patch in the kgdb8250 driver, you cannot use it. If you >> build the kernel documentation you would get a directory called >> Documentation/DocBook/kgdb. In there you would find informat

Re: [Kgdb-bugreport] [PATCH 09/37] kgdb, blackfin: Add in kgdb_arch_set_pc for blackfin

2010-01-06 Thread Jason Wessel
Sonic Zhang wrote: > I have to recall my last wrong patch. > > In blackfin, kgdb is running in delayed exception IRQ5 other than in > exception IRQ3 directly. Register reti other than retx in pt_regs is > the kgdb return address. So, don't put PC in gdb_regs into retx. > > Sonic Zhang > > Index: a

Re: [Kgdb-bugreport] [PATCH 09/37] kgdb, blackfin: Add in kgdb_arch_set_pc for blackfin

2010-01-06 Thread Jason Wessel
Mike Frysinger wrote: > On Wed, Jan 6, 2010 at 14:43, Jason Wessel wrote: > >> I pulled in this patch, and made the changes the Mike talked about with >> respect to cleaning up the arch specific kgdb.c for blackfin. See the >> attached patch. >> >> Your patc

Re: [Kgdb-bugreport] [PATCH 09/37] kgdb, blackfin: Add in kgdb_arch_set_pc for blackfin

2010-01-06 Thread Jason Wessel
Mike Frysinger wrote: > On Wed, Jan 6, 2010 at 15:34, Jason Wessel wrote: > >> Mike Frysinger wrote: >> >>> also, i see you added "notrace" to the Blackfin probe_kernel_write ... >>> was that intentional ? if so, this should probab

[Kgdb-bugreport] [GIT PULL] blackfin kgdb fixes for 2.6.33-rc3

2010-01-07 Thread Jason Wessel
27; of git://git.kernel.org/.../airlied/drm-2.6 are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_linus Jason Wessel (2): maccess,probe_kernel: Allow arch specific override probe_kernel_(read|write) blackfin,kgdb,pr

[Kgdb-bugreport] [PATCH 3/4] blackfin, kgdb: Do not put PC in gdb_regs into retx.

2010-01-07 Thread Jason Wessel
From: Sonic Zhang In blackfin, kgdb is running in delayed exception IRQ5 other than in exception IRQ3 directly. Register reti other than retx in pt_regs is the kgdb return address. So, don't put PC in gdb_regs into retx. CC: Mike Frysinger Signed-off-by: Sonic Zhang Signed-off-by:

[Kgdb-bugreport] [PATCH 2/4] blackfin, kgdb, probe_kernel: Cleanup probe_kernel_read/write

2010-01-07 Thread Jason Wessel
the same thing after resolving the probe_kernel_read() and probe_kernel_write(). This also eliminated the need for most of the #include's. CC: Sonic Zhang Signed-off-by: Jason Wessel Signed-off-by: Mike Frysinger --- arch/blackfin/kernel/kgdb.c |

[Kgdb-bugreport] [PATCH 1/4] maccess, probe_kernel: Allow arch specific override probe_kernel_(read|write)

2010-01-07 Thread Jason Wessel
Some archs such as blackfin, would like to have an arch specific probe_kernel_read() and probe_kernel_write() implementation which can fall back to the generic implementation if no special operations are needed. CC: Thomas Gleixner CC: Ingo Molnar Signed-off-by: Jason Wessel Signed-off-by

[Kgdb-bugreport] [PATCH 4/4] kgdb: Fix kernel-doc format error in kgdb.h

2010-01-07 Thread Jason Wessel
From: Randy Dunlap linux-next-20081022//include/linux/kgdb.h:308): duplicate section name 'Description' and fix typos in that file's kernel-doc comments. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton Signed-off-by: Jason Wessel --- include/linux/kgdb.h |7 +

Re: [Kgdb-bugreport] Help Needed: kgdb not work

2010-01-08 Thread Jason Wessel
Derek Atkins wrote: > Jason, > > Jason Wessel writes: > > >> Long story short: >> * The functionality you asked about is not in the mainline >> * There are patches in the kgdb dev tree for this >> > > * nods * > > I'm happy to

[Kgdb-bugreport] [PATCH 02/40] x86, hw_breakpoint, kgdb: kgdb to use hw_breakpoint API

2010-01-14 Thread Jason Wessel
for the available hw breakpoint slots. Signed-off-by: Jason Wessel --- arch/x86/kernel/hw_breakpoint.c |5 +- arch/x86/kernel/kgdb.c | 191 +++ kernel/kgdb.c |3 + 3 files changed, 139 insertions(+), 60 deletions(-) diff

[Kgdb-bugreport] [PATCH 0/40] kgdb, kdb and atomic kernel modesetting series

2010-01-14 Thread Jason Wessel
http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=shortlog;h=kdb_prototype11 or grab a static version of the patches here: http://kernel.org/pub/linux/kernel/people/jwessel/branches/kdb_prototype11.tar.bz2 --- Jason Wessel (38): softlockup: add sched_clock_tick

[Kgdb-bugreport] [PATCH 04/40] Separate the gdbstub from the debug core

2010-01-14 Thread Jason Wessel
debug_core to any other debugger connections. CC: Ingo Molnar Signed-off-by: Jason Wessel --- kernel/debug/Makefile |2 +- kernel/debug/debug_core.c | 992 ++--- kernel/debug/debug_core.h | 49 +++ kernel/debug/gdbstub.c| 939

[Kgdb-bugreport] [PATCH 05/40] kgdb: eliminate kgdb_wait(), all cpus enter the same way

2010-01-14 Thread Jason Wessel
resuming the system in order to inspect arch specific cpu information. Signed-off-by: Jason Wessel --- kernel/debug/debug_core.c | 158 +--- kernel/debug/debug_core.h |7 ++ 2 files changed, 82 insertions(+), 83 deletions(-) diff --git a/kernel/debug

[Kgdb-bugreport] [PATCH 08/40] kgdb, blackfin: Add in kgdb_arch_set_pc for blackfin

2010-01-14 Thread Jason Wessel
The new debug core api requires all architectures that use to debug core to implement a function to set the program counter. CC: Mike Frysinger Signed-off-by: Jason Wessel Acked-by: Sonic Zhang --- arch/blackfin/kernel/kgdb.c |5 + 1 files changed, 5 insertions(+), 0 deletions

[Kgdb-bugreport] [PATCH 06/40] kgdb, sparc: Add in kgdb_arch_set_pc for sparc

2010-01-14 Thread Jason Wessel
The new debug core api requires all architectures that use to debug core to implement a function to set the program counter. Signed-off-by: Jason Wessel Acked-by: David S. Miller --- arch/sparc/kernel/kgdb_32.c |6 ++ arch/sparc/kernel/kgdb_64.c |6 ++ 2 files changed, 12

[Kgdb-bugreport] [PATCH 11/40] kgdb: core changes to support kdb

2010-01-14 Thread Jason Wessel
ial queries that kdb is responsible for detecting are the "?" and "qSupported" packets. CC: Ingo Molnar Signed-off-by: Jason Wessel --- arch/arm/kernel/kgdb.c |5 ++ arch/mips/kernel/kgdb.c|5 ++ arch/powerpc/kernel/kgdb.c |5 ++ arch/x86/kernel/kgdb.c |

[Kgdb-bugreport] [PATCH 07/40] kgdb, sh: update superh kgdb exception handling

2010-01-14 Thread Jason Wessel
distinguish between a single step trap and a breakpoint trap generically. Signed-off-by: Jason Wessel Acked-by: Paul Mundt --- arch/sh/kernel/kgdb.c | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/arch/sh/kernel/kgdb.c b/arch/sh/kernel/kgdb.c index 3e532d0

[Kgdb-bugreport] [PATCH 10/40] kdb: core for kgdb back end (2 of 2)

2010-01-14 Thread Jason Wessel
This patch contains the hooks and instrumentation into kernel which live outside the kernel/debug directory, which the kdb core will call to run commands like lsmod, dmesg, bt etc... CC: m...@sgi.com CC: linux-a...@vger.kernel.org Signed-off-by: Jason Wessel --- arch/arm/include/asm

[Kgdb-bugreport] [PATCH 15/40] kgdb: gdb "monitor" -> kdb passthrough

2010-01-14 Thread Jason Wessel
estrictions on what you can and cannot access at this point. Doing something like trying to set breakpoints with the monitor command is going to cause nothing but problems. Perhaps in the future only the commands that are actually known to work with the gdb monitor command will be available. S

[Kgdb-bugreport] [PATCH 14/40] sparc, sunzilog: Add console polling support for sunzilog serial driver

2010-01-14 Thread Jason Wessel
Allow kgdboc to work on sparc hardware with the Zilog serial chips. Signed-off-by: Jason Wessel Acked-by: David S. Miller --- drivers/serial/sunzilog.c | 50 + 1 files changed, 50 insertions(+), 0 deletions(-) diff --git a/drivers/serial

[Kgdb-bugreport] [PATCH 12/40] kgdb, 8250, pl011: Return immediately from console poll

2010-01-14 Thread Jason Wessel
been changed to make use of this. CC: linux-ser...@vger.kernel.org Signed-off-by: Jason Wessel --- drivers/serial/8250.c |4 ++-- drivers/serial/amba-pl011.c |6 +++--- include/linux/kdb.h |1 + include/linux/serial_core.h |1 + kernel/debug/debug_core.c

[Kgdb-bugreport] [PATCH 16/40] kgdboc, keyboard: Keyboard driver for kdb with kgdb

2010-01-14 Thread Jason Wessel
also configure kgdboc as a kernel module or at run time with the sysfs where you can activate and deactivate kgdb. Turn it on: echo kbd,ttyS0 > /sys/module/kgdboc/parameters/kgdboc Turn it off: echo "" > /sys/module/kgdboc/parameters/kgdboc CC: Dmitry Torokhov Sign

[Kgdb-bugreport] [PATCH 19/40] x86,kgdb: Add low level debug hook

2010-01-14 Thread Jason Wessel
d, but for those who need it, it is added as a kernel .config option called KGDB_LOW_LEVEL_TRAP. CC: Ingo Molnar Signed-off-by: Jason Wessel --- arch/x86/include/asm/kgdb.h |3 +++ arch/x86/kernel/kgdb.c | 22 +- arch/x86/kernel/traps.c |6 ++ include/li

[Kgdb-bugreport] [PATCH 13/40] sh, sh-sci: Use NO_POLL_CHAR in the SCIF polled console code

2010-01-14 Thread Jason Wessel
The sci_poll_get_char() needs to return immediately if there is no input from the chip to process, and must return a value of NO_POLL_CHAR. This allows kgdboc to process multiple polled devices while kgdb is active. Signed-off-by: Jason Wessel Acked-by: Paul Mundt --- drivers/serial/sh-sci.c

[Kgdb-bugreport] [PATCH 21/40] powerpc, kgdb: Introduce low level trap catching

2010-01-14 Thread Jason Wessel
ption() is called with correct parameters when catching an oops, because kdb needs to know if the entry was an oops, single step, or breakpoint exception. CC: Benjamin Herrenschmidt CC: Paul Mackerras Signed-off-by: Jason Wessel --- arch/powerpc/kernel/kgdb.c |7 +-- arch/powerpc/kern

[Kgdb-bugreport] [PATCH 17/40] kgdb, docs: Update the kgdb docs to include kdb

2010-01-14 Thread Jason Wessel
Update the kgdb docs to reflect the new directory structure and API. Merge in the kdb shell information. Signed-off-by: Jason Wessel --- Documentation/DocBook/kgdb.tmpl | 638 ++- Documentation/kernel-parameters.txt |7 +- include/linux/kgdb.h

[Kgdb-bugreport] [PATCH 23/40] kgdb: Add the ability to schedule a breakpoint via a tasklet

2010-01-14 Thread Jason Wessel
not be safe to have an inline breakpoint. This is true of some of the kgdb I/O drivers which share code with kgdb and rest of the kernel users. Signed-off-by: Jason Wessel --- include/linux/kgdb.h |1 + kernel/debug/debug_core.c | 26 ++ 2 files changed, 27

[Kgdb-bugreport] [PATCH 24/40] kgdboc, kdb: Allow kdb to work on a non open console port

2010-01-14 Thread Jason Wessel
If kdb is open on a serial port that is not actually a console make sure to call the poll routines to emit and receive characters. Signed-off-by: Jason Wessel --- drivers/serial/kgdboc.c | 14 ++ include/linux/kgdb.h |3 +++ kernel/debug/kdb/kdb_io.c | 16

[Kgdb-bugreport] [PATCH 18/40] kgdb: remove post_primary_code references

2010-01-14 Thread Jason Wessel
ent for ks->ex_vector. Signed-off-by: Jason Wessel --- arch/x86/kernel/kgdb.c| 29 - include/linux/kgdb.h | 14 -- kernel/debug/debug_core.c |8 3 files changed, 0 insertions(+), 51 deletions(-) diff --git a/arch/x86/kernel/kgdb

[Kgdb-bugreport] [PATCH 22/40] mips, kgdb: kdb low level trap catch and stack trace

2010-01-14 Thread Jason Wessel
acer, so a special case was added to show_stack() for when kdb is active because you generally desire to generally look at the back trace of the original exception. CC: Ralf Baechle Signed-off-by: Jason Wessel --- arch/mips/include/asm/kgdb.h |2 ++ arch/mips/kernel/kgdb.c

[Kgdb-bugreport] [PATCH 26/40] keyboard, input: Add hook to input to allow low level event clear

2010-01-14 Thread Jason Wessel
: Jason Wessel --- drivers/char/keyboard.c | 30 +- drivers/input/input.c | 15 +++ drivers/serial/kgdboc.c |9 + include/linux/input.h | 10 ++ 4 files changed, 59 insertions(+), 5 deletions(-) diff --git a/drivers/char

[Kgdb-bugreport] [PATCH 25/40] printk, kdb: capture printk() when in kdb shell

2010-01-14 Thread Jason Wessel
Certain calls from the kdb shell will call out to printk(), and any of these calls should get vectored back to the kdb_printf() so that the kdb pager and processing can be used, as well as to properly channel I/O to the polled I/O devices. CC: Randy Dunlap CC: Andrew Morton Signed-off-by: Jason

[Kgdb-bugreport] [PATCH 20/40] arm, kgdb: Add hook to catch an oops with debugger

2010-01-14 Thread Jason Wessel
Add in a low level hook to catch calls to die() in the debugger. After the debugger is done, the standard system rules will be in play for the original exception. The kdb debugger wants a chance to catch these sorts of exceptions for analysis. CC: Russell King Signed-off-by: Jason Wessel

[Kgdb-bugreport] [PATCH 27/40] debug_core, kdb: Allow the debug core to process a recursive debug entry

2010-01-14 Thread Jason Wessel
This allows kdb to debug a crash with in the kms code with a single level recursive re-entry. Signed-off-by: Jason Wessel --- kernel/debug/debug_core.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/kernel/debug/debug_core.c b/kernel/debug/debug_core.c index

[Kgdb-bugreport] [PATCH 29/40] MAINTAINERS: update kgdb, kdb, and debug_core info

2010-01-14 Thread Jason Wessel
Update the maintained files sections. Signed-off-by: Jason Wessel --- MAINTAINERS |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index c8f47bf..88f4741 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3174,15 +3174,17 @@ S: Maintained

[Kgdb-bugreport] [PATCH 30/40] kgdboc, debug_core: Add call backs to allow kernel mode switching

2010-01-14 Thread Jason Wessel
Hooks for the kgdb core for registration of the drm layer to provide a call backs so as to perform kernel mode switching, for use with kdb. CC: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/serial/kgdboc.c | 15 +++ include/linux/kgdb.h | 10 ++ kernel

[Kgdb-bugreport] [PATCH 28/40] kdb, panic, debug_core: Allow the debug core to receive a panic before smp_send_stop()

2010-01-14 Thread Jason Wessel
It is highly desirable to trap into kdb on panic, and in order to do so the notifier must be called before smp_send_stop(), else the debug_core will not be able to correctly trap all the CPUs. CC: Ingo Molnar CC: Andrew Morton Signed-off-by: Jason Wessel --- include/linux/kdb.h |1

[Kgdb-bugreport] [PATCH 32/40] drm: add KGDB/KDB support Add support for KDB entry/exit.

2010-01-14 Thread Jason Wessel
From: Jesse Barnes --- drivers/gpu/drm/drm_fb_helper.c | 79 drivers/gpu/drm/i915/intel_display.c | 93 ++ include/drm/drm_crtc_helper.h|2 + include/drm/drm_fb_helper.h |4 ++ 4 files changed, 178 ins

[Kgdb-bugreport] [PATCH 31/40] kgdb: add ops arg to kgdb console active & restore hooks

2010-01-14 Thread Jason Wessel
From: Jesse Barnes This allows callers to store the ops structure in a parent device structure. Signed-off-by: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/serial/kgdboc.c |4 ++-- include/linux/kgdb.h| 17 ++--- 2 files changed, 16 insertions(+), 5 deletions

[Kgdb-bugreport] [PATCH 33/40] kms, kdb: Force unblank a console device

2010-01-14 Thread Jason Wessel
were added to allow kms code to declare debugger safe mutexes which can be used so long as the debugger restores the state before resuming. CC: David Airlie CC: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/serial/kgdboc.c | 26 drivers/video/console/fbcon.c

[Kgdb-bugreport] [PATCH 34/40] i915: when kgdb is active display compression should be off

2010-01-14 Thread Jason Wessel
: David Airlie Acked-by: Jesse Barnes Signed-off-by: Jason Wessel --- drivers/gpu/drm/i915/intel_display.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index d54df76..11beb0f 100644 --- a

[Kgdb-bugreport] [PATCH 36/40] drm,i915 - atomic mutex hacks

2010-01-14 Thread Jason Wessel
Here are some hacks to work around mutex crashes in the drm / i915 code. For now, this is the only way to make the kms / kgdb path safe on an SMP system. CC: Jesse Barnes CC: David Airlie Signed-off-by: Jason Wessel --- drivers/gpu/drm/drm_fb_helper.c | 12 ++-- drivers/gpu

[Kgdb-bugreport] [PATCH 35/40] drm_fb_helper: Preserve capability to use atomic kms

2010-01-14 Thread Jason Wessel
. CC: David Airlie CC: Jesse Barnes CC: Clemens Ladisch Signed-off-by: Jason Wessel --- drivers/gpu/drm/drm_fb_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index f65aa4d..1097a47 100644 --- a

[Kgdb-bugreport] [PATCH 38/40] kgdbts, sh: Add in breakpoint pc offset for superh

2010-01-14 Thread Jason Wessel
The kgdb test suite mimics the behavior of gdb. For the sh architecture the pc must be decremented by 2 for software breakpoint. Signed-off-by: Jason Wessel Acked-by: Paul Mundt --- drivers/misc/kgdbts.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers

[Kgdb-bugreport] [PATCH 37/40] kgdb, docs: Update the kgdb docs to include kms

2010-01-14 Thread Jason Wessel
Update the kgdb docs to include information about kernel mode setting support. Signed-off-by: Jason Wessel --- Documentation/DocBook/kgdb.tmpl | 82 +++ Documentation/kernel-parameters.txt |9 +++- 2 files changed, 79 insertions(+), 12 deletions

[Kgdb-bugreport] [PATCH 40/40] ftrace, kdb: Extend kdb to be able to dump the ftrace buffer

2010-01-14 Thread Jason Wessel
Add in a helper function to allow the kdb shell to dump the ftrace buffer. CC: Steven Rostedt Signed-off-by: Jason Wessel --- Documentation/DocBook/kgdb.tmpl |3 +- kernel/trace/Makefile |3 + kernel/trace/trace.c| 48 +++- kernel/trace/trace.h

[Kgdb-bugreport] [PATCH 01/40] softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume

2010-01-14 Thread Jason Wessel
function uses the GTOD tick value to create a window to normalize the "now" values. So if "now" values is too big for sched_clock_data, it will be ignored. The fix is to invoke sched_clock_tick() to update "cpu sched clock" in order to recover from this state. This i

[Kgdb-bugreport] [PATCH 39/40] debug_core: Turn off tracing while in the debugger

2010-01-14 Thread Jason Wessel
The kernel debugger should turn off kernel tracing any time the debugger is active and restore it on resume. CC: Steven Rostedt Signed-off-by: Jason Wessel --- kernel/debug/debug_core.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/kernel/debug/debug_core.c b

Re: [Kgdb-bugreport] [PATCH 20/40] arm, kgdb: Add hook to catch an oops with debugger

2010-01-14 Thread Jason Wessel
Russell King - ARM Linux wrote: > On Thu, Jan 14, 2010 at 08:59:16AM -0600, Jason Wessel wrote: > >> Add in a low level hook to catch calls to die() in the debugger. >> >> After the debugger is done, the standard system rules will be in play >> for the original exc

Re: [Kgdb-bugreport] [PATCH 20/40] arm, kgdb: Add hook to catch an oops with debugger

2010-01-14 Thread Jason Wessel
Russell King - ARM Linux wrote: > > I have a similar patch which implements the hook properly - but > with one caveat. It needs a review to ensure that its safe to return > from die(). Until that's established, this patch can not be merged. > I completed the analysis on your patch and yes, it

Re: [Kgdb-bugreport] [PATCH 22/40] mips, kgdb: kdb low level trap catch and stack trace

2010-01-14 Thread Jason Wessel
David Daney wrote: > [...] > >> +#include "../../../kernel/debug/kdb/kdb_private.h" >> >> > > There must be a better way of referring to this include file. Perhaps > it should be moved to a more central place that is already in the > include path so we can refer to it with #include <..

Re: [Kgdb-bugreport] [PATCH 40/40] ftrace, kdb: Extend kdb to be able to dump the ftrace buffer

2010-01-15 Thread Jason Wessel
Steven Rostedt wrote: > On Thu, 2010-01-14 at 08:59 -0600, Jason Wessel wrote: > >> Add in a helper function to allow the kdb shell to dump the ftrace >> buffer. >> >> > > Acked-by: Steven Rostedt > > > If this is the final version, I could que

Re: [Kgdb-bugreport] [PATCH 39/40] debug_core: Turn off tracing while in the debugger

2010-01-15 Thread Jason Wessel
Steven Rostedt wrote: > On Thu, 2010-01-14 at 08:59 -0600, Jason Wessel wrote: > >> The kernel debugger should turn off kernel tracing any time the >> debugger is active and restore it on resume. >> >> CC: Steven Rostedt >> Signed-off-by: Jason Wessel

Re: [Kgdb-bugreport] [PATCH 20/40] arm, kgdb: Add hook to catch an oops with debugger

2010-01-18 Thread Jason Wessel
Russell King - ARM Linux wrote: > On Thu, Jan 14, 2010 at 02:29:54PM -0600, Jason Wessel wrote: > >> Russell King - ARM Linux wrote: >> >>> I have a similar patch which implements the hook properly - but >>> with one caveat. It needs a review to ensure

Re: [Kgdb-bugreport] [PATCH] kgdb: have ebin2mem call probe_kernel_write once

2010-01-19 Thread Jason Wessel
I don't think this patch works quite right. See below. Mike Frysinger wrote: > From: Sonic Zhang > > Rather than call probe_kernel_write() one byte at a time, process the > whole buffer locally and pass the entire result in one go. This way, > arches that need to do special handling based on th

Re: [Kgdb-bugreport] [PATCH 20/40] arm, kgdb: Add hook to catch an oops with debugger

2010-01-20 Thread Jason Wessel
Russell King - ARM Linux wrote: > On Mon, Jan 18, 2010 at 08:30:04AM -0600, Jason Wessel wrote: > >> That being said, you patch works for the purpose of catching the >> exception and returning with or without the addition of an earlier >> return before bust_spinlock

[Kgdb-bugreport] [GIT PULL] softlockup kgdb fix for tip for 2.6.34

2010-01-21 Thread Jason Wessel
24bc7347da73a9ed3383056c3d0f28c0e361621e: Linus Torvalds (1): Merge git://git.kernel.org/.../wim/linux-2.6-watchdog are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_ingo Jason Wessel (1): softlockup: add sched_clock_tick() to avoid

[Kgdb-bugreport] [PATCH 1/1] softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume

2010-01-21 Thread Jason Wessel
done by introducing the function touch_softlockup_watchdog_sync(). This allows kgdb to request that the sched clock is updated when the watchdog thread runs the first time after a resume from kgdb. [yong.zha...@gmail.com: Use per cpu instead of an array] Signed-off-by: Jason Wessel Signed-off-by: Do

[Kgdb-bugreport] [PATCH 0/4] kgdb regression fixes for 2.6.33

2010-01-25 Thread Jason Wessel
for_igno Thanks, Jason. --- The following changes since commit 92dcffb916d309aa01778bf8963a6932e4014d07: Linus Torvalds (1): Linux 2.6.33-rc5 are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_ingo Jason Wessel (4

[Kgdb-bugreport] [PATCH 2/4] perf, hw_breakpoint: add lockless reservation for hw_breaks

2010-01-25 Thread Jason Wessel
execution is paused. CC: Frederic Weisbecker CC: Ingo Molnar CC: K.Prasad CC: Peter Zijlstra CC: Alan Stern Signed-off-by: Jason Wessel --- arch/x86/kernel/kgdb.c | 12 +--- include/linux/perf_event.h |1 + kernel/hw_breakpoint.c | 16 3 files changed, 26

[Kgdb-bugreport] [PATCH 1/4] x86, hw_breakpoint, kgdb: kgdb to use hw_breakpoint API

2010-01-25 Thread Jason Wessel
for the available hw breakpoint slots. CC: Frederic Weisbecker CC: Ingo Molnar CC: K.Prasad CC: Peter Zijlstra CC: Alan Stern Signed-off-by: Jason Wessel --- arch/x86/kernel/hw_breakpoint.c |5 +- arch/x86/kernel/kgdb.c | 206 --- kernel

[Kgdb-bugreport] [PATCH 4/4] softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume

2010-01-25 Thread Jason Wessel
done by introducing the function touch_softlockup_watchdog_sync(). This allows kgdb to request that the sched clock is updated when the watchdog thread runs the first time after a resume from kgdb. [yong.zha...@gmail.com: Use per cpu instead of an array] Signed-off-by: Jason Wessel Signed-off-by: Do

[Kgdb-bugreport] [PATCH 3/4] kgdb, clocksource: Prevent kernel hang in kernel debugger

2010-01-25 Thread Jason Wessel
sufficiently rare vs having the kernel debugger hang the kernel CC: Thomas Gleixner CC: Martin Schwidefsky CC: John Stultz CC: Andrew Morton CC: Magnus Damm Signed-off-by: Jason Wessel --- kernel/time/clocksource.c |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git

Re: [Kgdb-bugreport] [PATCH 2/4] perf, hw_breakpoint: add lockless reservation for hw_breaks

2010-01-26 Thread Jason Wessel
Jason Wessel wrote: > The kernel debugger cannot take any locks at the risk of deadlocking [clip] The previous version of this patch was wrong for 2 reasons: 1) The reserve_slot_bp() can operate on a single cpu or all the cpus. The previous version of this patch only worked properly

[Kgdb-bugreport] [PATCH 0/3] V2 kgdb regression fixes for 2.6.33

2010-01-27 Thread Jason Wessel
the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git for_ingo Jason Wessel (3): softlockup: add sched_clock_tick() to avoid kernel warning on kgdb resume x86,hw_breakpoint,kgdb: kgdb to use hw_breakpoint API perf,hw_breakpoint,kgdb

<    1   2   3   4   5   6   7   8   9   >