Skip to contentSkip to conversation

repost: read the spd on A7V133 | without UTF-8

lm-sensors koko 1 participant 4 messages Mar 31, 2007 – Apr 1, 2007 ACPI

lore
Share & tools
lore

koko

author
#0 lore raw

sorry, damn gmail defaults to UTF-8

rasz@capek:~$ cat /etc/modules
i2c-viapro
eeprom
w83781d
via686a
rasz@capek:~$ lsmod|grep i2
i2c_isa                 6272  2 via686a,w83781d
i2c_viapro             10260  0
i2c_core               23552  6 via686a,w83781d,i2c_isa,eeprom,i2c_viapro,nvidia
rasz@capek:~$ sensors
as99127f-i2c-0-2d
Adapter: SMBus Via Pro adapter at e200
VCore 1:   +1.65 V  (min =  +1.46 V, max =  +1.84 V)
VCore 2:   +0.10 V  (min =  +2.24 V, max =  +2.74 V)       ALARM
+3.3V:     +3.31 V  (min =  +2.96 V, max =  +3.62 V)
+5V:       +4.97 V  (min =  +4.49 V, max =  +5.48 V)
+12V:     +12.04 V  (min =  +9.12 V, max = +13.62 V)
-12V:     -12.65 V  (min = -14.37 V, max =  -9.60 V)
-5V:       -5.15 V  (min =  -6.00 V, max =  -4.00 V)
fan1:        0 RPM  (min =    0 RPM, div = 2)
fan2:        0 RPM  (min = 2836 RPM, div = 2)              ALARM
fan3:        0 RPM  (min =    0 RPM, div = 2)
M/B Temp:    +34°C  (high =  +105°C, hyst =    +0°C)
CPU Temp:  +50.0°C  (high =   +95°C, hyst =   +80°C)          (beep)
temp3:     -31.5°C  (high =  +122°C, hyst =  +121°C)
vid:      +1.650 V  (VRM Version 9.0)
alarms:
beep_enable:
          Sound alarm enabled
rasz@capek:~$ dmesg|grep quir
[   26.785583] PCI quirk: region e200-e27f claimed by vt82c686 HW-mon
[   26.785639] PCI quirk: region e800-e80f claimed by vt82c686 SMB
rasz@capek:~$ cat /proc/ioports
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : 0000:00:04.1
01f0-01f7 : 0000:00:04.1
0376-0376 : 0000:00:04.1
03c0-03df : vga+
03f6-03f6 : 0000:00:04.1
0cf8-0cff : PCI conf1
8000-803f : 0000:00:11.0
  8000-8007 : ide2
  8008-800f : ide3
  8010-803f : PDC20265
8400-8403 : 0000:00:11.0
8800-8807 : 0000:00:11.0
9000-9003 : 0000:00:11.0
  9002-9002 : ide2
9400-9407 : 0000:00:11.0
  9400-9407 : ide2
9800-98ff : 0000:00:0b.0
  9800-98ff : 8139too
a000-a007 : 0000:00:0a.1
a400-a41f : 0000:00:0a.0
  a400-a41f : EMU10K1
d000-d01f : 0000:00:04.3
  d000-d01f : uhci_hcd
d400-d41f : 0000:00:04.2
  d400-d41f : uhci_hcd
d800-d80f : 0000:00:04.1
e200-e27f : 0000:00:04.4
  e200-e207 : vt596_smbus
e400-e47f : motherboard
  e400-e403 : ACPI PM1a_EVT_BLK
  e404-e405 : ACPI PM1a_CNT_BLK
  e408-e40b : ACPI PM_TMR
  e420-e423 : ACPI GPE0_BLK
e800-e80f : 0000:00:04.4
  e800-e80f : motherboard
    e800-e80f : pnp 00:03
rasz@capek:~$ dmesg|grep i2
[   39.886944] i2c_adapter i2c-9191: sensors disabled - enable with
force_addr=0xe200
[   57.766149] **WARNING** I2C adapter driver [NVIDIA i2c adapter 0 at
1:00.0] forgot to specify physical device; fix it!
[   57.766478] **WARNING** I2C adapter driver [NVIDIA i2c adapter 1 at
1:00.0] forgot to specify physical device; fix it!
[   57.766510] **WARNING** I2C adapter driver [NVIDIA i2c adapter 2 at
1:00.0] forgot to specify physical device; fix it!
rasz@capek:~$ ls -l /sys/bus/i2c/drivers/eeprom/
total 0
lrwxrwxrwx 1 root root    0 2007-03-25 22:53 2-0050 ->
../../../../devices/platform/i2c-2/2-0050
--w------- 1 root root 4096 2007-03-25 22:53 bind
lrwxrwxrwx 1 root root    0 2007-03-25 22:53 module -> ../../../../module/eeprom
--w------- 1 root root 4096 2007-03-25 22:53 unbind

2-0050 shows ONLY after I rmmod & modprobe eeprom again, its not there after a boot. Reading anything from i2c-2/2-0050 = system hangs, I suspect its the nvidia thingie or some martian memory space.

So where is my SPD data? :(
Is it under e800? do I have to force_addr=0xe800 some module? and which one?

EDIT: ok, after more investigation.
Under Windows XP reading spd also doesnt work for most programs (cpu-z, spdtool, Thaiphoon) but works in some others (Everest from 2003, sandra from 2003). And here comes the magic. I obtained the newest Everest Ultimate 5.50, ran it, and 'puff smoke sparks fairies and santa clause' every program mentioned earlier as non working started to work after using Everest (I narrowed it to "overclock" tab in Everest - it reads timings and spd info, suspiciously opening only "spd" tab will not trigger 'global spd enable' function).

I made registry dumps in cpu-z before and after, there are 3 diffs:

- = not working spd
+ = working spd

PCI to PCI Bridge
bus 0 (0x00), device 0 (0x00), function 0 (0x00)
Common header

        Vendor ID               0x1106
        Model ID                0x0305
Dump
-       00   06 11 05 03 06 00 10 A2 03 00 00 06 00 00 00 00
+       00   06 11 05 03 06 00 10 22 03 00 00 06 00 00 00 00

this is
[07:7]Þtected Parity Error 0=no error 1=error
no idea why its set, seems irrelevant to spd bug

PCI to ISA Bridge
bus 0 (0x00), device 4 (0x04), function 0 (0x00)
Common header

        Vendor ID               0x1106
        Model ID                0x0686

Dump

-       40   08 41 00 00 00 80 62 E6 01 01 44 00 00 00 00 F3
+       40   08 41 00 00 00 80 62 EE 01 00 44 00 00 00 00 F3

I dont have prc file for this one

USB Controller (UHCI)
bus 0 (0x00), device 4 (0x04), function 3 (0x03)
Common header

        Vendor ID               0x1106
        Model ID                0x3038
Dump
-       40   00 12 03 00 C2 00 30 0C 00 00 00 00 00 00 00 00
+       40   00 12 03 00 C6 00 30 0C 00 00 00 00 00 00 00 00

seems irrelevant.

Another clue - Thaiphoon has "detect all i2c devices" option, running it before gives bogus

Quoted 3 lines

hardware sensor at 2Dh
hardware sensor at 48h
hardware sensor at 49h

after running everest and 'enabling' spd with 'magic' it gives correct

Quoted 3 lines

hardware sensor at 50h
hardware sensor at 51h
hardware sensor at 52h

Is there a way to hijack Everest i2c actions and listen in to see what is that 'magic' it applies to i2c on my board? BTW Everest can run in Wine, maybe I could somehow emulate i2c for it in wine and listen in? What can I do to debug /investigate it further? I really want a working spd. It seems really strange that some programs work while others dont

--
Who logs in to gdm? Not I, said the duck.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

author
#1 lore raw

On 4/1/07, koko <[email protected]> wrote:

more info (trimmed to relevant parts)
================

rasz@capek:/proc/bus/pci/00$ sudo sensors-detect

Next adapter: NVIDIA i2c adapter 2 at 1:00.0
Do you want to scan it? (YES/no/selectively):
Client found at address 0x44
Probing for `Maxim MAX6633/MAX6634/MAX6635'... No

Next adapter: NVIDIA i2c adapter 1 at 1:00.0
Do you want to scan it? (YES/no/selectively):
Client found at address 0x50
Handled by driver eeprom' (already loaded), chip type eeprom'

Next adapter: NVIDIA i2c adapter 0 at 1:00.0
Do you want to scan it? (YES/no/selectively):

Next adapter: SMBus Via Pro adapter at e800
Do you want to scan it? (YES/no/selectively):
Client found at address 0x2d
Handled by driver w83781d' (already loaded), chip type as99127f' Client found at address 0x48
Handled by driver w83781d' (already loaded), chip type as99127f subclient' Client found at address 0x49
Handled by driver w83781d' (already loaded), chip type as99127f subclient'

Probing for `VIA VT82C686 Integrated Sensors'... Success!

    (confidence 9, driver `via686a')

Driver `eeprom' (should be inserted):
Detects correctly:
* Bus `NVIDIA i2c adapter 1 at 1:00.0'
Busdriver `UNKNOWN', I2C address 0x50
Chip `eeprom' (confidence: 6)

EEPROMs are *NOT* sensors! They are data storage chips commonly found on memory modules (SPD), in monitors (EDID), or in some laptops, for example.

Driver `w83781d' (should be inserted):
Detects correctly:
* Bus `SMBus Via Pro adapter at e800'

    Busdriver `i2c-viapro', I2C address 0x2d
    Chip `as99127f' (confidence: 6)
  * Bus `SMBus Via Pro adapter at e800'
    Busdriver `i2c-viapro', I2C address 0x48
    Chip `as99127f subclient' (confidence: 6)
  * Bus `SMBus Via Pro adapter at e800'
    Busdriver `i2c-viapro', I2C address 0x49
    Chip `as99127f subclient' (confidence: 6)

Driver `via686a' (should be inserted):
Detects correctly:
* ISA bus, undetermined address (Busdriver i2c-isa') Chip VIA VT82C686 Integrated Sensors' (confidence: 9)

================

rasz@capek:/proc/bus/pci/00$ sudo i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n]
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          XX XX XX XX XX XX XX XX XX XX XX XX XX
10: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
20: XX XX XX XX XX XX XX XX XX XX XX XX XX UU XX XX
30: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
40: XX XX XX XX XX XX XX XX UU UU XX XX XX XX XX XX
50: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
60: XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
70: XX XX XX XX XX XX XX XX

so all i got under linux without the 'magic' everest hack is 2d 48 49 ill go check linuxbios for spd reading hacks

Signature · 6 lines
Who logs in to gdm? Not I, said the duck.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#2 lore raw
In reply to koko
Quoted 1 line

blabal

ok, I found old topics about Asus IO mux
ten I found SPDINFO.EXE

E:\dane\Testery !\sandra>SPDINFO.EXE 1 a7v
Ctrl 0, SMBus, Sys, IO 0000e800h, Mem 00000000h, Drv Intel PIIX4 SMBus / compati ble, Brd A7V
Mux 0 Asus IO mux, IO 0000e44dh, Ext 4267320

then I found posts about isaset hack, then about i2c-virtual, then I found out that its all abandoned :( blah

Are there any recent boards that require i2c-virtual?

Signature · 6 lines
Who logs in to gdm? Not I, said the duck.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
author
#3 lore raw
Quoted 1 line · koko
Quoted 1 line

blabal

hmmm

Quoted 1 line

Mux 0 Asus IO mux, IO 0000e44dh, Ext 4267320

rasz@capek:~$ cat /proc/ioports|grep e4
e400-e47f : motherboard
  e400-e403 : ACPI PM1a_EVT_BLK
  e404-e405 : ACPI PM1a_CNT_BLK
  e408-e40b : ACPI PM_TMR
  e410-e415 : ACPI CPU throttle
  e420-e423 : ACPI GPE0_BLK

I decompiled ACPI DSDT from my bios and found this :

    OperationRegion (\SGPO, SystemIO, 0xE44C, 0x04)
    Field (SGPO, ByteAcc, NoLock, Preserve)
    {
        GPO0,   1,
                Offset (0x01),
        GPO8,   1,
            ,   2,
        GP11,   1,
                Offset (0x04)
    }

1 is my ACPI broken? it doesnt claim 0xe44d as motherboard resource? Or is Kernel ACPI handling broken? there are other e4xx regions in my DSDT that are not claimed.
OperationRegion (GPOB, SystemIO, 0xE42A, 0x02) OperationRegion (GPSC, SystemIO, 0xE42F, 0x01)
2 which bits exactly should I fiddle with? and how, is there a simple way to play with them (like isaset/isadump for ports)?
3 Is work on i2c-virtual desired? or is this idea abandoned completely by now and I should write a hack just for me?

Signature · 6 lines
Who logs in to gdm? Not I, said the duck.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors