public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Mark M. Hoffman" <mhoffman@lightlink.com>
To: Etienne Lorrain <etienne_lorrain@yahoo.fr>
Cc: linux-kernel@vger.kernel.org,
	lm-sensors <lm-sensors@lm-sensors.org>,
	Ian Campbell <icampbell@arcom.com>
Subject: Re: I2C_PCA_ISA causes boot delays (was re: sis96x compiled in by error: delay of one minute at boot)
Date: Tue, 28 Mar 2006 22:45:10 -0500	[thread overview]
Message-ID: <20060329034510.GA8309@jupiter.solarsys.private> (raw)
In-Reply-To: <20060320230037.29764.qmail@web26902.mail.ukl.yahoo.com>

Hi Etienne, Ian:

Etienne: sorry for the delay... I have't forgotten about you.

Recap for Ian: Etienne was suffering very long delays at boot time due
to some combination of I2C / hwmon drivers built-in (not modular) to
his kernel.

* Etienne Lorrain <etienne_lorrain@yahoo.fr> [2006-03-21 00:00:37 +0100]:
> --- "Mark M. Hoffman" wrote:
> > * Etienne Lorrain [2006-03-16 11:53:32 +0100]:
> > >  I did not built with all hwmon drivers because I could determine what I
> > >  had on my mainboard.
> > 
> > Really?  If you don't have all the hwmon drivers built in, then I'm not
> > sure how the i2c subsystem could take so long to init.  Can we see the
> > entire kernel config please?
> 
>    That is the real 2.6.16 with only CONFIG_I2C_VIAPRO=y (the only I2C module loaded
>  using Knoppix on my motherboard) (full .config attached):

OK: you didn't have all the hwmon/sensors drivers built in, just seven of
them.  ;)  This really is not a good idea.  In an ideal world, these drivers
would notice that the hardware is not present and move on.  But I2C/SMBus is
not like PCI.  There is no single ID to read and test.  This hardware is only
recognized based on heuristics.  And the probing itself takes time: especially
if you have a very slow I2C bus.  More on that later...

> 885c885
> < # CONFIG_I2C_PCA_ISA is not set
> ---
> > CONFIG_I2C_PCA_ISA=y

This alone is the cause of the delay.  (I have confirmed it by running some
similar .configs here.)  You almost certainly don't own this specialized
piece of hardware.  Worse still, that particular driver has no code to detect
whether or not the hardware is present.  I cc'ed the listed driver author
(Ian) just in case this might be corrected... but I guess there is no way
to fix it.

So the delay is (1) an I2C bus driver that is not actually present, trying to
probe for (2) seven different sensors chip drivers that certainly aren't present
on the nonexistent bus.  Timeouts ensue.

So unless Ian knows a better way to detect that bus driver... the best I can
advise is to *not* build in those drivers for hardware that you do not have.

Regards,

-- 
Mark M. Hoffman
mhoffman@lightlink.com


  reply	other threads:[~2006-03-29  3:45 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-13 10:27 sis96x compiled in by error: delay of one minute at boot Etienne Lorrain
2006-03-13 11:46 ` Jean Delvare
2006-03-13 22:38   ` Etienne Lorrain
2006-03-14  9:43     ` Jean Delvare
2006-03-15  3:46       ` Mark M. Hoffman
2006-03-15  9:01         ` Jean Delvare
2006-03-16  3:59           ` Mark M. Hoffman
2006-03-16  8:46             ` Jean Delvare
2006-03-16 10:53               ` Etienne Lorrain
2006-03-17  4:20                 ` [lm-sensors] " Mark M. Hoffman
2006-03-20 23:00                   ` Etienne Lorrain
2006-03-29  3:45                     ` Mark M. Hoffman [this message]
2006-03-29  9:26                       ` I2C_PCA_ISA causes boot delays (was re: sis96x compiled in by error: delay of one minute at boot) Etienne Lorrain
2006-03-29 13:38                         ` Mark M. Hoffman
2006-03-29 14:00                       ` Ian Campbell
2006-03-17  3:56               ` [lm-sensors] sis96x compiled in by error: delay of one minute at boot Mark M. Hoffman
2006-03-17  3:58                 ` [PATCH 2.6.16-rc6] i2c: require type parameter for i2c-parport and i2c-parport-light Mark M. Hoffman
2006-03-22 12:32                   ` Jean Delvare
2006-03-15 23:03       ` [ot] VIA southbridge strangeness (was: sis96x compiled in by error: delay of one minute at boot) Jan Engelhardt
2006-03-16  8:22         ` 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=20060329034510.GA8309@jupiter.solarsys.private \
    --to=mhoffman@lightlink.com \
    --cc=etienne_lorrain@yahoo.fr \
    --cc=icampbell@arcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.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