From: adobriyan@mail.ru (Alexey Dobriyan)
To: Jean Delvare <khali@linux-fr.org>
Cc: Aurelien Jarno <aurelien@aurel32.net>, Greg KH <greg@kroah.com>,
LKML <linux-kernel@vger.kernel.org>,
LM Sensors <sensors@Stimpy.netroedge.com>
Subject: [PATCH 2.6] I2C: New chip driver: sis5595
Date: Thu, 19 May 2005 06:25:35 +0000 [thread overview]
Message-ID: <200502011857.24786.adobriyan@mail.ru> (raw)
In-Reply-To: <w2Am1HDp.1107265957.3006340.khali@localhost>
On Tuesday 01 February 2005 15:52, Jean Delvare wrote:
> > What about making sis5595_update_device() a simple jiffies-related wrapper
> > around function that updates "struct sis5595" unconditionally. I'm not sure
> > I plugged sis5595_do_update_client right, but you'll get the idea.
> 1* It forces a chip update (i.e. full register read) on driver load (or
> more precisely on client detection). Since I2C/SMBus accesses are really
> slow, it will result in a significant time penalty. As the read values
> are only considered valid for 1.5 second (or equivalent duration for the
> other drivers), this penalty brings statistically no benefit in return.
>
> 2* Each subsequent update (or attempt thereof) will conditionally require
> an additional function call, which represents a small time penalty again
> (much more than a comparison if I'm not mistaken).
lm90 (all sensors chips have approximately the same speed, right?) spec says:
"It takes the LM90 31.25 ms to measure the temperature of the remote diod and
internal diode". Google says: "The buses [I2C, SMBus] operate at the same
speed, up to 100kHz, but the I2C bus has both 400kHz and 2MHz versions."
What I'm trying to say that you shouldn't care about s/cmp; jcc/call/ if the
actual measurement is infinite from CPU's POV.
> We are only trying to avoid a conditional test and to get rid of a local
> variable, and end up with a much slower init
Well, yes, I agree that initialization will become slower. But how long is
register read (from first outb command to the moment when CPU sees it)?
I'm trying to build time hierarchy of things we're discussing in my head.
Alexey
WARNING: multiple messages have this Message-ID (diff)
From: Alexey Dobriyan <adobriyan@mail.ru>
To: "Jean Delvare" <khali@linux-fr.org>
Cc: "Aurelien Jarno" <aurelien@aurel32.net>,
"Greg KH" <greg@kroah.com>, "LKML" <linux-kernel@vger.kernel.org>,
"LM Sensors" <sensors@Stimpy.netroedge.com>
Subject: Re: [PATCH 2.6] I2C: New chip driver: sis5595
Date: Tue, 1 Feb 2005 18:57:24 +0200 [thread overview]
Message-ID: <200502011857.24786.adobriyan@mail.ru> (raw)
In-Reply-To: <w2Am1HDp.1107265957.3006340.khali@localhost>
On Tuesday 01 February 2005 15:52, Jean Delvare wrote:
> > What about making sis5595_update_device() a simple jiffies-related wrapper
> > around function that updates "struct sis5595" unconditionally. I'm not sure
> > I plugged sis5595_do_update_client right, but you'll get the idea.
> 1* It forces a chip update (i.e. full register read) on driver load (or
> more precisely on client detection). Since I2C/SMBus accesses are really
> slow, it will result in a significant time penalty. As the read values
> are only considered valid for 1.5 second (or equivalent duration for the
> other drivers), this penalty brings statistically no benefit in return.
>
> 2* Each subsequent update (or attempt thereof) will conditionally require
> an additional function call, which represents a small time penalty again
> (much more than a comparison if I'm not mistaken).
lm90 (all sensors chips have approximately the same speed, right?) spec says:
"It takes the LM90 31.25 ms to measure the temperature of the remote diod and
internal diode". Google says: "The buses [I2C, SMBus] operate at the same
speed, up to 100kHz, but the I2C bus has both 400kHz and 2MHz versions."
What I'm trying to say that you shouldn't care about s/cmp; jcc/call/ if the
actual measurement is infinite from CPU's POV.
> We are only trying to avoid a conditional test and to get rid of a local
> variable, and end up with a much slower init
Well, yes, I agree that initialization will become slower. But how long is
register read (from first outb command to the moment when CPU sees it)?
I'm trying to build time hierarchy of things we're discussing in my head.
Alexey
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-01 12:20 [PATCH 2.6] I2C: New chip driver: sis5595 Alexey Dobriyan
2005-05-19 6:25 ` Alexey Dobriyan
2005-02-01 11:49 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-02-01 14:12 ` Alexey Dobriyan
2005-05-19 6:25 ` Alexey Dobriyan
2005-02-01 13:52 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-02-01 14:43 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-02-01 16:57 ` Alexey Dobriyan [this message]
2005-05-19 6:25 ` Alexey Dobriyan
2005-02-01 16:42 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-02-01 12:14 ` Aurelien Jarno
2005-05-19 6:25 ` Aurelien Jarno
2005-02-01 16:54 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-02-01 17:00 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-02-01 16:55 ` Greg KH
2005-05-19 6:25 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2005-02-06 20:26 [PATCH 2.6] I2C: New chip driver: sis5595 (resubmit) Aurélien Jarno
2005-05-19 6:25 ` Aurélien Jarno
2005-02-17 22:25 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-01-25 22:09 [PATCH 2.6] I2C: New chip driver: sis5595 Aurélien Jarno
2005-05-19 6:25 ` Aurélien Jarno
2005-01-31 18:21 ` Greg KH
2005-05-19 6:25 ` Greg KH
2005-02-01 10:11 ` Aurelien Jarno
2005-05-19 6:25 ` Aurelien Jarno
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=200502011857.24786.adobriyan@mail.ru \
--to=adobriyan@mail.ru \
--cc=aurelien@aurel32.net \
--cc=greg@kroah.com \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sensors@Stimpy.netroedge.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.