All of lore.kernel.org
 help / color / mirror / Atom feed
* LM87 support in LK2.6
@ 2005-05-19  6:24 Jeff Oliver
  2005-05-19  6:24 ` David Goodenough
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Jeff Oliver @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

I searched through the mail archives and found that the LM87 chip had no 
plans to convert to the 2.6 kernel at the moment.  First I wanted to get 
an update on that status,  and second, I'm going to be using it on a 
project im working on, so if there is nothing ported at the moment, I'll 
probably end up porting it myself.  Actually, the port is in progress, 
unfortunately, I don't have my hardware to test it out on yet.  The 
driver porting directions have been very helpful on getting started on 
the conversion. 

Thanks

Jeffrey Oliver






Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Matsushita Avionics 
Systems Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission 



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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
  2005-05-19  6:24 ` David Goodenough
  2005-05-19  6:24 ` David Goodenough
@ 2005-05-19  6:24 ` Jean Delvare
  2005-05-19  6:24 ` Jeff Oliver
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

> I searched through the mail archives and found that the LM87 chip had
> no plans to convert to the 2.6 kernel at the moment.  First I wanted
> to get an update on that status,  and second, I'm going to be using it
> on a project im working on, so if there is nothing ported at the
> moment, I'll probably end up porting it myself.  Actually, the port is
> in progress, unfortunately, I don't have my hardware to test it out on
> yet.  The driver porting directions have been very helpful on getting
> started on the conversion. 

Two other persons have deplored the lack of support of the LM87 in
Linux 2.6, I just invited them into this thread ;)

I invite you to work together so as not to waste your time and instead
share your forces on porting the driver. I think David was wanting to
port the driver as well, while Chris was "only" wanting to test it once
done.

If you have questions while porting the driver, just ask on this list.

Once the port is considered ready, post it here in the form of a patch
against the latest -mm kernel, and we (most likely I) will review it.

Thanks.

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

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
@ 2005-05-19  6:24 ` David Goodenough
  2005-05-19  6:24 ` David Goodenough
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: David Goodenough @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

On Thursday 01 April 2004 20:30, Jean Delvare wrote:
> > I searched through the mail archives and found that the LM87 chip had
> > no plans to convert to the 2.6 kernel at the moment.  First I wanted
> > to get an update on that status,  and second, I'm going to be using it
> > on a project im working on, so if there is nothing ported at the
> > moment, I'll probably end up porting it myself.  Actually, the port is
> > in progress, unfortunately, I don't have my hardware to test it out on
> > yet.  The driver porting directions have been very helpful on getting
> > started on the conversion.
>
> Two other persons have deplored the lack of support of the LM87 in
> Linux 2.6, I just invited them into this thread ;)
>
> I invite you to work together so as not to waste your time and instead
> share your forces on porting the driver. I think David was wanting to
> port the driver as well, while Chris was "only" wanting to test it once
> done.
>
> If you have questions while porting the driver, just ask on this list.
>
> Once the port is considered ready, post it here in the form of a patch
> against the latest -mm kernel, and we (most likely I) will review it.
>
> Thanks.

I am going to do some work on this next week (I am going skiing, and I will 
do this in the evening).  I hope to come back with something that at least
compiles cleanly.  I will not have the kit to test with me on the trip, but I 
will start testing when I get back.  I have no idea now well connected I
will be next week, so if I hit a problem it may have to wait until I return.

I am working against a Debianised 2.6.4 kernel in the first instance,
I will move to a later one when I have done the basic conversion.

David

BTW, I am still only getting mail that is explictly addressed to me, not mail
that is for the list in general.

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (2 preceding siblings ...)
  2005-05-19  6:24 ` Jean Delvare
@ 2005-05-19  6:24 ` Jeff Oliver
  2005-05-19  6:25 ` David Goodenough
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jeff Oliver @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

I already have the driver compiling clean...after spending a day with 
the conversion document and the old 2.4 driver.  I have not yet tested 
it since I dont have my hardware yet.  I can send you guys the driver if 
you'd like to check it out and play with it.  I'm going on vacation as 
well, and hope to have hardware when I get back late next week.

I've been working against the stock 2.6.4 kernel.  Moving to a newer 
kernel can be done when the first port is verified.

Jeff Oliver

P.S. Can I be added to the mailing list as well?


David Goodenough wrote:

>On Thursday 01 April 2004 20:30, Jean Delvare wrote:
>  
>
>>>I searched through the mail archives and found that the LM87 chip had
>>>no plans to convert to the 2.6 kernel at the moment.  First I wanted
>>>to get an update on that status,  and second, I'm going to be using it
>>>on a project im working on, so if there is nothing ported at the
>>>moment, I'll probably end up porting it myself.  Actually, the port is
>>>in progress, unfortunately, I don't have my hardware to test it out on
>>>yet.  The driver porting directions have been very helpful on getting
>>>started on the conversion.
>>>      
>>>
>>Two other persons have deplored the lack of support of the LM87 in
>>Linux 2.6, I just invited them into this thread ;)
>>
>>I invite you to work together so as not to waste your time and instead
>>share your forces on porting the driver. I think David was wanting to
>>port the driver as well, while Chris was "only" wanting to test it once
>>done.
>>
>>If you have questions while porting the driver, just ask on this list.
>>
>>Once the port is considered ready, post it here in the form of a patch
>>against the latest -mm kernel, and we (most likely I) will review it.
>>
>>Thanks.
>>    
>>
>
>I am going to do some work on this next week (I am going skiing, and I will 
>do this in the evening).  I hope to come back with something that at least
>compiles cleanly.  I will not have the kit to test with me on the trip, but I 
>will start testing when I get back.  I have no idea now well connected I
>will be next week, so if I hit a problem it may have to wait until I return.
>
>I am working against a Debianised 2.6.4 kernel in the first instance,
>I will move to a later one when I have done the basic conversion.
>
>David
>
>BTW, I am still only getting mail that is explictly addressed to me, not mail
>that is for the list in general
>
>  
>




Disclaimer: The information contained in this transmission, including any 
attachments, may contain confidential information of Matsushita Avionics 
Systems Corporation.  This transmission is intended only for the use of the 
addressee(s) listed above.  Unauthorized review, dissemination or other use 
of the information contained in this transmission is strictly prohibited. 
If you have received this transmission in error or have reason to believe 
you are not authorized to receive it, please notify the sender by return 
email and promptly delete the transmission 



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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
  2005-05-19  6:24 ` David Goodenough
@ 2005-05-19  6:24 ` David Goodenough
  2005-05-19  6:24 ` Jean Delvare
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: David Goodenough @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Jeff,

Could you send me the driver and I will give it a go if I get time before I go 
skiing, otherwise I will do it as soon as I get back.  That was I can spend
time on the i2c_nscacb driver instead of duplicating your effort.

David

On Thursday 01 April 2004 23:33, Jeff Oliver wrote:
> I already have the driver compiling clean...after spending a day with
> the conversion document and the old 2.4 driver.  I have not yet tested
> it since I dont have my hardware yet.  I can send you guys the driver if
> you'd like to check it out and play with it.  I'm going on vacation as
> well, and hope to have hardware when I get back late next week.
>
> I've been working against the stock 2.6.4 kernel.  Moving to a newer
> kernel can be done when the first port is verified.
>
> Jeff Oliver
>
> P.S. Can I be added to the mailing list as well?
>
> David Goodenough wrote:
> >On Thursday 01 April 2004 20:30, Jean Delvare wrote:
> >>>I searched through the mail archives and found that the LM87 chip had
> >>>no plans to convert to the 2.6 kernel at the moment.  First I wanted
> >>>to get an update on that status,  and second, I'm going to be using it
> >>>on a project im working on, so if there is nothing ported at the
> >>>moment, I'll probably end up porting it myself.  Actually, the port is
> >>>in progress, unfortunately, I don't have my hardware to test it out on
> >>>yet.  The driver porting directions have been very helpful on getting
> >>>started on the conversion.
> >>
> >>Two other persons have deplored the lack of support of the LM87 in
> >>Linux 2.6, I just invited them into this thread ;)
> >>
> >>I invite you to work together so as not to waste your time and instead
> >>share your forces on porting the driver. I think David was wanting to
> >>port the driver as well, while Chris was "only" wanting to test it once
> >>done.
> >>
> >>If you have questions while porting the driver, just ask on this list.
> >>
> >>Once the port is considered ready, post it here in the form of a patch
> >>against the latest -mm kernel, and we (most likely I) will review it.
> >>
> >>Thanks.
> >
> >I am going to do some work on this next week (I am going skiing, and I
> > will do this in the evening).  I hope to come back with something that at
> > least compiles cleanly.  I will not have the kit to test with me on the
> > trip, but I will start testing when I get back.  I have no idea now well
> > connected I will be next week, so if I hit a problem it may have to wait
> > until I return.
> >
> >I am working against a Debianised 2.6.4 kernel in the first instance,
> >I will move to a later one when I have done the basic conversion.
> >
> >David
> >
> >BTW, I am still only getting mail that is explictly addressed to me, not
> > mail that is for the list in general
>
> Disclaimer: The information contained in this transmission, including any
> attachments, may contain confidential information of Matsushita Avionics
> Systems Corporation.  This transmission is intended only for the use of the
> addressee(s) listed above.  Unauthorized review, dissemination or other use
> of the information contained in this transmission is strictly prohibited.
> If you have received this transmission in error or have reason to believe
> you are not authorized to receive it, please notify the sender by return
> email and promptly delete the transmission

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (3 preceding siblings ...)
  2005-05-19  6:24 ` Jeff Oliver
@ 2005-05-19  6:25 ` David Goodenough
  2005-05-19  6:25 ` Jean Delvare
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: David Goodenough @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Jeff,

I finally got around to testing your LM87 code, and I am having a few 
problems.

Let me describe my hardware environment first as it may help.  This 
LM87 is on a Microtik Routerboard 230, which uses a SC1100 system
on a chip unit.  I am therefore using the scx200_acb driver (as 
patched in the LM77 discussion thread to enable hardware
monitoring device detection).

sensors-detect finds the ACB buss, and finds the LM87.  So I then
load the lm87 module but then nothing.  sensors finds the other
device (eeprom) and correctly reports the installed memory size,
but nothing from the LM87.

Any ideas as to where to start looking?

David

On Friday 02 April 2004 19:06, you wrote:
> Sure, here's the patch.
>
> Let me know how it works...
>
> Jeff
>
> David Goodenough wrote:
> >Jeff,
> >
> >Could you send me the driver and I will give it a go if I get time before
> > I go skiing, otherwise I will do it as soon as I get back.  That was I
> > can spend time on the i2c_nscacb driver instead of duplicating your
> > effort.
> >
> >David
> >
> >On Thursday 01 April 2004 23:33, Jeff Oliver wrote:
> >>I already have the driver compiling clean...after spending a day with
> >>the conversion document and the old 2.4 driver.  I have not yet tested
> >>it since I dont have my hardware yet.  I can send you guys the driver if
> >>you'd like to check it out and play with it.  I'm going on vacation as
> >>well, and hope to have hardware when I get back late next week.
> >>
> >>I've been working against the stock 2.6.4 kernel.  Moving to a newer
> >>kernel can be done when the first port is verified.
> >>
> >>Jeff Oliver
> >>
> >>P.S. Can I be added to the mailing list as well?
> >>
> >>David Goodenough wrote:
> >>>On Thursday 01 April 2004 20:30, Jean Delvare wrote:
> >>>>>I searched through the mail archives and found that the LM87 chip had
> >>>>>no plans to convert to the 2.6 kernel at the moment.  First I wanted
> >>>>>to get an update on that status,  and second, I'm going to be using it
> >>>>>on a project im working on, so if there is nothing ported at the
> >>>>>moment, I'll probably end up porting it myself.  Actually, the port is
> >>>>>in progress, unfortunately, I don't have my hardware to test it out on
> >>>>>yet.  The driver porting directions have been very helpful on getting
> >>>>>started on the conversion.
> >>>>
> >>>>Two other persons have deplored the lack of support of the LM87 in
> >>>>Linux 2.6, I just invited them into this thread ;)
> >>>>
> >>>>I invite you to work together so as not to waste your time and instead
> >>>>share your forces on porting the driver. I think David was wanting to
> >>>>port the driver as well, while Chris was "only" wanting to test it once
> >>>>done.
> >>>>
> >>>>If you have questions while porting the driver, just ask on this list.
> >>>>
> >>>>Once the port is considered ready, post it here in the form of a patch
> >>>>against the latest -mm kernel, and we (most likely I) will review it.
> >>>>
> >>>>Thanks.
> >>>
> >>>I am going to do some work on this next week (I am going skiing, and I
> >>>will do this in the evening).  I hope to come back with something that
> >>> at least compiles cleanly.  I will not have the kit to test with me on
> >>> the trip, but I will start testing when I get back.  I have no idea now
> >>> well connected I will be next week, so if I hit a problem it may have
> >>> to wait until I return.
> >>>
> >>>I am working against a Debianised 2.6.4 kernel in the first instance,
> >>>I will move to a later one when I have done the basic conversion.
> >>>
> >>>David
> >>>
> >>>BTW, I am still only getting mail that is explictly addressed to me, not
> >>>mail that is for the list in general
> >>
> >>Disclaimer: The information contained in this transmission, including any
> >>attachments, may contain confidential information of Matsushita Avionics
> >>Systems Corporation.  This transmission is intended only for the use of
> >> the addressee(s) listed above.  Unauthorized review, dissemination or
> >> other use of the information contained in this transmission is strictly
> >> prohibited. If you have received this transmission in error or have
> >> reason to believe you are not authorized to receive it, please notify
> >> the sender by return email and promptly delete the transmission
>
> Disclaimer: The information contained in this transmission, including any
> attachments, may contain confidential information of Matsushita Avionics
> Systems Corporation.  This transmission is intended only for the use of the
> addressee(s) listed above.  Unauthorized review, dissemination or other use
> of the information contained in this transmission is strictly prohibited.
> If you have received this transmission in error or have reason to believe
> you are not authorized to receive it, please notify the sender by return
> email and promptly delete the transmission

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (6 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` David Goodenough
  2005-05-19  6:25 ` David Goodenough
  8 siblings, 0 replies; 10+ messages in thread
From: David Goodenough @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Right, I now have the code compiled and installed on a Debian unstable
2.6.7 kernel system, with the latest lm87 code with the scx200_acb
patch and all, and it loads and sensors finds it.

The output I get ( and I have no way to verify whether those numbers
that are there are correct is:-

<<<<<<<<<<<<<<<<<<<
david@microtik:-$sensors
eeprom-i2c-1-50
Adapter: SCX200 ACB1
Memory type:		SDR SDRAM DIMM
Memory size(MB):	64

lm87-i2c-1-2e
Adapter: SCX200 ACB1
Error: Can't get IN1 data!
Error: Can't get IN2 data!
Error: Can't get IN3 data!
fan1:	0 RPM (min = -1 RPM, div = 2)		ALARM
fan2:	0 RPM (min = -1 RPM, div = 2)		ALARM
temp1:	+37C  (low = 	+0 C, high = 	+0)	ALARM
Error: Can't get TEMP2 data
<<<<<<<<<<<<<<<<<<<<

Now looking at this the fan speeds of 0 are right, this system has
no fans.  Why an alarm is thought to be necessary when the min = -1
and the value is 0 I am uncertain.

For temp1 the value is plausable, but the low and high values are
obviously wrong (at least the high one).

The documentation is wonderfully vague as to what sensors there
are, and there is no BIOS function to read and display them as far
as I can see.  However it does say:-

Temperative sensors: CPU area, PCI area, LM87 health monitoring area
Voltage Monitor: CPU core, +3.3V +5V +12V voltage monitoring

This would suggest that there should be four voltages and three 
temperatures.  We seem to have just one temperature.

Looking at the data in /sys/bus/i2c/device/1-002e I get a slightly
different picture.

Ignoring the ones I am not expecting:-
                       input	min		max
in0			0		0		0
in1			1800	0		0
in2			3300	0		0
in3			5000	0		0
in4			12125	0		0
temp1		37000	0		0
temp2		0		0		0
temp3		31000	0		0

For completeness the vrm value is 82, vid is 0, analog_out is 255,
detach_state is 0 and alarms is 4606.

Now this looks as though in0 is unused, in1 is the core, in2 is +3,
int3 is +5 and in4 is +12, temp1 is the CPU temperature and temp3
is the PCI area temperature.  Why sensors could not read IN1, IN2
and IN3 confuses me.

Where do the min and max values come from, if from the chip then
there is something amis, if from a control file obviously I do not have
that file installed (correctly).

Any thoughts?

David

On Friday 02 July 2004 10:41, David Goodenough wrote:
> Jeff,
>
> I finally got around to testing your LM87 code, and I am having a few
> problems.
>
> Let me describe my hardware environment first as it may help.  This
> LM87 is on a Microtik Routerboard 230, which uses a SC1100 system
> on a chip unit.  I am therefore using the scx200_acb driver (as
> patched in the LM77 discussion thread to enable hardware
> monitoring device detection).
>
> sensors-detect finds the ACB buss, and finds the LM87.  So I then
> load the lm87 module but then nothing.  sensors finds the other
> device (eeprom) and correctly reports the installed memory size,
> but nothing from the LM87.
>
> Any ideas as to where to start looking?
>
> David
>
> On Friday 02 April 2004 19:06, you wrote:
> > Sure, here's the patch.
> >
> > Let me know how it works...
> >
> > Jeff
> >
> > David Goodenough wrote:
> > >Jeff,
> > >
> > >Could you send me the driver and I will give it a go if I get time
> > > before I go skiing, otherwise I will do it as soon as I get back.  That
> > > was I can spend time on the i2c_nscacb driver instead of duplicating
> > > your effort.
> > >
> > >David
> > >
> > >On Thursday 01 April 2004 23:33, Jeff Oliver wrote:
> > >>I already have the driver compiling clean...after spending a day with
> > >>the conversion document and the old 2.4 driver.  I have not yet tested
> > >>it since I dont have my hardware yet.  I can send you guys the driver
> > >> if you'd like to check it out and play with it.  I'm going on vacation
> > >> as well, and hope to have hardware when I get back late next week.
> > >>
> > >>I've been working against the stock 2.6.4 kernel.  Moving to a newer
> > >>kernel can be done when the first port is verified.
> > >>
> > >>Jeff Oliver
> > >>
> > >>P.S. Can I be added to the mailing list as well?
> > >>
> > >>David Goodenough wrote:
> > >>>On Thursday 01 April 2004 20:30, Jean Delvare wrote:
> > >>>>>I searched through the mail archives and found that the LM87 chip
> > >>>>> had no plans to convert to the 2.6 kernel at the moment.  First I
> > >>>>> wanted to get an update on that status,  and second, I'm going to
> > >>>>> be using it on a project im working on, so if there is nothing
> > >>>>> ported at the moment, I'll probably end up porting it myself. 
> > >>>>> Actually, the port is in progress, unfortunately, I don't have my
> > >>>>> hardware to test it out on yet.  The driver porting directions have
> > >>>>> been very helpful on getting started on the conversion.
> > >>>>
> > >>>>Two other persons have deplored the lack of support of the LM87 in
> > >>>>Linux 2.6, I just invited them into this thread ;)
> > >>>>
> > >>>>I invite you to work together so as not to waste your time and
> > >>>> instead share your forces on porting the driver. I think David was
> > >>>> wanting to port the driver as well, while Chris was "only" wanting
> > >>>> to test it once done.
> > >>>>
> > >>>>If you have questions while porting the driver, just ask on this
> > >>>> list.
> > >>>>
> > >>>>Once the port is considered ready, post it here in the form of a
> > >>>> patch against the latest -mm kernel, and we (most likely I) will
> > >>>> review it.
> > >>>>
> > >>>>Thanks.
> > >>>
> > >>>I am going to do some work on this next week (I am going skiing, and I
> > >>>will do this in the evening).  I hope to come back with something that
> > >>> at least compiles cleanly.  I will not have the kit to test with me
> > >>> on the trip, but I will start testing when I get back.  I have no
> > >>> idea now well connected I will be next week, so if I hit a problem it
> > >>> may have to wait until I return.
> > >>>
> > >>>I am working against a Debianised 2.6.4 kernel in the first instance,
> > >>>I will move to a later one when I have done the basic conversion.
> > >>>
> > >>>David
> > >>>
> > >>>BTW, I am still only getting mail that is explictly addressed to me,
> > >>> not mail that is for the list in general
> > >>
> > >>Disclaimer: The information contained in this transmission, including
> > >> any attachments, may contain confidential information of Matsushita
> > >> Avionics Systems Corporation.  This transmission is intended only for
> > >> the use of the addressee(s) listed above.  Unauthorized review,
> > >> dissemination or other use of the information contained in this
> > >> transmission is strictly prohibited. If you have received this
> > >> transmission in error or have reason to believe you are not authorized
> > >> to receive it, please notify the sender by return email and promptly
> > >> delete the transmission
> >
> > Disclaimer: The information contained in this transmission, including any
> > attachments, may contain confidential information of Matsushita Avionics
> > Systems Corporation.  This transmission is intended only for the use of
> > the addressee(s) listed above.  Unauthorized review, dissemination or
> > other use of the information contained in this transmission is strictly
> > prohibited. If you have received this transmission in error or have
> > reason to believe you are not authorized to receive it, please notify the
> > sender by return email and promptly delete the transmission

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (4 preceding siblings ...)
  2005-05-19  6:25 ` David Goodenough
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` Jean Delvare
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

Hi David,

> Right, I now have the code compiled and installed on a Debian unstable
> 2.6.7 kernel system, with the latest lm87 code with the scx200_acb
> patch and all, and it loads and sensors finds it.
> 
> The output I get ( and I have no way to verify whether those numbers
> that are there are correct is:-
> 
> <<<<<<<<<<<<<<<<<<<
> david@microtik:-$sensors
> eeprom-i2c-1-50
> Adapter: SCX200 ACB1
> Memory type:		SDR SDRAM DIMM
> Memory size(MB):	64
> 
> lm87-i2c-1-2e
> Adapter: SCX200 ACB1
> Error: Can't get IN1 data!
> Error: Can't get IN2 data!
> Error: Can't get IN3 data!
> fan1:	0 RPM (min = -1 RPM, div = 2)		ALARM
> fan2:	0 RPM (min = -1 RPM, div = 2)		ALARM
> temp1:	+37C  (low = 	+0 C, high = 	+0)	ALARM
> Error: Can't get TEMP2 data
> <<<<<<<<<<<<<<<<<<<<
> 
> Now looking at this the fan speeds of 0 are right, this system has
> no fans.  Why an alarm is thought to be necessary when the min = -1
> and the value is 0 I am uncertain.

Alarms are flags set by the chip, the driver simply reports them. Maybe
the chip simply doesn't like limit registers being set to 0 (translated
to -1 by the driver) and would prefer 255 (0 or the lowest possible
number for the driver). Try setting these limits to 0 (either using
/etc/sensors.conf + "sensors -s") or by writing directly to the sysfs
files and see if it helps.

> For temp1 the value is plausable, but the low and high values are
> obviously wrong (at least the high one).

You can try setting the limits yourself for these as well.

> The documentation is wonderfully vague as to what sensors there
> are, and there is no BIOS function to read and display them as far
> as I can see.  However it does say:-
> 
> Temperative sensors: CPU area, PCI area, LM87 health monitoring area
> Voltage Monitor: CPU core, +3.3V +5V +12V voltage monitoring
> 
> This would suggest that there should be four voltages and three 
> temperatures.  We seem to have just one temperature.
> 
> Looking at the data in /sys/bus/i2c/device/1-002e I get a slightly
> different picture.
> 
> Ignoring the ones I am not expecting:-
>                        input	min		max
> in0			0		0		0
> in1			1800	0		0
> in2			3300	0		0
> in3			5000	0		0
> in4			12125	0		0
> temp1		37000	0		0
> temp2		0		0		0
> temp3		31000	0		0
> 
> For completeness the vrm value is 82, vid is 0, analog_out is 255,
> detach_state is 0 and alarms is 4606.
> 
> Now this looks as though in0 is unused, in1 is the core, in2 is +3,
> int3 is +5 and in4 is +12, temp1 is the CPU temperature and temp3
> is the PCI area temperature.  Why sensors could not read IN1, IN2
> and IN3 confuses me.

Because (still) libsensors needs to know about the chips and the lm87
driver was only ported to Linux 2.6 recently. Feature names have changed
since 2.4 in the holy name of standardization. Libsensors try to figure
our the new names but when the old ones were chosed in a non standard
way, it fails.

I just commited a change to libsensors to solve the problem. You should
be able to read all values now.

Note that in0, in5 and temp3 share pins, according to the LM87 docs. In
your case, the chip should be configured to use temp3 (and neither in0
nor in5). I believe that the BIOS should have configured it properly and
the lm87 driver should not have to change that (although I guess that
the 2.4 driver was most likely setting an arbitrary mode).

Watch for ignore lines in sensors.conf. If you can't seem to see any
given value, it may just be because of an ignore statement in
/etc/sensors.conf.

> Where do the min and max values come from, if from the chip then
> there is something amis, if from a control file obviously I do not
> have that file installed (correctly).

Limits are programmable regiters inside the chip. Usually they default
to sensible values, but that's not the case here. Just tweak the limits
in /etc/sensors.conf and apply with "sensors -s".

> Any thoughts?

Well I guess it should be better now, though most probably not perfect.
Libsensors may need further tweaking. And the new lm87 driver itself may
need some tweaking.

Let us know how it goes with the new libsensors and you having
additional knowledge about alarms and limits.

-- 
Jean Delvare
http://khali.linux-fr.org/

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (7 preceding siblings ...)
  2005-05-19  6:25 ` David Goodenough
@ 2005-05-19  6:25 ` David Goodenough
  8 siblings, 0 replies; 10+ messages in thread
From: David Goodenough @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

What does sensors mean when it says:-

flex scanner jammed

I gen this when running sensors -s to try to set the values
from /etc/sensors.conf.  Also when I try setting the values
by hand (for example the temp1 maximum) using the /sys
files, it has no effect.

David

On Wednesday 07 July 2004 15:18, Jean Delvare wrote:
> Hi David,
>
> > Right, I now have the code compiled and installed on a Debian unstable
> > 2.6.7 kernel system, with the latest lm87 code with the scx200_acb
> > patch and all, and it loads and sensors finds it.
> >
> > The output I get ( and I have no way to verify whether those numbers
> > that are there are correct is:-
> >
> > <<<<<<<<<<<<<<<<<<<
> > david@microtik:-$sensors
> > eeprom-i2c-1-50
> > Adapter: SCX200 ACB1
> > Memory type:		SDR SDRAM DIMM
> > Memory size(MB):	64
> >
> > lm87-i2c-1-2e
> > Adapter: SCX200 ACB1
> > Error: Can't get IN1 data!
> > Error: Can't get IN2 data!
> > Error: Can't get IN3 data!
> > fan1:	0 RPM (min = -1 RPM, div = 2)		ALARM
> > fan2:	0 RPM (min = -1 RPM, div = 2)		ALARM
> > temp1:	+37C  (low = 	+0 C, high = 	+0)	ALARM
> > Error: Can't get TEMP2 data
> > <<<<<<<<<<<<<<<<<<<<
> >
> > Now looking at this the fan speeds of 0 are right, this system has
> > no fans.  Why an alarm is thought to be necessary when the min = -1
> > and the value is 0 I am uncertain.
>
> Alarms are flags set by the chip, the driver simply reports them. Maybe
> the chip simply doesn't like limit registers being set to 0 (translated
> to -1 by the driver) and would prefer 255 (0 or the lowest possible
> number for the driver). Try setting these limits to 0 (either using
> /etc/sensors.conf + "sensors -s") or by writing directly to the sysfs
> files and see if it helps.
>
> > For temp1 the value is plausable, but the low and high values are
> > obviously wrong (at least the high one).
>
> You can try setting the limits yourself for these as well.
>
> > The documentation is wonderfully vague as to what sensors there
> > are, and there is no BIOS function to read and display them as far
> > as I can see.  However it does say:-
> >
> > Temperative sensors: CPU area, PCI area, LM87 health monitoring area
> > Voltage Monitor: CPU core, +3.3V +5V +12V voltage monitoring
> >
> > This would suggest that there should be four voltages and three
> > temperatures.  We seem to have just one temperature.
> >
> > Looking at the data in /sys/bus/i2c/device/1-002e I get a slightly
> > different picture.
> >
> > Ignoring the ones I am not expecting:-
> >                        input	min		max
> > in0			0		0		0
> > in1			1800	0		0
> > in2			3300	0		0
> > in3			5000	0		0
> > in4			12125	0		0
> > temp1		37000	0		0
> > temp2		0		0		0
> > temp3		31000	0		0
> >
> > For completeness the vrm value is 82, vid is 0, analog_out is 255,
> > detach_state is 0 and alarms is 4606.
> >
> > Now this looks as though in0 is unused, in1 is the core, in2 is +3,
> > int3 is +5 and in4 is +12, temp1 is the CPU temperature and temp3
> > is the PCI area temperature.  Why sensors could not read IN1, IN2
> > and IN3 confuses me.
>
> Because (still) libsensors needs to know about the chips and the lm87
> driver was only ported to Linux 2.6 recently. Feature names have changed
> since 2.4 in the holy name of standardization. Libsensors try to figure
> our the new names but when the old ones were chosed in a non standard
> way, it fails.
>
> I just commited a change to libsensors to solve the problem. You should
> be able to read all values now.
>
> Note that in0, in5 and temp3 share pins, according to the LM87 docs. In
> your case, the chip should be configured to use temp3 (and neither in0
> nor in5). I believe that the BIOS should have configured it properly and
> the lm87 driver should not have to change that (although I guess that
> the 2.4 driver was most likely setting an arbitrary mode).
>
> Watch for ignore lines in sensors.conf. If you can't seem to see any
> given value, it may just be because of an ignore statement in
> /etc/sensors.conf.
>
> > Where do the min and max values come from, if from the chip then
> > there is something amis, if from a control file obviously I do not
> > have that file installed (correctly).
>
> Limits are programmable regiters inside the chip. Usually they default
> to sensible values, but that's not the case here. Just tweak the limits
> in /etc/sensors.conf and apply with "sensors -s".
>
> > Any thoughts?
>
> Well I guess it should be better now, though most probably not perfect.
> Libsensors may need further tweaking. And the new lm87 driver itself may
> need some tweaking.
>
> Let us know how it goes with the new libsensors and you having
> additional knowledge about alarms and limits.

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

* LM87 support in LK2.6
  2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
                   ` (5 preceding siblings ...)
  2005-05-19  6:25 ` Jean Delvare
@ 2005-05-19  6:25 ` Jean Delvare
  2005-05-19  6:25 ` David Goodenough
  2005-05-19  6:25 ` David Goodenough
  8 siblings, 0 replies; 10+ messages in thread
From: Jean Delvare @ 2005-05-19  6:25 UTC (permalink / raw)
  To: lm-sensors

> What does sensors mean when it says:-
> 
> flex scanner jammed

Typically this means that the sensors.conf file has something sensors
doesn't like or recognize. It happens when one uses a new configuration
with an old version of libsensors, for example.

> I gen this when running sensors -s to try to set the values
> from /etc/sensors.conf.

Try starting from the default configuration file again. If you hit the
problem again, try locating the line which causes it. Debugging that
kind of things isn't easy. You may appreciate the help of strace.

> Also when I try setting the values by hand (for example the temp1
> maximum) using the /sys files, it has no effect.

It's probably something different. I'd suspect that the driver isn't
doing its job properly. Maybe the feature is simply not implemented for
now? I'd need to see the code to tell you more.

-- 
Jean Delvare
http://khali.linux-fr.org/

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

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

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 LM87 support in LK2.6 Jeff Oliver
2005-05-19  6:24 ` David Goodenough
2005-05-19  6:24 ` David Goodenough
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Jeff Oliver
2005-05-19  6:25 ` David Goodenough
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` David Goodenough
2005-05-19  6:25 ` David Goodenough

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.