linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Richter <stefanr@s5r6.in-berlin.de>
To: Rob Allen <ra-kernel@hotmail.co.uk>
Cc: Clemens Ladisch <clemens@ladisch.de>,
	Yinghai Lu <yinghai@kernel.org>, Ram Pai <linuxram@us.ibm.com>,
	linux1394-devel@lists.sourceforge.net, linux-pci@vger.kernel.org
Subject: Re: [Bug 43244] New: firewire_ohci prevents boot
Date: Mon, 21 May 2012 22:08:30 +0200	[thread overview]
Message-ID: <20120521220830.3732cc8d@stein> (raw)
In-Reply-To: <BLU0-SMTP47479D78AA811CB0B224ADFB71D0@phx.gbl>

On May 21 Rob Allen wrote:
> On 16/05/12 14:53, Clemens Ladisch wrote:
> > Rob Allen wrote:
> >> On 14/05/12 07:39, Yinghai Lu wrote:
> >>> can you post full log with pci debug enabled with lastest upsteam kernel?
> >>
> >> I'm happy to do that, although I need with some guidance on what I need to
> >> enable to get the required output.
> >
> > For Ubuntu, see<https://wiki.ubuntu.com/KernelTeam/GitKernelBuild>.
> >
> > To enable PCI debugging, enable the configuration options
> > CONFIG_DEBUG_KERNEL and CONFIG_PCI_DEBUG.
> 
> Thanks. I've built the kernel and I can replicate the failure.
> 
> However, I'm having trouble getting the log output. As soon as I see the 
> "firewire_ohci: Failed to set Link Power Status" message, the machine 
> locks up. After cycling the power, that log output isn't anywhere in 
> /var/log anywhere (even if I booted with 'rw').
> 
> After some searching, I guess a decent route is to output to a serial 
> console. The machine in question doesn't have a serial port, although I 
> have a PCI-e serial card somewhere. (Is that likely to work so early in 
> the boot process?)
> 
> Can you suggest the best way to get the log output?

If there is anything more than that on the text console when the PC locks
up and you have a digital camera at your disposal, just take a photograph,
attach it to bugzilla, and post the link.

If there is nothing interesting to photograph, then you could try
netconsole.  You need a second PC on which you configure syslogd to
receive log messages from the test PC.  On the test PC, you need to have
netconsole loaded before the lockup and need to specify the target.

Here is what works for me:

On the logging PC at 192.168.0.37:
----------------------------------
$ tail -3 /etc/syslog-ng/syslog-ng.conf 
# netconsole:
source net { udp(ip("192.168.0.37") port(6666)); };
log { source(net); destination(messages); };

On the test PC:
---------------
# alias netconsole
alias netconsole='modprobe netconsole netconsole="@/,@192.168.0.37/" && dmesg -n 7'

Since you crash at boot, I guess it's easiest to link netconsole
statically into the kernel and of course specify the parameter in the
bootloader's kernel command line.
-- 
Stefan Richter
-=====-===-- -=-= =-=-=
http://arcgraph.de/sr/

  reply	other threads:[~2012-05-21 20:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-43244-4803@https.bugzilla.kernel.org/>
     [not found] ` <20120513221357.7574ae79@stein>
2012-05-14  6:32   ` [Bug 43244] New: firewire_ohci prevents boot Clemens Ladisch
2012-05-14  6:39     ` Yinghai Lu
2012-05-16 13:12       ` Rob Allen
2012-05-16 13:53         ` Clemens Ladisch
2012-05-21 19:33           ` Rob Allen
2012-05-21 20:08             ` Stefan Richter [this message]
2012-05-21 20:20             ` Clemens Ladisch
2012-05-24 18:26               ` Stefan Richter
2012-05-24 18:43                 ` Rob Allen
2012-06-04 23:59                   ` Yinghai Lu
     [not found]                 ` <4FBE8146.1030803@hotmail.co.uk>
2012-06-04 11:00                   ` Rob Allen
2012-06-05  2:54                     ` Ram Pai
2012-06-19 21:11                       ` Rob Allen
     [not found]                         ` <BAY153-W382DF41517C8EA770817E4B7EB0@phx.gbl>
2012-07-01 20:56                           ` Yinghai Lu
2012-07-05 19:53                             ` Rob Allen
     [not found]                             ` <4FF5F09C.5020507@hotmail.co.uk>
2012-07-21 11:31                               ` Rob Allen

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=20120521220830.3732cc8d@stein \
    --to=stefanr@s5r6.in-berlin.de \
    --cc=clemens@ladisch.de \
    --cc=linux-pci@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    --cc=linuxram@us.ibm.com \
    --cc=ra-kernel@hotmail.co.uk \
    --cc=yinghai@kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).