public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Robert Norris <robn@opera.com>
Cc: linux-kernel@vger.kernel.org, Linux I2C <linux-i2c@vger.kernel.org>
Subject: Re: PROBLEM: modprobe hang at startup (3.8.x, 3.9.x, IBM x3550)
Date: Wed, 15 May 2013 11:20:44 +0200	[thread overview]
Message-ID: <20130515112044.753bb7bb@endymion.delvare> (raw)
In-Reply-To: <20130514231626.GA12961@pyro.melbourne.osa>

Hi Robert,

Adding the linux-i2c list to Cc.

On Wed, 15 May 2013 09:16:26 +1000, Robert Norris wrote:
> On Mon, May 13, 2013 at 11:22:32AM +1000, Robert Norris wrote:
> > We have a number of Intel x3550 servers (Intel 5000-series). They've
> > been running 3.7.2 fine.
> > 
> > In the last week I've run 3.8.11, 3.8.12 and 3.9.2 on them. All have
> > long hangs at boot, and later hung tasks in modprobe.
> 
> I bisected this and tracked it to this commit:
> 
>     commit 6676a847d48ac48908cf467b42da9045b5463a6e
>     Author: Jean Delvare <khali@linux-fr.org>
>     Date:   Sun Dec 16 21:11:55 2012 +0100
> 
>         i2c-i801: Enable interrupts for all post-ICH5 chips
>         
>         I did not receive a single bug report after interrupt support was
>         added for a limited number of chips. So I'd say the code is good and
>         should be enabled for all supported chips, that is: ICH5 and later.
>         
>         Signed-off-by: Jean Delvare <khali@linux-fr.org>
>         Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
> 
> I've tested by building 3.9.2 with that single commit reverted, and it
> boots without issue.

Thanks a lot for reporting and even more for bisecting it, I know it
takes time. I apologize for the trouble. I suppose I should have been a
bit more cautious with the 63xxESB chips as they are a different family
of hardware.

> According to lspci I have:
> 
>     00:1f.3 SMBus: Intel Corporation 631xESB/632xESB/3100 Chipset SMBus Controller (rev 09)
> 
> Which has PCI ID 0x269b (ie PCI_DEVICE_ID_INTEL_ESB2_17).


Can you share the full output of lspci -s 00:1f.3 -vv?

I'm also curious if the SMBus controller shares its interrupt line with
another chip. /proc/interrupts should tell but you'll have to make one
of your systems hang again.

> For now I will either revert this commit in my kernel builds or
> blacklist the module on these machines (I haven't decided which I prefer
> yet).

You can also pass parameter disable_features=0x10 to the i2c-i801
driver, this will disable interrupt support without having to rebuild
the driver. I suppose this could be documented in more details in
modinfo, I'll work on that.

> Obviously, I can reproduce this reliably, and am happy to test.

Thanks for the offer. Right now I am stuck in bed and must take some
rest. When I feel better I'll see if I can gain access to systems with
Intel 63xxESB chips to try and reproduce the hang you're seeing. I'll
also take a look at the datasheets again to see if any difference stands
out.

For the time being I plan to simply disable interrupt support again for
the ESB chips, until we fully understand what happens on your systems.

As far as debugging goes, please tell me if you have any I2C/SMBus
slave device driver loaded (check in /sys/bus/i2c/drivers.) Loading the
i2c-i801 driver doesn't do much on its own if there are no slave device
drivers using it.

Thanks,
-- 
Jean Delvare

  reply	other threads:[~2013-05-15  9:20 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-13  1:22 PROBLEM: modprobe hang at startup (3.8.x, 3.9.x, IBM x3550) Robert Norris
2013-05-14 23:16 ` Robert Norris
2013-05-15  9:20   ` Jean Delvare [this message]
2013-05-15 11:27     ` Robert Norris
2013-05-15 19:49       ` Jean Delvare
2013-05-16  3:44         ` Robert Norris
2013-05-17  8:36           ` Jean Delvare
2013-05-17  9:22             ` Martin Mokrejs
2013-05-17  9:47               ` Jean Delvare
2013-05-17  9:54             ` Daniel Kurtz
2013-05-17 10:26               ` Robert Norris
2013-05-17 10:24             ` Robert Norris
2013-05-17 12:18             ` Robert Norris
2013-05-17  8:49           ` Jean Delvare
2013-05-17 10:27             ` Robert Norris
2013-05-17 10:56               ` Jean Delvare

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=20130515112044.753bb7bb@endymion.delvare \
    --to=khali@linux-fr.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robn@opera.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