xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Xen randomly stuck in mdelay() during MP initialization
@ 2012-01-11 13:06 Julian Pidancet
  2012-01-11 13:27 ` Pasi Kärkkäinen
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Julian Pidancet @ 2012-01-11 13:06 UTC (permalink / raw)
  To: xen-devel

Hi,

When trying to boot xen 4.1 on new hardware, Xen become stuck in
wakeup_secondary_cpu() in the mdelay function.

    Dprintk("Waiting for send to finish...\n");
    timeout = 0;
    do {
        Dprintk("+");
        udelay(100);
        if ( !x2apic_enabled )
            send_status = apic_read(APIC_ICR) & APIC_ICR_BUSY;
    } while ( send_status && (timeout++ < 1000) );

    printk("before mdelay\n");
    mdelay(10);
    printk("after mdelay\n");

    Dprintk("Deasserting INIT.\n");

The hang can happen randomly with any of the CPUs to wake up and
sometime doesn't happen at all.
Replacing mdelay(10) with udelay(10) seems to fix the issue.

-- 
Julian

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-01-11 15:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 13:06 Xen randomly stuck in mdelay() during MP initialization Julian Pidancet
2012-01-11 13:27 ` Pasi Kärkkäinen
2012-01-11 13:28 ` Keir Fraser
2012-01-11 14:51   ` Julian Pidancet
2012-01-11 15:12     ` Jan Beulich
2012-01-11 15:28       ` Julian Pidancet
2012-01-11 15:35         ` Jan Beulich
2012-01-11 15:27     ` Keir Fraser
2012-01-11 14:53 ` Igor Mammedov

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).