All of lore.kernel.org
 help / color / mirror / Atom feed
From: bmeier@infovia.com.ar (Beat Meier)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] lm77 driver locks up with kernel-2.6.12
Date: Tue, 23 Aug 2005 21:44:46 +0000	[thread overview]
Message-ID: <430B7C64.7060301@infovia.com.ar> (raw)
In-Reply-To: <43027C3E.6020309@infovia.com.ar>

Rudolf Marek wrote:

>Hi again,
>
>It seems is a definetly combination of HW and bus driver problems.
>
>Now a little excercise:
>
>1) cold boot the device
>2) modprobe scx200_acb
>3) modprobe i2c-dev
>3) i2cdump -y 0 0x4b b
> Try several times dumping in byte mode. Will the transfer be delayted too? I mean does the driver also produce the messages to syslog while in bytemode?
>
>  
>
BTW: Normaly i2c-dev is not running I've inserted it but there is no 
difference in the output with or without this driver.

After an byte access i.e.

woc4:~# i2cdump -y 0 0x48 b

the temperature is wrong but only the temperature i.e.
  current:4095 low:10 lowHyst:12 high:64 highHist:62 critical:80 
criticalHyst:78
"value 4095 is in fact 4095500 but was divided by 1000"
reading temperature again gives the right value
  current:43 low:10 lowHyst:12 high:64 highHist:62 critical:80 
criticalHyst:78
or if I do a i2cdump -y 0 0x48 w the first read value at 00/0 is XXXX 
which seems
to indicate the same problem (see below output)
After an word access not! (This is always when lm77 is still in good case)

If read in the lm77 manual that the pointer to the register is latched.
Can this be the problem that sometimes the pointer is not explicitly set
(because the drivers knows that it has accessed last time the same
and will not set the pointer?)

This could be the problem because I do not read only temperature but
also limits and hyst. and this are in other registers ...

Ok in fact I do not have any idea whats going on with driver nor
with i2c ...

woc4:~# i2cdump -y 0 0x48 b;i2cdump -y 0 0x48 w;
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 02 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
10: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
20: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
30: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
40: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
50: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
60: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
70: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
80: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
90: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
a0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
b0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
c0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
d0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
e0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?
f0: XX 00 00 XX 00 04 XX 04 XX 00 00 XX 00 04 XX 04    X..X.?X?X..X.?X?

     0,8  1,9  2,a  3,b  4,c  5,d  6,e  7,f
00: XXXX 8000 2000 0005 a000 0004 0004 0004
08: c002 c000 2000 0005 a000 0004 0004 0004
10: c002 c000 2000 0005 a000 0004 0004 0004
18: c002 c000 2000 0005 a000 0004 0004 0004
20: c002 c000 2000 0005 a000 0004 0004 0004
28: c002 c000 2000 0005 a000 0004 0004 0004
30: c002 c000 2000 0005 a000 0004 0004 0004
38: c002 c000 2000 0005 a000 0004 0004 0004
40: c002 c000 2000 0005 a000 0004 0004 0004
48: c002 c000 2000 0005 a000 0004 0004 0004
50: c002 c000 2000 0005 a000 0004 0004 0004
58: c002 c000 2000 0005 a000 0004 0004 0004
60: c002 c000 2000 0005 a000 0004 0004 0004
68: c002 c000 2000 0005 a000 0004 0004 0004
70: c002 c000 2000 0005 a000 0004 0004 0004
78: c002 c000 2000 0005 a000 0004 0004 0004
80: c002 c000 2000 0005 a000 0004 0004 0004
88: c002 c000 2000 0005 a000 0004 0004 0004
90: c002 c000 2000 0005 a000 0004 0004 0004
98: c002 c000 2000 0005 a000 0004 0004 0004
a0: c002 c000 2000 0005 a000 0004 0004 0004
a8: c002 c000 2000 0005 a000 0004 0004 0004
b0: c002 c000 2000 0005 a000 0004 0004 0004
b8: c002 c000 2000 0005 a000 0004 0004 0004
c0: c002 c000 2000 0005 a000 0004 0004 0004
c8: c002 c000 2000 0005 a000 0004 0004 0004
d0: c002 c000 2000 0005 a000 0004 0004 0004
d8: c002 c000 2000 0005 a000 0004 0004 0004
e0: c002 c000 2000 0005 a000 0004 0004 0004
e8: c002 c000 2000 0005 a000 0004 0004 0004
f0: c002 c000 2000 0005 a000 0004 0004 0004
f8: c002 c000 2000 0005 a000 0004 0004 0004


      parent reply	other threads:[~2005-08-23 21:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-17  1:54 [lm-sensors] lm77 driver locks up with kernel-2.6.12 Beat Meier
2005-08-19 19:24 ` Rudolf Marek
2005-08-20  2:45 ` Beat Meier
2005-08-20  9:41 ` Rudolf Marek
2005-08-23 21:44 ` Beat Meier [this message]

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=430B7C64.7060301@infovia.com.ar \
    --to=bmeier@infovia.com.ar \
    --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.