All of lore.kernel.org
 help / color / mirror / Atom feed
* Kernel gets deadlocked during smp booting
@ 2015-06-16 11:24 AYAN KUMAR HALDER
       [not found] ` <CANoiuGLzBHVT6Q0P6PSFE==RSwSxMsH9496+UD1o2TH0RWP5eg@mail.gmail.com>
  0 siblings, 1 reply; 5+ messages in thread
From: AYAN KUMAR HALDER @ 2015-06-16 11:24 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I am booting kernel 4.0.4 on an ARM based custom SOC with SMP enabled.
I see that the kernel gets deadlocked on a spinlock. To be precise,

static inline void arch_spin_lock(arch_spinlock_t *lock)
{
...
// loops in the following while loop for indefinite period
while (lockval.tickets.next != lockval.tickets.owner) {
        wfe();
        lockval.tickets.owner = ACCESS_ONCE(lock->tickets.owner);
    }

}

Can someone explain to me what does the loop exactly do.
Besides, any pointers about how to debug such issues.

The backtrace shows the following:-
arch_spin_lock
_raw_spin_lock
vprintk_emit ----> raw_spin_lock(&logbuf_lock);
vprintk_default
printk
smp_init

I can guess that the deadlock is being caused due to logbuf_lock. But,
I am unable to proceed further.

Thanks and Regards,
Ayan kumar Halder

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

end of thread, other threads:[~2015-06-21 15:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-16 11:24 Kernel gets deadlocked during smp booting AYAN KUMAR HALDER
     [not found] ` <CANoiuGLzBHVT6Q0P6PSFE==RSwSxMsH9496+UD1o2TH0RWP5eg@mail.gmail.com>
2015-06-17  6:39   ` AYAN KUMAR HALDER
2015-06-17 15:25     ` Josh Cartwright
2015-06-17 16:18       ` AYAN KUMAR HALDER
2015-06-21 15:18         ` AYAN KUMAR HALDER

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.