A question when test W83792D driver on another motherboard

Huang0 at Winbond.com.tw Huang0 at Winbond.com.tw
Fri Feb 25 05:45:55 CET 2005


Hi Jean and Rudolf

The following message is from one of my colleague, for your reference.

***********************
As the ASUS RD said, writing this port will make the system switch to the i2c bus where our 792 chip resides.

According to his information, all ASUS server motherboard use this step to do the bus switching job.

Therefore, we might be able to apply the same codes on every server boards made by ASUS.

However, we should confirm the way of judging whether a motherboard adopt this step to switch buses.

JS and YS are going to contact ASUS for more information. We will send more detail after it is done.
*************************


Best Regards
Chunhao


> -----Original Message-----
> From: Rudolf Marek [mailto:R.Marek at sh.cvut.cz]
> Sent: 2005年2月24日 19:48
> To: PI14 HUANG0
> Cc: R.Marek at sh.cvut.cz; khali at linux-fr.org; sensors at Stimpy.netroedge.com;
> PI10 LHHsu; PI14 DZSHEN; PI13 CFLi
> Subject: RE: A question when test W83792D driver on another motherboard
> 
> Hello,
> 
> WRITE_PORT_UCHAR((PUCHAR)0x04b9, 0x08);
> 
> This is like "nuclear secret". Please have you any idea what device
> is on port 0x4b9 ? You can take a look either to:
> 
> cat /proc/ioports or to windows device manager/list devices by IO ports
> 
> Thanks
> 
> Rudolf
> 
> 
> On Thu, 24 Feb 2005 Huang0 at Winbond.com.tw wrote:
> 
> > Hi Rudolf, Jean
> >
> > Our 792 driver for Windows can work now after the debug, I'd like to
> > send to how they solve this problem, maybe this can help to solve the
> > problem we meet under Linux.
> >
> > Windows driver only add one line code in it's i2c driver, which makes
> > 792 work correctly, the code has been added is:
> > WRITE_PORT_UCHAR((PUCHAR)0x04b9, 0x08);
> >
> > I'd like to send part of the Windows codes for your reference, please
> > check it. If you know how to fix the bug of i2c Linux driver, please tell
> > me, I'd like to debug it.
> >
> > Btw, I have not received the reply from ASUS, when I get it, I will
> > forward it to you.
> >
> > Thanks
> > Best Regards
> >
> > ********************************************
> > NTSTATUS
> > GpdIoctlGetSMBusAddress(
> > 	IN PLOCAL_DEVICE_INFO pLDI,
> > 	IN PIRP pIrp,
> > 	IN PIO_STACK_LOCATION IrpStack,
> > 	IN ULONG IoctlCode  )
> >
> > {
> > 				// NOTE:  Use METHOD_BUFFERED ioctls.
> > 	PULONG pIOBuffer;           // Pointer to transfer buffer
> > 				//      (treated as an array of longs).
> > 	ULONG InBufferSize;         // Amount of data avail. from caller.
> > 	ULONG OutBufferSize;        // Max data that caller can accept.
> > 	ULONG nPort;                // Port number to read
> > 	ULONG DataBufferSize;
> > 	ULONG  BaseAddr;
> > 	ULONG  Result ;
> > 	unsigned char flag,data;
> >
> > 	// Size of buffer for data to be sent to application
> > 	OutBufferSize =
> IrpStack->Parameters.DeviceIoControl.OutputBufferLength;
> >
> > 	// NT copies inbuf here before entry and copies this to outbuf after
> > 	// return, for METHOD_BUFFERED IOCTL's.
> > 	pIOBuffer = (PULONG)pIrp->AssociatedIrp.SystemBuffer;
> >
> > 	// Check to ensure input buffer is big enough to hold a port number and
> > 	// the output buffer is at least as big as the port data width.
> >
> > 		//intel p2x4
> > 		Result = GetSMBusBaseAddr( &BaseAddr, 0x8086 , 0x7113  ,0x90);
> >
> > 		if (Result != 0 )
> > 		{
> > 			flag=EnableICHSMBusController(0X8086,0x24c0,0xf2,&data);
> > 			// intel ich5 update 02.20.2003
> > 			Result = GetSMBusBaseAddr( &BaseAddr, 0x8086 , 0x24d3  ,0x20);
> > 			if(flag)
> > 				RestoreICHSMBusController(0X8086,0x24c0,0xf2,data);
> > 			if(Result==0)
> > 				ChipSetType=1;
> > 		}
> >
> > 		if (Result != 0 )
> > 		{
> > 			WRITE_PORT_UCHAR((PUCHAR)0x04b9, 0x08);  /* here!!! */
> > 			flag=EnableICHSMBusController(0X8086,0x24c0,0xf2,&data);
> > 			// intel ich5(Server) update 12.22.2003
> > 			Result = GetSMBusBaseAddr( &BaseAddr, 0x8086 , 0x25a4  ,0x20);
> > 			if(flag)
> > 				RestoreICHSMBusController(0X8086,0x24c0,0xf2,data);
> > 			if(Result==0)
> > 				ChipSetType=1;
> > 		}
> > .................
> > }
> >
> >
> > Chunhao
> > 2005-02-24
> >
> >
> > > -----Original Message-----
> > > From: PI14 HUANG0
> > > Sent: 2005年2月24日 14:25
> > > To: 'Rudolf Marek'; 'Jean Delvare'
> > > Cc: sensors at Stimpy.netroedge.com; PI10 LHHsu; PI14 DZSHEN; PI13 CFLi
> > > Subject: RE: A question when test W83792D driver on another motherboard
> > >
> > > Hi Rudolf, Jean
> > >
> > > Thank you for your reply.
> > >
> > > I will try the commands you gave me after a while, because the PC with
> > > that motherboard is under Windows now. after my test, then I will send you
> > > the output message in another mail.
> > >
> > > Our 792 Windows driver can NOT work on this motherboard either, one of
> > > my colleague is debugging it under Windows, and we also will contact ASUS
> > > with the questions you provided, then forward you the answer.
> > >
> > > Thanks
> > > Best Regards
> > > Chunhao
> > > 2005-02-24
> > >
> > >
> > >
> > > > -----Original Message-----
> > > > From: Rudolf Marek [mailto:R.Marek at sh.cvut.cz]
> > > > Sent: 2005年2月23日 19:21
> > > > To: PI14 HUANG0
> > > > Cc: sensors at Stimpy.netroedge.com; PI10 LHHsu; PI14 DZSHEN; PI13 CFLi
> > > > Subject: RE: A question when test W83792D driver on another motherboard
> > > >
> > > > Hello,
> > > >
> > > > Here is Rudolf speaking.
> > > > I'm the second person who played with hidden 792D.
> > > >
> > > > I think the function fails because nothing listens on that address.
> > > > (Khali/Jean can you confirm?)
> > > >
> > > > you can try:
> > > >
> > > > modprobe i2c-dev
> > > > i2cdetect -l
> > > >
> > > > You will see the bus number you will use in next command.
> > > >
> > > > i2cdetect 0
> > > >
> > > > 0 Is my bus number.
> > > >
> > > > This command will probe i2c addresses to find all clients.
> > > > If you will see XX on that address where should be 792D. Then it is
> > > > hidden.
> > > >
> > > > Asus put some simple multiplexer to hide it. We think they use GPIO lines
> > > > from superIO. Ask what lines to trigger to unhide it.
> > > > (Logical device and what GPIO line from that group)
> > > >
> > > > I hope this helps.
> > > >
> > > > Regards
> > > >
> > > > Rudolf
> > > >
> >
> >
> >
> ==========================================================================
> =================The privileged confidential information contained in this
> email is intended for use only by the addressees as indicated by the original
> author of this email. If you are not the addressee indicated in this email or
> are not responsible for delivery of the email to such person, please kindly
> reply the sender indicating accordingly and delete all copies of it from your
> computer and network server immediately. We thank you for your cooperation.
> It is advisable that any unauthorized use of confidential information of
> Winbond is strictly prohibited; and any information in this email that does
> not relate to the official business of Winbond shall be deemed as neither given
> nor endorsed by
> Winbond.==================================================================
> =========================If your computer is unable to decode Chinese font,
> please ignore the following message. They essentially repeat the  English
> statement above.セ獺ンず┮地ü筿癩玻┦诀盞┦戈癟, 度甭舦祇獺﹚
> ぇΜ獺綷ぇノ. 安ㄏ眤獶砆﹚ぇΜ獺┪ヴゼ竒甭舦薄ぇ
> Μセ獺ン, 叫眤祇獺ミ盢獺ン眖筿福籔呼隔狝竟いぉ埃. 癸
> 眤, и璓谅. 疭矗眶, ヴゼ竒甭舦菊ㄏノ地ü筿诀盞戈癟
> ︽琌砆腨窽ゎ. 獺ン籔地ü筿犁穨礚闽ぇず甧,ぃ眔跌地ü筿ぇミ初┪種
> ÇŽ.
> >

===========================================================================================The privileged confidential information contained in this email is intended for use only by the addressees as indicated by the original author of this email. If you are not the addressee indicated in this email or are not responsible for delivery of the email to such person, please kindly reply the sender indicating accordingly and delete all copies of it from your computer and network server immediately. We thank you for your cooperation. It is advisable that any unauthorized use of confidential information of Winbond is strictly prohibited; and any information in this email that does not relate to the official business of Winbond shall be deemed as neither given nor endorsed by Winbond.===========================================================================================If your computer is unable to decode Chinese font, please ignore the following message. They essentially repea!
 t the  English statement above.¥»«H¥ó¤º©Ò§tµØ¨¹¹q¤lªº°]²£©Ê¾÷±K©Ê¸ê°T, ¶È±ÂÅv­ìµo«H¤H«ü©w¤§¦¬«H¤H¨ú¾\¤§¥Î. °²¨Ï±z¨Ã«D³Q«ü©w¤§¦¬«H¤H©Î¦]¥ô¦ó­ì¦]¦b¥¼¸g±ÂÅvªº±¡§Î¤§¤U¦¬¨ì¥»«H¥ó, ½Ð±z§iª¾­ìµo«H¤H¨Ã¥ß§Y±N«H¥ó±q¹q¸£»Pºô¸ô¦øªA¾¹¤¤¤©¥H®ø°£. ¹ï©ó±zªº¦X§@, §Ú­Ì¥ý¦¹­PÁÂ. ¯S¦¹´£¿ô, ¥ô¦ó¥¼¸g±ÂÅv¾Õ¦Û¨Ï¥ÎµØ¨¹¹q¤lªº¾÷±K¸ê°Tªº¦æ¬°¬O³QÄY®æ¸T¤îªº. «H¥ó»PµØ¨¹¹q¤lÀç·~µLÃö¤§¤º®e,¤£±oµø¬°µØ¨¹¹q¤l¤§¥ß³õ©Î·N¨£.



More information about the lm-sensors mailing list