Thread (12 messages) flat view 12 messages, 5 authors, 2018-10-30

Re: [PATCH 7/7] kgdb: Remove irq flags and local_irq_enable/disable from roundup

From: Doug Anderson <dianders@chromium.org>
Date: 2018-10-30 22:30:23
Also in: linux-arm-kernel, linux-arm-msm, linux-mips, linux-sh, lkml, sparclinux

Hi,

On Tue, Oct 30, 2018 at 4:46 AM Daniel Thompson
[off-list ref] wrote:
On Mon, Oct 29, 2018 at 11:07:07AM -0700, Douglas Anderson wrote:
quoted
The function kgdb_roundup_cpus() was passed a parameter that was
documented as:
quoted
the flags that will be used when restoring the interrupts. There is
local_irq_save() call before kgdb_roundup_cpus().
Nobody used those flags.  Anyone who wanted to temporarily turn on
interrupts just did local_irq_enable() and local_irq_disable() without
looking at them.  So we can definitely remove the flags.
On the whole I'd rather that this change...

quoted
Speaking of calling local_irq_enable(), it seems like a bad idea and
it caused a nice splat on my system with lockdep turned on.
Specifically it hit:
  DEBUG_LOCKS_WARN_ON(current->hardirq_context)
... and fixes for this this were in separate patches. They don't appear
especially related.
Agreed that this is cleaner.  Done for v2.

-Doug
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help