Re: [PATCH 0/2] [RFC] RT: Optionally allow IRQF_NODELAY on serial console



On Fri, 5 Oct 2007, Gregory Haskins wrote:
This series may help debugging certain circumstances where the serial
console is unreponsive (e.g. RT51+ spinner, or scheduler problem). It changes
the serial8250 driver to use IRQF_NODELAY so that interrupts execute in irq
context instead of a kthread.

It works pretty well on this end, though it is admitted not fully baked. For
instance, a few paths in sysrq can still call into non-raw spinlocks
(sched_debug_show, for instance) which will cause subsequent errors. Also,
if you use KDB, be sure to convert the kdb_printf_lock to raw as well. I may
send a KDB related patch seperately.

I am sending this out now in case it is helpful to someone.

The simple non-patch solution is to up the priority of the serial
console irq to maximum. That's usually sufficient to catch runnaway tasks
etc. It does not interfere with the system in normal operation as long as
you do not hit keys in your minicom.

I doubt that your patch has a chance to survive lockdep and anything which
is not a sysrq.

tglx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH 1/2 v4] sysrq: showBlockedTasks is sysrq-W
    ... sysrq op/key table. ... 'm' - Will dump current memory info to your console. ... this will register the operation pointed to by 'op_p' at table ... to never ever leave an invalid pointer in the table). ...
    (Linux-Kernel)
  • [PATCH 1/2 v3] sysrq: showBlockedTasks is sysrq-W
    ... SysRq showBlockedTasks is not done via B or T, it's done via W, ... 'm' - Will dump current memory info to your console. ... this will register the operation pointed to by 'op_p' at table ... to never ever leave an invalid pointer in the table). ...
    (Linux-Kernel)

  • ... Subject: IP22ZILOG: fix lockup and sysrq ... fix lockup when switching from early console to real console ... flag = TTY_NORMAL; ...
    (Linux-Kernel)
  • Re: [PATCH 0/2] [RFC] RT: Optionally allow IRQF_NODELAY on serial console
    ... console is unreponsive (e.g. RT51+ spinner, or scheduler problem). ... console irq to maximum. ... is not a sysrq. ...
    (Linux-Kernel)