All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] sensors-detect: Check for 1-register-only
Date: Sun, 11 May 2008 16:23:50 +0000	[thread overview]
Message-ID: <20080511182350.7de46f3b@hyperion.delvare> (raw)
In-Reply-To: <20080508224145.41cfa3ef@hyperion.delvare>

Hi Achim,

On Sun, 11 May 2008 13:42:59 +0200, achim wrote:
> Am Samstag, den 10.05.2008, 18:40 +0200 schrieb Jean Delvare:
> > OK, I have come up with something. There are not that many detection
> > routines using SMBus read word transactions, we only use them for the
> > following devices in the 0x48-0x4f address range: LM75, DS75, LM77,
> > LM92, LM76, MAX663x and DS1621. So I have changed the detection of all
> > these devices to do as much as possible with read byte transactions,
> > and only use read word transactions at the end when we are already
> > almost certain that we have identified the device.
> 
> I just tried your patch, and sensors-detect works fine without breaking
> the smbus now.
> 
> I attached the log.

Excellent, thanks for testing. It looks very good. I am going to commit
my two patches to SVN now, just in time for 3.0.2.

>                     Now without breaking at 0x4c the chip at 0x4e is
> detected as an overclock controller. 

Aha, interesting :) I am curious if this chip is also the one answering
at 0x2e. The datasheet doesn't suggest so, but as we saw several boards
with this overclocking chip and the mysterious chip at 0x2e, I start
wondering if it could be the same chip...

> I'm currently working on a module for the clockgenerator chip. I started
> with the lm75 module and modified it in a way that it reads out the ref
> HT speed. I want to extend it to read out the onboard gpu and pcie
> frequency also.
> 
> The registers at 0x90 and 0x91 are responsible for the ref HT frequency.
> 
> m=0x91[0:7]*4+0x90[6:7]
> n=0x90[0:5]
> 
> ref HT = 50MHz * m/n
> 
> It is also possible to change the ref HT on the fly by writing to those
> registers but that needs further inspection because the datasheet lacks
> the info what divider n is suitable. Also I only tested this with spread
> spectrum disabled, otherwise i'd need a few tables for the spectrum
> registers whom are also not covered by the datasheet.
> 
> Would such a module fit into the lm-sensors project? On the one hand it
> monitors motherboard frequencies on the other it's not a sensor chip i'm
> utilising.

Well, we have the atxp1 driver under drivers/hwmon already... But I
don't think it should be there. Anything related to overclocking should
be clearly labelled so and moved to a dedicated subsystem with a
separate maintainer. The target audience of these chips is clearly
different.

As for libsensors, no, I would rather not add the features of
overclocking chips to it. Better write a separate library if needed.
Again, separate audience.

We have the detection of these overclocking chips in sensors-detect
simply because they happen to live at an address which is frequently
used by thermal sensor chips. If they were living at different
addresses, we wouldn't care about them at all.

-- 
Jean Delvare

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

  parent reply	other threads:[~2008-05-11 16:23 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-08 20:41 [lm-sensors] [PATCH] sensors-detect: Check for 1-register-only Jean Delvare
2008-05-09  5:03 ` Hans de Goede
2008-05-09  5:06 ` Hans de Goede
2008-05-09  6:46 ` Hans de Goede
2008-05-09 10:43 ` Jean Delvare
2008-05-09 10:47 ` Hans de Goede
2008-05-09 11:51 ` achim
2008-05-09 12:14 ` Jean Delvare
2008-05-09 15:29 ` Jean Delvare
2008-05-09 17:05 ` Jean Delvare
2008-05-09 17:31 ` achim
2008-05-09 21:02 ` Jean Delvare
2008-05-09 21:16 ` Ludovic Lebègue
2008-05-10 16:40 ` Jean Delvare
2008-05-11 16:23 ` Jean Delvare [this message]
2008-05-12 10:53 ` Achim Gottinger

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=20080511182350.7de46f3b@hyperion.delvare \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.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 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.