All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about VID
@ 2005-05-19  6:24 Mark M. Hoffman
  2005-05-19  6:24 ` Mark Studebaker
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Mark M. Hoffman @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hello everyone:

Looks like w83627thf doesn't have dedicated VID pins.  But, it has a
few GPIO pins... some of which just happen to be the same pin #s as
the dedicated VID pins on the w83627hf.  Haven't tried it yet, but I'd
bet money that's how it's wired too.  Any clever ideas about how to
support something like that in the driver?  I'm thinking of just using
some #ifdef's, but that's not very clever.

Regards,

-- 
Mark M. Hoffman
mhoffman@lightlink.com

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Question about VID
  2005-05-19  6:24 Question about VID Mark M. Hoffman
@ 2005-05-19  6:24 ` Mark Studebaker
  2005-05-19  6:24 ` Philip Pokorny
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

just assume the vid pins are always there.
If they aren't hooked up, it's no different than for any
other chip or driver.
vid is only used for calculation of limits in sensors.conf.
how many people bother to program the correct "VRM" specification
setting anyway, I don't know, probably isn't that high...

Mark M. Hoffman wrote:

> Hello everyone:
> 
> Looks like w83627thf doesn't have dedicated VID pins.  But, it has a
> few GPIO pins... some of which just happen to be the same pin #s as
> the dedicated VID pins on the w83627hf.  Haven't tried it yet, but I'd
> bet money that's how it's wired too.  Any clever ideas about how to
> support something like that in the driver?  I'm thinking of just using
> some #ifdef's, but that's not very clever.
> 
> Regards,
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Question about VID
  2005-05-19  6:24 Question about VID Mark M. Hoffman
  2005-05-19  6:24 ` Mark Studebaker
  2005-05-19  6:24 ` Philip Pokorny
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Mark Studebaker
  2005-05-19  6:24 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> Looks like w83627thf doesn't have dedicated VID pins.  But, it has a
> few GPIO pins... some of which just happen to be the same pin #s as
> the dedicated VID pins on the w83627hf.  Haven't tried it yet, but I'd
> bet money that's how it's wired too.  Any clever ideas about how to
> support something like that in the driver?  I'm thinking of just using
> some #ifdef's, but that's not very clever.

You could use a module parameter, for example vid=0 not to use the GPIO
pins and vid=1 to use them in the way you think they are used. This
leaves some place for vid=2, etc... in case new GPIO wirings are
discovered later.

Then you are free to chose whichever default value you think is the
best. I don't have a W83627THF so I can't say.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Question about VID
  2005-05-19  6:24 Question about VID Mark M. Hoffman
                   ` (3 preceding siblings ...)
  2005-05-19  6:24 ` Mark Studebaker
@ 2005-05-19  6:24 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors


> just assume the vid pins are always there.
> If they aren't hooked up, it's no different than for any
> other chip or driver.

But if the pins are connected to something else, we'll be claiming a bad
VID value, which is IMHO worst that clearly stating that VID isn't
supported for that chip.

> vid is only used for calculation of limits in sensors.conf.
> how many people bother to program the correct "VRM" specification
> setting anyway, I don't know, probably isn't that high...

Maybe more than you think. From my own experience, few people read docs,
but much more do read and tweek config files. And I also guess that our
users are somewhat more experienced ans serious than the average. If
they made it through the installation process, which isn't an easy one,
and the detection process, and are finally getting some results, I think
they are very likely to try fixing incorrect values, either by
themselves or by asking for help on the mailing-list.

-- 
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Question about VID
  2005-05-19  6:24 Question about VID Mark M. Hoffman
                   ` (2 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Mark Studebaker
  2005-05-19  6:24 ` Jean Delvare
  4 siblings, 0 replies; 6+ messages in thread
From: Mark Studebaker @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

but the only way to tell if the pins are used for VID is to
enable VID and see what the value is.
(oops, there is one way, look at the GPIO direction
programming, if they are set for outputs you know they
aren't VID..)

As I said, the driver doesn't use the VID value internally,
only libsensors may use it for calculations of limits,
so it does no harm.

If the VID is bogus, the user can take care of it by ignoring
it in sensors.conf. Why bother telling the driver not
to return the values of the GPIO inputs?


Jean Delvare wrote:
> 
> > just assume the vid pins are always there.
> > If they aren't hooked up, it's no different than for any
> > other chip or driver.
> 
> But if the pins are connected to something else, we'll be claiming a bad
> VID value, which is IMHO worst that clearly stating that VID isn't
> supported for that chip.
> 
> > vid is only used for calculation of limits in sensors.conf.
> > how many people bother to program the correct "VRM" specification
> > setting anyway, I don't know, probably isn't that high...
> 
> Maybe more than you think. From my own experience, few people read docs,
> but much more do read and tweek config files. And I also guess that our
> users are somewhat more experienced ans serious than the average. If
> they made it through the installation process, which isn't an easy one,
> and the detection process, and are finally getting some results, I think
> they are very likely to try fixing incorrect values, either by
> themselves or by asking for help on the mailing-list.
> 
> --
> Jean Delvare
> http://www.ensicaen.ismra.fr/~delvare/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Question about VID
  2005-05-19  6:24 Question about VID Mark M. Hoffman
  2005-05-19  6:24 ` Mark Studebaker
@ 2005-05-19  6:24 ` Philip Pokorny
  2005-05-19  6:24 ` Jean Delvare
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Philip Pokorny @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

There is something like this in the ADM1026 driver.

The pins are actually GPIO, but the data sheet shows them "typically" 
connected as VID.  So the driver makes a "rash" assumption that they are 
connected as suggested on the datasheet.

But I did two other things.  I allowed the VID value to be *written* to 
override the assumed value, and I export the GPIO pins raw as "gpio" so 
that an expression in sensors.conf can set the vid value from the gpio 
value by bitsifts (multiply and divide by 2) and masking.

:v)

Mark Studebaker wrote:

> just assume the vid pins are always there.
> If they aren't hooked up, it's no different than for any
> other chip or driver.
> vid is only used for calculation of limits in sensors.conf.
> how many people bother to program the correct "VRM" specification
> setting anyway, I don't know, probably isn't that high...
>
> Mark M. Hoffman wrote:
>
>> Hello everyone:
>>
>> Looks like w83627thf doesn't have dedicated VID pins.  But, it has a
>> few GPIO pins... some of which just happen to be the same pin #s as
>> the dedicated VID pins on the w83627hf.  Haven't tried it yet, but I'd
>> bet money that's how it's wired too.  Any clever ideas about how to
>> support something like that in the driver?  I'm thinking of just using
>> some #ifdef's, but that's not very clever.
>>
>> Regards,
>>
>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-05-19  6:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 Question about VID Mark M. Hoffman
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` Philip Pokorny
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` Jean Delvare

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.