mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
To: Corey Minyard <minyard@mvista.com>,
	Corey Minyard <minyard@acm.org>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: Linux IPMI subsystem hang
Date: Fri, 15 Mar 2013 14:57:27 -0400	[thread overview]
Message-ID: <87vc8s7ap4.fsf@alice.fifthhorseman.net> (raw)
In-Reply-To: <87ip4w2g2e.fsf@alice.fifthhorseman.net>

[-- Attachment #1: Type: text/plain, Size: 2562 bytes --]

On Tue 2013-03-12 22:23:37 -0400, Daniel Kahn Gillmor wrote:

> I am working with a Lenovo ThinkCentre M78, model 4865-A14, and it seems
> to have trouble with the IPMI subsystem.
>
> udev seems to hang for about 3 minutes at startup, ultimately failing
> with the following messages:
>
> udevd[416]: worker [495] unexpectedly returned with status 0x0100
> udevd[416]: worker [495] failed while handling '/devices/pci0000:00/0000:00:15.2/0000:03:00.3'
>
> This hang happens whether i'm running linux kernel 3.2 or 3.8, using
> either x86 or x86_64 kernels.

trying with udev 175-7.1 (from debian unstable) and kernel 3.2, i see
that the failure message is:

udevd[548]: timeout: killing '/sbin/modprobe -b pci:v000010ECd0000816Csv000017AAsd00003089bc0Csc07i01' [623]

and:

[    5.650931] ipmi message handler version 39.2
[    5.916958] IPMI System Interface driver.
[    5.921153] ipmi_si 0000:03:00.3: probing via PCI
[    5.925851] ipmi_si 0000:03:00.3: [io  0xe000-0xe0ff] regsize 1 spacing 1 irq 17
[    5.933727] ipmi_si: Adding PCI-specified kcs state machine
[    5.939554] ipmi_si: Trying PCI-specified kcs state machine at i/o address 0xe000, slave address 0x0, irq 17
[  406.916061] ipmi_si: There appears to be no BMC at this location

with kernel 3.8, the last line ("There appears to be no BMC at this
location") isn't emitted, but the delay/hang with modprobe still
happens.

I think the first alias in ipmi_si.ko is what is causing this to be triggered:

0 krazy:~# modinfo ipmi_si | grep ^alias
alias:          pci:v*d*sv*sd*bc0Csc07i*
alias:          pci:v0000103Cd0000121Asv*sd*bc*sc*i*
0 krazy:~# 

since the bc0Csc07 matches the [0c07] identifier from lspci:

> 03:00.3 IPMI SMIC interface [0c07]: Realtek Semiconductor Co., Ltd. Device [10ec:816c] (rev 01) (prog-if 01)

It seems like there are four plausible cases:

 0) this is actually an IPMI device, but the hardware is broken.

 1) this is an IPMI device, but it does not implement some part of the
    IPMI spec that ipmi_si.ko expects to be implemented, and ipmi_si.ko
    cannot detect this cleanly.

 2) this device is not an IPMI device at all, and is mislabeled in its
    PCI identifiers somehow.

 3) this device is not an IPMI device at all, it is properly labeled,
    and the module's internal aliasing (and lspci's index?) is
    overgeneral and misidentifies the device.

How can i distinguish between these cases?

> I am not subscribed to LKML, so please CC me on any replies.

Regards,

        --dkg

[-- Attachment #2: Type: application/pgp-signature, Size: 965 bytes --]

  reply	other threads:[~2013-03-15 18:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-13  2:23 Daniel Kahn Gillmor
2013-03-15 18:57 ` Daniel Kahn Gillmor [this message]
2013-03-18 14:08   ` Corey Minyard

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=87vc8s7ap4.fsf@alice.fifthhorseman.net \
    --to=dkg@fifthhorseman.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minyard@acm.org \
    --cc=minyard@mvista.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

all inboxes | Powered by JetHome®