public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: Mark Knecht <markknecht@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.6.14-rc4-rt1 - enable IRQ-off tracing causes kernel to fault at boot
Date: Thu, 13 Oct 2005 09:30:29 +0200	[thread overview]
Message-ID: <20051013073029.GA12801@elte.hu> (raw)
In-Reply-To: <5bdc1c8b0510121000i5db112f2p642f66686fb46c57@mail.gmail.com>


* Mark Knecht <markknecht@gmail.com> wrote:

> Config file attached. The only change was to enable IRQ-off latency 
> tracing using make menuconfig. Rebuild and reboot. I got a message 
> about the kernel not syncing, lots of stuff above that message about 
> do_futex, etc.

i cannot reproduce your problems - your .config works fine on my x64 
box. A log of the crash would be needed - do you have a null-modem cable 
to connect this box to some other nearby box to do serial logging? If 
yes then there is a mini-howto below. (for x86, but it works the same 
for x64)

	Ingo


to set up serial logging:
-------------------------

install a null modem cable (== serial cable) to one of the serial ports
of the server, connect the cable to another box, run a terminal program
on that other box (e.g. "minicom -m" - do Alt-L to switch on logging
after starting it up) and set up the server's kernel to do serial
logging: enable CONFIG_SERIAL_8250_CONSOLE and
CONFIG_SERIAL_CORE_CONSOLE, recompile & reinstall the kernel, add
"console=ttyS0,38400 console=tty0" to your /etc/grub.conf or
/etc/lilo.conf kernel boot line, reboot the server with the new kernel
command line - and configure minicom to run with that speed (Alt-S).

e.g. my /etc/grub.conf has:

title test-2.6 (test-2.6)
        root (hd0,0)
        kernel /boot/bzImage root=/dev/sda1 console=ttyS0,38400 console=tty0 nmi_watchdog=1 kernel_preempt=1

if everything is set up correctly then you should see kernel messages
showing up in the minicom session when you boot up.

When the messages do not show up then typical errors are mismatch
between the serial port (or speed) and the device names used - if it's
COM2 then use ttyS1, and dont forget to set up the serial speed option
of minicom, etc. You can test the serial connection by doing:

	echo x > /dev/ttyS0

and that should show up in the minicom session on the other box.

to set up early-printk:
-----------------------

occasionally lockups/crashes happen so early in the bootup that nothing
makes it even to the serial log. In that case the 'earlyprintk' feature
is most useful. It is default-enabled on all 2.6 kernels, you only need
to add one more boot parameter to activate it over the serial console:

   earlyprintk=serial,ttyS0,38400


  reply	other threads:[~2005-10-13  7:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 17:00 2.6.14-rc4-rt1 - enable IRQ-off tracing causes kernel to fault at boot Mark Knecht
2005-10-13  7:30 ` Ingo Molnar [this message]
2005-10-13 12:26   ` Mark Knecht
2005-10-13 12:41     ` Steven Rostedt
2005-10-13 12:47     ` Steven Rostedt
2005-10-13 19:10       ` Mark Knecht
2005-10-14  3:52         ` Ingo Molnar
2005-10-14 14:56           ` Mark Knecht
2005-10-14 19:40             ` Mark Knecht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051013073029.GA12801@elte.hu \
    --to=mingo@elte.hu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=markknecht@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox