linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* question about detect hard lockups without NMIs using secondary cpus
@ 2015-07-29 16:03 yoma sophian
  2015-07-29 18:29 ` Russell King - ARM Linux
  0 siblings, 1 reply; 3+ messages in thread
From: yoma sophian @ 2015-07-29 16:03 UTC (permalink / raw)
  To: linux-arm-kernel

hi all:
below link introduced how to emulate NMIs on systems where they are
not available by using timer interrupts on other cpus.

http://article.gmane.org/gmane.linux.kernel/1419661

in kernel/watchdog.c
    --> watchdog_overflow_callback
          if (is_hardlockup()) {
           ...........................
                if (hardlockup_panic)
                        panic("Watchdog detected hard LOCKUP on cpu %d",
                              this_cpu); /*************/
                else
                        WARN(1, "Watchdog detected hard LOCKUP on cpu %d",
                             this_cpu);
             .......................
        }

I have some questions:
a.
in SMP system, suppose 4 cores, and hardlockup_panic is 1.
Core0 find Core1 hard lcokup in hardIRQ context
the panic function, above with '*' marked, will fail on
smp_send_stop(), and we will have no idea where core1 is trapped in,
right?

b.
things will get worse if we are running single core system if hard
lockup happen.
We even have no idea what happen.

If my conclusions above are correct, is there any way to debug  a) and
b) situation?

appreciate your kind help in advance,

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

end of thread, other threads:[~2015-07-30 16:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-29 16:03 question about detect hard lockups without NMIs using secondary cpus yoma sophian
2015-07-29 18:29 ` Russell King - ARM Linux
2015-07-30 16:20   ` yoma sophian

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