* [PATCH] arm: fix gic_init_secondary_cpu.
@ 2012-08-01 16:43 Ian Campbell
2012-08-02 11:09 ` Tim Deegan
0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2012-08-01 16:43 UTC (permalink / raw)
To: xen-devel; +Cc: tim, Ian Campbell
Using spin_lock_irq here is unnecessary (interrupts are not yet enabled) and
wrong (since they will get unexpectedly renabled by spin_unlock_irq).
We can just use spin_lock/spin_unlock.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: tim@xen.org
---
Now an SMP model gets as far as hanging at dom0 "Calibrating delay loop...".
Tim, didn't you diagnose that a while ago?
---
xen/arch/arm/gic.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c
index 378158b..6f5b0e1 100644
--- a/xen/arch/arm/gic.c
+++ b/xen/arch/arm/gic.c
@@ -323,10 +323,10 @@ int __init gic_init(void)
/* Set up the per-CPU parts of the GIC for a secondary CPU */
void __cpuinit gic_init_secondary_cpu(void)
{
- spin_lock_irq(&gic.lock);
+ spin_lock(&gic.lock);
gic_cpu_init();
gic_hyp_init();
- spin_unlock_irq(&gic.lock);
+ spin_unlock(&gic.lock);
}
/* Shut down the per-CPU GIC interface */
--
1.7.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm: fix gic_init_secondary_cpu.
2012-08-01 16:43 [PATCH] arm: fix gic_init_secondary_cpu Ian Campbell
@ 2012-08-02 11:09 ` Tim Deegan
2012-08-03 8:56 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Tim Deegan @ 2012-08-02 11:09 UTC (permalink / raw)
To: Ian Campbell; +Cc: xen-devel
At 16:43 +0000 on 01 Aug (1343839437), Ian Campbell wrote:
> Using spin_lock_irq here is unnecessary (interrupts are not yet enabled) and
> wrong (since they will get unexpectedly renabled by spin_unlock_irq).
>
> We can just use spin_lock/spin_unlock.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
> Now an SMP model gets as far as hanging at dom0 "Calibrating delay loop...".
>
> Tim, didn't you diagnose that a while ago?
I only got as far as showing that dom0 is spinning waiting for jiffies
to increase, but never taking the timer interrupts that would cause that
to happen.
Tim.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-03 8:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01 16:43 [PATCH] arm: fix gic_init_secondary_cpu Ian Campbell
2012-08-02 11:09 ` Tim Deegan
2012-08-03 8:56 ` Ian Campbell
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).