as99127f pwm registers
Hi Alex,
We are having some trouble with the as99127f again, and I thought maybe you could help us on this point.
The register we are fighting with this time is 0x5B. In our current driver implementation, this register is supposed to be PWM1 (fan speed control) as for the w83781d, but I did some tests on my motherboard (Asus A7V133-C, AS99127F) yesterday and it turned out that this register behaves like a temperature sensor mode selector (like the it87 has). What's your opinion about this register? Where would PWM1 be if it's not there?
Oh, by the way, I could see on your webpage that you differenciate two revisions of the AS99127F. Which register do you use for that? What are the differencies between these two revisions?
Thanks!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines · Jean Delvare
Oh, by the way, I could see on your webpage that you differenciate two revisions of the AS99127F. Which register do you use for that? What are the differencies between these two revisions?
While working on an independent Asus BACH driver this evening, I ran across this old message, where Alex mentions "type 1 vs. type 2" w.r.t. as99127f:
http://archives.andrew.net.au/lm-sensors/msg02070.html
This is still ambiguous (e.g. so how do you differentiate as99127f from w83782d?) and maybe Alex has newer info now. But, I thought I would point this out anyway.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 8 lines · Jean Delvare
The register we are fighting with this time is
0x5B. In our current driver implementation, this register is supposed to be PWM1 (fan speed control) as for the w83781d, but I did some tests on my motherboard (Asus A7V133-C, AS99127F) yesterday and it turned out that this register behaves like a temperature sensor mode selector (like the it87 has). What's your opinion about this register? Where would PWM1 be if it's not there?
Remember this guy?
http://archives.andrew.net.au/lm-sensors/msg02580.html
The zipped sensors.conf file attached to that message says that 0x5b is a temp. mode selector. That this is true for Asus BACH is further evidence that the same is probably true for as99127f.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
(Resending, the original mail was bounced.)
Hi Alex,
We are having some trouble with the as99127f again, and I thought maybe you could help us on this point.
The register we are fighting with this time is 0x5B. In our current driver implementation, this register is supposed to be PWM1 (fan speed control) as for the w83781d, but I did some tests on my motherboard (Asus A7V133-C, AS99127F) yesterday and it turned out that this register behaves like a temperature sensor mode selector (like the it87 has). What's your opinion about this register? Where would PWM1 be if it's not there?
Oh, by the way, I could see on your webpage that you differenciate two revisions of the AS99127F. Which register do you use for that? What are the differencies between these two revisions?
Thanks!
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
While working on an independent Asus BACH driver this evening, I ran across this old message, where Alex mentions "type 1 vs. type 2" w.r.t. as99127f:
Interesting, thanks for pointing this out.
Quoted 2 lines
This is still ambiguous (e.g. so how do you differentiate as99127f from w83782d?)
Take a look at w83781d_detect in sensors-detect. The detection code is really different, although the chip ID (I think) is 0x30 for both. The detection for the AS99127F is somewhat different from what is decribed by Alex. And it looks we do not support "type 2". I really think we should unite our forces against the lack of datasheet to make detection and support the best we can.
Quoted 1 line
and maybe Alex has newer info now.
I hope so. Alex?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 9 lines
Quoted 8 lines
The register we are fighting with this time is
0x5B. In our current driver implementation, this register is supposed to be PWM1 (fan speed control) as for the w83781d, but I did some tests on mymotherboard(Asus A7V133-C, AS99127F)yesterday and it turned out that this register behaves like a temperature sensor mode selector (like the it87 has). What's your opinion about this register? Where would PWM1 be if it's not there?
Quoted 7 lines
Remember this guy?
http://archives.andrew.net.au/lm-sensors/msg02580.html
The zipped sensors.conf file attached to that message says that
0x5bis a temp. mode selector. That this is true for Asus BACH is further evidence that the same is probably true for as99127f.
Very interesting. What I could see on my as99127f (type 1) seems to be different. The guy says:
default 11011101
bit 7,6 RW type of TXD4 (LM78 extension) bit 5,4 RW type of TXD3 (secondary LM75) bit 3,2 RW type of TXD2 (primary LM75) bit 1,0 RW type of TXD1 (LM78)
all bits meaning:
00 no sensor connection, Thermal sensor reading
register (bank 0, 17h/87h) is writable
HMI will not update the reading register
01 Thermistor / 10k, B = 3435
10 3904 transistor
11 Intel thermal diode
while I think I have:
default 00000000
bit 5 type of temp3 (second LM75 clone) bit 3 type of temp2 (first LM75 clone) bit 1 type of temp1
I don't know the meaning of the bits being to 1 or 0, all I can say is that I have correct readings with bits being at 0, and incorrect (and constant) readings with bits being at 1.
Some additional information:
The readings with bits at 1 are:
temp1: -45
temp2: 217.4
temp3: 211.4
I guess the .4 are really .375 rounded, so the binary readings must be:
temp1: 11010011
temp2: 11011001.011
temp3: 11010011.011
I wouldn't call that noise. It has to be something real, although I don't know what.
One last thing: the ALARM flags don't trigger when I set the bits to one, although the readings are of course out of bounds.
Oh, and BTW. What are these "banks" the guy is talking about?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 11 lines · Jean Delvare
Quoted 11 lines
Quoted 8 lines
The register we are fighting with this time is
0x5B. In our current driver implementation, this register is supposed to be PWM1 (fan speed control) as for the w83781d, but I did some tests on mymotherboard(Asus A7V133-C, AS99127F)yesterday and it turned out that this register behaves like a temperature sensor mode selector (like the it87 has). What's your opinion about this register? Where would PWM1 be if it's not there?Remember this guy?
Quoted 8 lines
Quoted 5 lines
http://archives.andrew.net.au/lm-sensors/msg02580.html
The zipped sensors.conf file attached to that message says that
0x5bis a temp. mode selector. That this is true for Asus BACH is further evidence that the same is probably true for as99127f.Very interesting. What I could see on my as99127f (type 1) seems to be different. The guy says:
<snip>
Understand, even the behaviour of my BACH chip disagrees with some of what is in that attachment... but it's probably the best source we have so far. I'm not surprised if as99127f is different, BUT...
Quoted 1 line
Oh, and BTW. What are these "banks" the guy is talking about?
(E.g. w83781d) The register at 0x4e has a field which is "bank select". This field determines purpose of the registers 0x50 - 0x5f. So there are actually 3 registers at 0x5b; the current bank # determines which of these 3 actually sees the read or write.
Knowing that, you'll want to redo some of your experiments.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 6 lines
So I will just include what I know and what works perfect for all mbm user so far:
- before all detections I do:
IOByte($4E,$00,IOWrite); so set any bank there might be to 00
We don't do that. Maybe we should consider doing so. I guess this makes identification easier. Are there any side effects?
On the other hand, our policy is that our detection script should never write to the chips.
Quoted 2 lines
AS99127F_1&AS99127F_2& ASB100:
- scan smbus between $29 and $2F
We use the full original range ($20 to $2F). What makes you think the range for the as99127f/asb100 is different? Shouldn't it be $28 to $2F (3-bit address selection, 8 addresses)? Oh, BTW, I don't think we ever saw these chips at any other address than $2d. Did you?
Quoted 6 lines
- if register $58 holds $31 then we have an asus (either ASB100 or AS99127F
- if (IOByte($4F,$0,IORead)=$94) or (IOByte($4F,$0,IORead)=$06) then ASB100
- if (IOByte($4F,$0,IORead)=$12) or (IOByte($4F,$0,IORead)=$C3) thenAS99127F_1
That's what we have.
Quoted 2 lines
- if (IOByte($4F,$0,IORead)=$5C) or (IOByte($4F,$0,IORead)=$A3) then
AS99127F_2
We did not have this one, I'll add it.
Quoted 8 lines
Mozart2:
- scan smbus on $77
- if register $58 holds $56 or $10 then we are talking Mozart2
- of the mozart there are 3 types:- //Asus ASM58 Mozart-2 $58=$56 $4E=$94 $4F=$36 - //Asus AS2K129R Mozart-2 $58=$56 $4E=$94 $4F=$06 - //Asus XXXXXXXX Mozart-2 $58=$10 $4E=$5C $4F=$A3- you can handle all 3 the exact same way!!!!!
We have absolutely no support for this one, but we could consider adding at least detection. It's great that the three of them are handled the same way.
Quoted 10 lines
so that is detection, next temp sensors:
ASB100:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbus
- sensor 4: offset $17 of the sensor chip
- remark: I noticed that on intel boards sensor 2 is used for the cpu and 4 is ignored/stuck, on amd boards sensor 4 is the cpu and sensor 2 is either ignored or a socket temp
We don't have temp4 in the driver yet. Could be added.
Quoted 10 lines
AS99127F_1&AS99127F_2:
- no diode selection option like the winbonds have
- they both are the same temperature wise
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbusMozart2:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2: offset $13 of the sensor chip
So you mean the Mozart2 has no LM75s?
Quoted 22 lines
and finally the voltages, this is where there is a diffrence between the 2 AS99127F versions:
ASB100:
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.666
AS99127F_1:
V0=AS99127F Standard 1
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.503
Quoted 9 lines
AS99127F_2:
V1=AS99127F Standard 2
V1V1=$20*0.016
V1V2=$21*0.016
V1V3=$22*0.016
V1V4=$23*0.016*1.68
V1V5=$24*0.016*3.8
V1V6=(($25*0.016)-3.6)*5.14+3.6
V1V7=(($26*0.016)-3.6)*3.14+3.6
Great. As long as the registers are the same, we don't care about the formulae. They can be added to our config file, so this require no driver code change :)
Quoted 10 lines
Mozart2:
V0=Mozart2 Standard
V0V1=$20*0.016
V0V2%5
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*4
V0V6%5
V0V7%5
Quoted 3 lines
I have send a lot of info in the last month to
lm_sensorusers, so it's not always clear to me who is asking this forlm_sensoror for himselves.
This time it was for the team. I don't know about the other times. I'm really astonished that our users ask you about that. These details are only interesting to us as the driver writers. Users shouldn't really matter about them.
Quoted 2 lines
so if possible maybe post this somewhere on your site/forum/anything so I can direct requests from
lm_sensorusers to it.
I think of including your detailed expanations into our w83781d driver doc, which is available online at:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/chips/w83781d
Do you agree? I would eventually re-edit a bit to make it more like a doc.
Quoted 4 lines
The Asus boards are the most popular so I can say for 99.999% that the above is correct, there "might" be a diode selection possible but never used by Asus so far. and believe me, if it's wrong people know my e-mail adres very well ;)
Precisely, that is where the current thread is supposed to be about. I don't know if you support w83781d's (and clones such as the asus chips we are talking about right now) PWM capabilities. We do. These registers are at 0x5A and 0x5B (bank 0). I tried using PWM on my board, it didn't work but I noticed that on my as99127f (version 1) the register at 0x5B seem to be a temperature type selector. Bits 1, 3 and 5 (starting with LSB=0) could be temp type selector for temp1, temp2 and temp3 respectively. I don't know how useful the information can be, but that's something I wanted to share with you.
Quoted 2 lines
please let me know if this was usefull and if you posted it so I have the url :)
This was very, *very* useful. Thanks *a lot* for your help and time.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Just one more thing:
Quoted 5 lines
AS99127F_1&AS99127F_2& ASB100:
- if (IOByte($4F,$0,IORead)=$12) or (IOByte($4F,$0,IORead)=$C3) thenAS99127F_1
- if (IOByte($4F,$0,IORead)=$5C) or (IOByte($4F,$0,IORead)=$A3) thenAS99127F_2
The AS99127F_2 Vendor ID you give here is Winbond's one! Are you sure?
Quoted 10 lines
and finally the voltages, this is where there is a diffrence between the 2 AS99127F versions:
AS99127F_1:
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.503
AS99127F_2:
V1V6=(($25*0.016)-3.6)*5.14+3.6
V1V7=(($26*0.016)-3.6)*3.14+3.6
This is exactly the same difference there is between W83781D and W83782D!
If what you say is right (and I'm confident in you), the AS99127F_2 has the same device ID as the W83782D (except maybe the LSB, so $30 and $31), the same vendor ID and the same V6 and V7 formulae. So, is there any reason to make any difference between these two chips?
(The only difference I can see is that original winbond chips hold their I2C address at register $48, and Asus ones don't seem too. However, we never had a AS99127F_2 in our hands, so maybe Asus made it right for this one? Any insight welcome.)
Thanks again Alex.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 7 lines
Well if the MBM user base is any indication then there are no side-effects using the bank switch, it did solve a lot of detection problems I got. When I 1st started using this there where a few issues with bios's that asumed they where on bank 1 and did not check or put it to bank 1 after mbm set it to 0, but have no encountered that in ages :)
Well, what would happen if the chip there isn't really a w83781d or clone? You would write 0 to a register and you don't know what can result of this action. That's what I was thinking of. I suppose that it is very, very unlikely that another chip would be in that address range, pass two id checks and is *not* what you thought it was. However, I think we will stick to our detection policy and not write anything to the chip (which means we only detect the chip if a the bank is 0 at start). We could improve things a bit and detect it with a lower confidence value if the bank is 1 or 2.
Quoted 1 line
thanks for the url, will save that.
Note that the text isn't there yet. I'll take some time to add it tomorrow.
Quoted 3 lines
the voltages of MBM are in the voltage.ini so no code change needed either and you can rip them out if you want/need them, there are a lot of board specific voltages
Likewise, feel free to take a look at our sensors.conf file if there's anything you can learn. We have few board specific configurations, but some comments are very interesting.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 9 lines
I have send a lot of info in the last month to
lm_sensorusers, so it's not always clear to me who is asking this forlm_sensoror for himselves. so if possible maybe post this somewhere on your site/forum/anything so I can direct requests fromlm_sensorusers to it.
(...)
please let me know if this was usefull and if you posted it so I have the url :)
OK, here it is:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/chips/w83781d
It's mostly a reformated copy of your post.
Some more questions about the Mozart-2, which I thought about while editing your comments (you must really be think I will never leave you alone...):
- Were there ever a Mozart-1 chip?
- How do you know the names of the Mozart-2 chips since no datasheets exist? On the other hand, how don't you know the third one's name if you could get the first two? Also, I could see many references to "ASM58" on the web, but not a single page references the AS2K129R. Are you sure this name is correct?
- What are the voltages marked "255"? How do you treat them? Simply ignore them?
Thanks a lot again.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
hi all,
I had some mail problems the last 2 days so now have 5 or 6 mails on the asus sensor chip.
the AS99127F has only 3 temp sensors, the ASB100 has 4 and the Mozart has only 2, so I think your detection is wrong and you think your reading a 127F while it's a ASB100.
So I will just include what I know and what works perfect for all mbm user so far:
- before all detections I do: IOByte($4E,$00,IOWrite); so set any bank there might be to 00
AS99127F_1 & AS99127F_2 & ASB100:
- scan smbus between $29 and $2F
- if register $58 holds $31 then we have an asus (either ASB100 or AS99127F)
- if (IOByte($4F,$0,IORead)=$94) or (IOByte($4F,$0,IORead)=$06) then ASB100
- if (IOByte($4F,$0,IORead)=$12) or (IOByte($4F,$0,IORead)=$C3) then AS99127F_1
- if (IOByte($4F,$0,IORead)=$5C) or (IOByte($4F,$0,IORead)=$A3) then AS99127F_2
Mozart2:
- scan smbus on $77
- if register $58 holds $56 or $10 then we are talking Mozart2
- of the mozart there are 3 types:
- //Asus ASM58 Mozart-2 $58=$56 $4E=$94 $4F=$36 - //Asus AS2K129R Mozart-2 $58=$56 $4E=$94 $4F=$06 - //Asus XXXXXXXX Mozart-2 $58=$10 $4E=$5C $4F=$A3
- you can handle all 3 the exact same way!!!!!
so that is detection, next temp sensors:
ASB100:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbus
- sensor 4: offset $17 of the sensor chip
- remark: I noticed that on intel boards sensor 2 is used for the cpu and 4 is ignored/stuck, on amd boards sensor 4 is the cpu and sensor 2 is either ignored or a socket temp
AS99127F_1 & AS99127F_2:
- no diode selection option like the winbonds have
- they have both are the same temperature wise
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbus
Mozart2:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2: offset $13 of the sensor chip
then we get the fan sensors:
ASB100:
- 3 fans, identical to the W83781D
AS99127F_1 & AS99127F_2:
- 3 fans, identical to the W83781D
Mozart2:
- 2 fans:
- fan 1: offset $28, divisor on $A1, divisor mask $30, shr 4, 1350000 / rpm / div
- fan 2: offset $29, divisor on $A1, divisor mask $C0, shr 6, 1350000 / rpm / div
and finally the voltages, this is where there is a diffrence between the 2 AS99127F versions:
ASB100:
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.666
AS99127F_1:
V0=AS99127F Standard 1
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.503
AS99127F_2:
V1=AS99127F Standard 2
V1V1=$20*0.016
V1V2=$21*0.016
V1V3=$22*0.016
V1V4=$23*0.016*1.68
V1V5=$24*0.016*3.8
V1V6=(($25*0.016)-3.6)*5.14+3.6
V1V7=(($26*0.016)-3.6)*3.14+3.6
Mozart2:
V0=Mozart2 Standard
V0V1=$20*0.016
V0V2%5
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*4
V0V6%5
V0V7%5
I have send a lot of info in the last month to lm_sensor users, so it's not always clear to me who is asking this for lm_sensor or for himselves. so if possible maybe post this somewhere on your site/forum/anything so I can direct requests from lm_sensor users to it.
The Asus boards are the most populair so I can say for 99.999% that the above is correct, there "might" be a diode selection possible but never used by Asus so far. and believe me, if it's wrong people know my e-mail adres very well ;)
please let me know if this was usefull and if you posted it so I have the url :)
if you have more questions feel free to ask
Regards, Alex
- Please always attach all previous mails !
----------------------------------------------------------------------
The Motherboard Monitor:
http://mbm.livewiredev.com/
----------------------------------------------------------------------
For long you live and high you fly,
And smiles you'll give and tears you'll cry,
And all you touch and all you see,
Is all your life will ever be.
----------------------------------------------------------------------
Jean
check what I wrote carefully, the secondary detection might be like the winbond, but the primary ($58) is $31 and that is not winbond but Asus in this case, that is why I have the 1st and 2nd detection. The fact the other 2 ID's are like winbond simply shows you that Asus bought them from winbond :)
a diffrence we have -i think- is that MBM does not use the $48 register, MBM detects a sensor chip.... Asus on $2D.... then the 2 LM75's.... I just name/label these 2 LM75's Asus 2 and 3 but IF the chip on $2D is a Asus, if it's a winbond I name then winbond 2 and 3.... internaly they are LM75's so I really don't need the $48 to show me where the LM75's are, if there are more then 2 LM75's on a board (not found one so far) the extra LM75's are LM75's while those 2 on the default adres are Asus 2 and 3
Regards, Alex
- Please always attach all previous mails !
----------------------------------------------------------------------
The Motherboard Monitor:
http://mbm.livewiredev.com/
----------------------------------------------------------------------
For long you live and high you fly,
And smiles you'll give and tears you'll cry,
And all you touch and all you see,
Is all your life will ever be.
----------------------------------------------------------------------
-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: donderdag 24 juli 2003 15:33
To: MBM Support
Cc: [email protected]
Subject: Re: as99127f pwm registers
Just one more thing:
Quoted 5 lines
AS99127F_1&AS99127F_2& ASB100:
- if (IOByte($4F,$0,IORead)=$12) or (IOByte($4F,$0,IORead)=$C3) thenAS99127F_1
- if (IOByte($4F,$0,IORead)=$5C) or (IOByte($4F,$0,IORead)=$A3) thenAS99127F_2
The AS99127F_2 Vendor ID you give here is Winbond's one! Are you sure?
Quoted 10 lines
and finally the voltages, this is where there is a diffrence between the 2 AS99127F versions:
AS99127F_1:
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.503
AS99127F_2:
V1V6=(($25*0.016)-3.6)*5.14+3.6
V1V7=(($26*0.016)-3.6)*3.14+3.6
This is exactly the same difference there is between W83781D and W83782D!
If what you say is right (and I'm confident in you), the AS99127F_2 has the same device ID as the W83782D (except maybe the LSB, so $30 and $31), the same vendor ID and the same V6 and V7 formulae. So, is there any reason to make any difference between these two chips?
(The only difference I can see is that original winbond chips hold their I2C address at register $48, and Asus ones don't seem too. However, we never had a AS99127F_2 in our hands, so maybe Asus made it right for this one? Any insight welcome.)
Thanks again Alex.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Jean,
Well if the MBM user base is any indication then there are no side-effects using the bank switch, it did solve a lot of detection problems I got. When I 1st started using this there where a few issues with bios's that asumed they where on bank 1 and did not check or put it to bank 1 after mbm set it to 0, but have no encountered that in ages :)
correct, Mozart2 has no LM75's clones
thanks for the url, will save that.
as I said in the other mail, make sure you scan the primary ID (as I call it) before the secondary 2, else one of the AS99127F will be a winbond in your eyes
the voltages of MBM are in the voltage.ini so no code change needed either and you can rip them out if you want/need them, there are a lot of board specific voltages
more question... let me know
Regards, Alex
- Please always attach all previous mails !
----------------------------------------------------------------------
The Motherboard Monitor:
http://mbm.livewiredev.com/
----------------------------------------------------------------------
For long you live and high you fly,
And smiles you'll give and tears you'll cry,
And all you touch and all you see,
Is all your life will ever be.
----------------------------------------------------------------------
-----Original Message-----
From: Jean Delvare [mailto:[email protected]]
Sent: donderdag 24 juli 2003 14:59
To: MBM Support
Cc: [email protected]
Subject: Re: as99127f pwm registers
Quoted 5 lines
So I will just include what I know and what works perfect for all mbm user so far:
- before all detections I do:
IOByte($4E,$00,IOWrite); so set any bank there might be to 00
We don't do that. Maybe we should consider doing so. I guess this makes identification easier. Are there any side effects?
On the other hand, our policy is that our detection script should never write to the chips.
Quoted 2 lines
AS99127F_1&AS99127F_2& ASB100:
- scan smbus between $29 and $2F
We use the full original range ($20 to $2F). What makes you think the range for the as99127f/asb100 is different? Shouldn't it be $28 to $2F (3-bit address selection, 8 addresses)? Oh, BTW, I don't think we ever saw these chips at any other address than $2d. Did you?
Quoted 6 lines
- if register $58 holds $31 then we have an asus (either ASB100 or AS99127F
- if (IOByte($4F,$0,IORead)=$94) or (IOByte($4F,$0,IORead)=$06) then ASB100
- if (IOByte($4F,$0,IORead)=$12) or (IOByte($4F,$0,IORead)=$C3) thenAS99127F_1
That's what we have.
Quoted 2 lines
- if (IOByte($4F,$0,IORead)=$5C) or (IOByte($4F,$0,IORead)=$A3) then
AS99127F_2
We did not have this one, I'll add it.
Quoted 8 lines
Mozart2:
- scan smbus on $77
- if register $58 holds $56 or $10 then we are talking Mozart2
- of the mozart there are 3 types:- //Asus ASM58 Mozart-2 $58=$56 $4E=$94 $4F=$36 - //Asus AS2K129R Mozart-2 $58=$56 $4E=$94 $4F=$06 - //Asus XXXXXXXX Mozart-2 $58=$10 $4E=$5C $4F=$A3- you can handle all 3 the exact same way!!!!!
We have absolutely no support for this one, but we could consider adding at least detection. It's great that the three of them are handled the same way.
Quoted 10 lines
so that is detection, next temp sensors:
ASB100:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbus
- sensor 4: offset $17 of the sensor chip
- remark: I noticed that on intel boards sensor 2 is used for the cpu and 4 is ignored/stuck, on amd boards sensor 4 is the cpu and sensor 2 is either ignored or a socket temp
We don't have temp4 in the driver yet. Could be added.
Quoted 10 lines
AS99127F_1&AS99127F_2:
- no diode selection option like the winbonds have
- they both are the same temperature wise
- sensor 1: offset $27 of the sensor chip
- sensor 2 & 3 are the 2 LM75's on the smbusMozart2:
- no diode selection option like the winbonds have
- sensor 1: offset $27 of the sensor chip
- sensor 2: offset $13 of the sensor chip
So you mean the Mozart2 has no LM75s?
Quoted 22 lines
and finally the voltages, this is where there is a diffrence between the 2 AS99127F versions:
ASB100:
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.666
AS99127F_1:
V0=AS99127F Standard 1
V0V1=$20*0.016
V0V2=$21*0.016
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*3.8
V0V6=($25*(-0.016))*3.97
V0V7=($26*(-0.016))*1.503
Quoted 9 lines
AS99127F_2:
V1=AS99127F Standard 2
V1V1=$20*0.016
V1V2=$21*0.016
V1V3=$22*0.016
V1V4=$23*0.016*1.68
V1V5=$24*0.016*3.8
V1V6=(($25*0.016)-3.6)*5.14+3.6
V1V7=(($26*0.016)-3.6)*3.14+3.6
Great. As long as the registers are the same, we don't care about the formulae. They can be added to our config file, so this require no driver code change :)
Quoted 10 lines
Mozart2:
V0=Mozart2 Standard
V0V1=$20*0.016
V0V2%5
V0V3=$22*0.016
V0V4=$23*0.016*1.68
V0V5=$24*0.016*4
V0V6%5
V0V7%5
Quoted 3 lines
I have send a lot of info in the last month to
lm_sensorusers, so it's not always clear to me who is asking this forlm_sensoror for himselves.
This time it was for the team. I don't know about the other times. I'm really astonished that our users ask you about that. These details are only interesting to us as the driver writers. Users shouldn't really matter about them.
Quoted 2 lines
so if possible maybe post this somewhere on your site/forum/anything so I can direct requests from
lm_sensorusers to it.
I think of including your detailed expanations into our w83781d driver doc, which is available online at:
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/doc/chips/w83781d
Do you agree? I would eventually re-edit a bit to make it more like a doc.
Quoted 4 lines
The Asus boards are the most popular so I can say for 99.999% that the above is correct, there "might" be a diode selection possible but never used by Asus so far. and believe me, if it's wrong people know my e-mail adres very well ;)
Precisely, that is where the current thread is supposed to be about. I don't know if you support w83781d's (and clones such as the asus chips we are talking about right now) PWM capabilities. We do. These registers are at 0x5A and 0x5B (bank 0). I tried using PWM on my board, it didn't work but I noticed that on my as99127f (version 1) the register at 0x5B seem to be a temperature type selector. Bits 1, 3 and 5 (starting with LSB=0) could be temp type selector for temp1, temp2 and temp3 respectively. I don't know how useful the information can be, but that's something I wanted to share with you.
Quoted 2 lines
please let me know if this was usefull and if you posted it so I have the url :)
This was very, *very* useful. Thanks *a lot* for your help and time.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/