* Re: Debugging Thinkpad T430s occasional suspend failure.
[not found] ` <CAFTL4hxaOKvNSWkHgw80Cp1JTNEGXREWHtyQJEzeNgUZHMyTyQ@mail.gmail.com>
@ 2013-02-19 10:44 ` Thomas Gleixner
0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2013-02-19 10:44 UTC (permalink / raw)
To: Frederic Weisbecker
Cc: Linus Torvalds, Paul McKenney, Ingo Molnar, Peter Zijlstra,
Dave Jones, Hugh Dickins, Linux Kernel Mailing List,
Paul McKenney, linux-arch
CC'ing linux-arch, so the arch folks can scream murder if they have
any objections.
On Tue, 19 Feb 2013, Frederic Weisbecker wrote:
> 2013/2/18 Thomas Gleixner <tglx@linutronix.de>:
> > On Mon, 18 Feb 2013, Frederic Weisbecker wrote:
> >> diff --git a/kernel/softirq.c b/kernel/softirq.c
> >> index ed567ba..69fbefd 100644
> >> --- a/kernel/softirq.c
> >> +++ b/kernel/softirq.c
> >> @@ -277,6 +277,17 @@ restart:
> >> tsk_restore_flags(current, old_flags, PF_MEMALLOC);
> >> }
> >>
> >> +#ifndef __ARCH_IRQ_EXIT_IRQS_DISABLED
> >
> > We really should get rid of that and make irqs disabled on irq exit
> > mandatory.
>
> Until now I even thought that having irqs disabled in irq_exit() was
> mandatory. I need to have a second look at tick_nohz_irq_exit() as I
> modified it with this requirement in mind...
Duh.
> Also with this patch, if a nesting interrupt happens right after
> tick_nohz_irq_exit(), this new irq will call tick_nohz_stop_idle() but
> not tick_nohz_start_idle() on the end. Leaving that unbalanced. I
> could work that around but I don't want to spaghettize further around
> that ifdef.
>
> So this patch actually does depend on __ARCH_IRQ_EXIT_IRQS_DISABLED. I
> need to convert all archs to force this first. Then think about the
> softirq.c cleanup once its done.
>
> I wonder what's the right path to this, may be loop over archs until
> they all have __ARCH_IRQ_EXIT_IRQS_DISABLED, then remove that? Sounds
> like non-sense but the safest way at the same time.
Yeah.
> >> static inline void invoke_softirq(void)
> >> {
> >> - if (!force_irqthreads) {
> >> + /* Can we run softirq's at all? We migth be nesting interrupts */
> >> + if (in_nesting_interrupt())
> >> + return;
> >
> > We might also be in a softirq disabled region where it makes no sense
> > to continue. So this should be
> >
> > in_nesting_interrupt() || in_softirq()
>
> in_nesting_interrupt() takes care of that as well.
Gah, misread the macro maze :(
Thanks,
tglx
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-02-19 10:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20130213193411.GA15928@redhat.com>
[not found] ` <CA+55aFzmEDriX26Z7oJZg9yssFdCAaYwu6krmrwqfj2TBsxA4w@mail.gmail.com>
[not found] ` <20130215011503.GA11914@redhat.com>
[not found] ` <CA+55aFyVE0jyu9uw659ERw5E2DdOhwkQp3gk=gcXP0xrmMh9qA@mail.gmail.com>
[not found] ` <20130215174435.GA2792@linux.vnet.ibm.com>
[not found] ` <CA+55aFy8FeGMOnWwkfmyFYyVCw+k1LSVg7BG0tsTNZzqi5EKYg@mail.gmail.com>
[not found] ` <CAFTL4hyTfwAZWz=gMokk5oG3HO8iGh7=FtoNv89CMg_Lm-TPNg@mail.gmail.com>
[not found] ` <CA+55aFz4vO-JGv+A7h=uxwfyWEMcK=Q3gntwHfr=a4OUVs-f+g@mail.gmail.com>
[not found] ` <CAFTL4hx7iX8vZFu7pO5wLSPpEzfMD8K7n0bUsY-wK-uCsDAsEw@mail.gmail.com>
[not found] ` <CAFTL4hzUy+2qDaCDK3jCUs+6Fe48-uU9KSB+Ssk+-i=zYhqaRg@mail.gmail.com>
[not found] ` <20130218155324.GA5816@somewhere.redhat.com>
[not found] ` <alpine.LFD.2.02.1302182055040.22263@ionos>
[not found] ` <CAFTL4hxaOKvNSWkHgw80Cp1JTNEGXREWHtyQJEzeNgUZHMyTyQ@mail.gmail.com>
2013-02-19 10:44 ` Debugging Thinkpad T430s occasional suspend failure Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).