login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
25
Re: [git pull] scheduler/misc fixes
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Peter Zijlstra
Subject:
Re: [git pull] scheduler/misc fixes
Date: Friday, April 25, 2008 - 1:13 am
On Fri, 2008-04-25 at 00:57 -0700, David Miller wrote:
quoted text
> From: Peter Zijlstra <a.p.zijlstra@chello.nl> > Date: Fri, 25 Apr 2008 09:48:30 +0200 > > > c) there are 'IPI' handlers on SPARC64 that look like they can wake > > the CPU from idle sleep but do not appear to call irq_enter() which > > has the above patch's touch_softlock_watchdog() in its callchain. > > > > tl0_irq1: TRAP_IRQ(smp_call_function_client, 1) > > tl0_irq2: TRAP_IRQ(smp_receive_signal_client, 2) > > tl0_irq3: TRAP_IRQ(smp_penguin_jailcell, 3) > > tl0_irq4: TRAP_IRQ(smp_new_mmu_context_version_client, 4) > > > > > > > > So the current working thesis is that the bug in a) hides a real problem > > not quite fixed by b) and exploited by c). > > The equivalent to smp_receive_signal_client() on x86 > (smp_reschedule_interrupt) doesn't do an irq_enter() either. > > However x86 does do an irq_enter() for smp_call_function() interrupt > handling. > > What is the rule in these cases? > > Anyways, does the following patch fix the problem?
Sadly, no :-(
quoted text
> diff --git a/arch/sparc64/kernel/smp.c b/arch/sparc64/kernel/smp.c > index 524b889..bf4ef84 100644 > --- a/arch/sparc64/kernel/smp.c > +++ b/arch/sparc64/kernel/smp.c > @@ -866,14 +866,21 @@ void smp_call_function_client(int irq, struct pt_regs *regs) > void *info = call_data->info; > > clear_softint(1 << irq); > + > + irq_enter(); > + > + if (!call_data->wait) { > + /* let initiator proceed after getting data */ > + atomic_inc(&call_data->finished); > + } > + > + func(info); > + > + irq_exit(); > + > if (call_data->wait) { > /* let initiator proceed only after completion */ > - func(info); > - atomic_inc(&call_data->finished); > - } else { > - /* let initiator proceed after getting data */ > atomic_inc(&call_data->finished); > - func(info); > } > }
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[git pull] scheduler/misc fixes
, Ingo Molnar
, (Thu Apr 24, 3:55 pm)
Re: [git pull] scheduler/misc fixes
, David Miller
, (Thu Apr 24, 8:46 pm)
Re: [git pull] scheduler/misc fixes
, Peter Zijlstra
, (Fri Apr 25, 12:48 am)
Re: [git pull] scheduler/misc fixes
, David Miller
, (Fri Apr 25, 12:57 am)
Re: [git pull] scheduler/misc fixes
, Ingo Molnar
, (Fri Apr 25, 1:04 am)
Re: [git pull] scheduler/misc fixes
, David Miller
, (Fri Apr 25, 1:07 am)
Re: [git pull] scheduler/misc fixes
, Peter Zijlstra
, (Fri Apr 25, 1:13 am)
Re: [git pull] scheduler/misc fixes
, Peter Zijlstra
, (Fri Apr 25, 1:24 am)
Re: [git pull] scheduler/misc fixes
, David Miller
, (Fri Apr 25, 1:30 am)
Re: [git pull] scheduler/misc fixes
, Peter Zijlstra
, (Fri Apr 25, 3:19 am)
Re: [git pull] scheduler/misc fixes
, Ingo Molnar
, (Fri Apr 25, 3:51 am)
Re: [git pull] scheduler/misc fixes
, David Miller
, (Fri Apr 25, 1:07 pm)
Re: [git pull] scheduler/misc fixes
, Thomas Gleixner
, (Sun Apr 27, 11:05 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg KH
Og dreams of kernels
Jens Axboe
[PATCH 31/33] Fusion: sg chaining support
Arnd Bergmann
Re: finding your own dead "CONFIG_" variables
Mark Brown
[PATCH 2/2] Subject: natsemi: Allow users to disable workaround for DspCfg reset
Tony Breeds
[LGUEST] Look in object dir for .config
git
:
Brian Downing
Re: Git in a Nutshell guide
John Benes
Re: master has some toys
Matthias Lederhofer
[PATCH 4/7] introduce GIT_WORK_TREE to specify the work tree
Alexander Sulfrian
[RFC/PATCH] RE: git calls SSH_ASKPASS even if DISPLAY is not set
Junio C Hamano
Re: Rss produced by git is not valid xml?
git-commits-head
:
Linux Kernel Mailing List
iSeries: fix section mismatch in iseries_veth
Linux Kernel Mailing List
ixbge: remove TX lock and redo TX accounting.
Linux Kernel Mailing List
ixgbe: fix several counter register errata
Linux Kernel Mailing List
b43: fix build with CONFIG_SSB_PCIHOST=n
Linux Kernel Mailing List
9p: block-based virtio client
linux-netdev
:
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
Michael Breuer
Re: [PATCH] af_packet: Don't use skb after dev_queue_xmit()
David Daney
[PATCH 5/7] Staging: Octeon Ethernet: Convert to NAPI.
Wolfgang Grandegger
[PATCH net-next v4 1/3] can: mscan: fix improper return if dlc < 8 in start_xmi...
Amit Kumar Salecha
[PATCHv3 NEXT 2/2