From: Hans de Goede <j.w.r.degoede@hhs.nl>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Proposal
Date: Sat, 16 Jun 2007 19:50:20 +0000 [thread overview]
Message-ID: <46743EFC.7090206@hhs.nl> (raw)
In-Reply-To: <200704081630.17151.hjk@linutronix.de>
Mark M. Hoffman wrote:
> Hi everyone:
>
> Finally, back to the thread that resulted in change of maintainers, but not
> yet any merged code. ;)
>
> * Hans de Goede <j.w.r.degoede@hhs.nl> [2007-04-11 15:49:08 +0200]:
>> Jean Delvare wrote:
>>> Hans,
>>>
>>> On Mon, 09 Apr 2007 14:26:06 +0200, Hans de Goede wrote:
>>>> Jean Delvare wrote:
>>>>> This is absolutely not different from all other hardware monitoring
>>>>> drivers. And all other drivers handle it in user-space, because that's
>>>>> the right design. I see no valid reason why it would be different for
>>>>> your abituguru3 driver. All you need is one configuration file per
>>>>> motherboard.
>>>> Actually it is _very_ different. The uguru is not a chip, its more a piece of
>>>> software (looking from the driver POV) then a chip, thus sensors which aren't
>>>> there really aren't there, they are not just unconnected pins, they _really_
>>>> aren't there.
>
> There is another way to look at it: the uguru3 is not a single chip, it is a
> *family* of chips. With that model, we would end up with a compromise between
> your positions that has precedent in other drivers.
>
> I.e. Append the motherboard ID to the chip name, and also use that to create
> the needed sysfs files. Voila, you don't need "label" sysfs files anymore
> because you can put a section in sensors.conf for each variant of uguru3.
>
> It's not that I'm against the label files per se. But IMHO this suggestion
> is the closest fit to the existing model of operation.
>
I could do that, actually making the ID available in some way to userspace is a
good idea, however I'm still in favor of the fooX_label approach because:
1) The driver will need the table it currently has no matter what, to determine
which inputs the model / this specific member of the family has, and at
which addresses these inputs reside and what type they have.
Since the table is already there, I might as well at the labels there and
have all info in a single place = less maintainance / no sync problems
2) With dyn chip support in place (soon hopefully) a newer kernel with support
for new motherboards added to the table, will just work without requiring
userspace updates. When the labels are in sensors.conf userspace will need
updating too, and if sensors.conf has been edited, it will require manual
intervention / editing even.
More in general if other drivers, for example CPU / chipset internal
sensor temp drivers get added, they can have foo#_label sysfs entries too,
and the new dyn chip support libsensors will do the right thing.
Atleast Fedora, and probably other distro's update the kernel way more often
then userspace tools.
>> So is this one, its reading the configuration register which tells the driver
>> which model/stepping we are running on.
>
> Yep, this leads directly to my suggestion above. Guys, is that acceptable?
> (/me is out, but leaving the rest uncut since it's such an old thread)
>
If the above solution is what it takes to gets the driver integrated, then
maybe I can agree, but I see big pain (mainly for me) in having to maintain the
needed table partly in the driver and partly in sensors.conf, since the driver
will need a table anyways, why not put all the info in one place?
---
I've feeling we're arguing about 2 different things at once here, so here is a
try to split them:
1) do we want foo#_label sysfs entries for devices were we can give a sensible
label to userspace, like cpu temp drivers
2) if we agree that we want / will allow 1), is it ok for the uguru3 driver to
generate foo#_label sysfs entries using the contents of an uguru3 register
which addresses a lookup table with the actual info.
Regards,
Hans
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2007-06-16 19:50 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-08 14:30 [lm-sensors] Proposal Hans-Jürgen Koch
2007-04-08 17:36 ` Hans de Goede
2007-04-08 18:31 ` Hans-Jürgen Koch
2007-04-08 18:56 ` Hans de Goede
2007-04-08 19:18 ` Hans-Jürgen Koch
2007-04-09 11:23 ` Jean Delvare
2007-04-09 11:27 ` Jean Delvare
2007-04-09 12:24 ` Jean Delvare
2007-04-09 12:26 ` Hans de Goede
2007-04-09 12:34 ` Hans de Goede
2007-04-09 12:50 ` Hans de Goede
2007-04-11 11:35 ` Jean Delvare
2007-04-11 11:49 ` Jean Delvare
2007-04-11 11:56 ` Jean Delvare
2007-04-11 13:49 ` Hans de Goede
2007-06-16 15:14 ` Mark M. Hoffman
2007-06-16 15:21 ` Mark M. Hoffman
2007-06-16 15:42 ` Mark M. Hoffman
2007-06-16 19:35 ` Hans de Goede
2007-06-16 19:40 ` Hans de Goede
2007-06-16 19:50 ` Hans de Goede [this message]
2007-06-16 19:52 ` Mark M. Hoffman
2007-06-18 18:31 ` Jean Delvare
2007-06-18 19:58 ` Hans de Goede
2007-06-19 7:59 ` Jean Delvare
2007-06-19 8:15 ` Jean Delvare
2007-06-19 8:31 ` Hans de Goede
2007-06-19 12:27 ` Mark M. Hoffman
2007-06-24 11:43 ` Jean Delvare
2007-06-24 12:11 ` 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=46743EFC.7090206@hhs.nl \
--to=j.w.r.degoede@hhs.nl \
--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.