From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262181AbVATQjE (ORCPT ); Thu, 20 Jan 2005 11:39:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262169AbVATQgL (ORCPT ); Thu, 20 Jan 2005 11:36:11 -0500 Received: from zone4.gcu-squad.org ([213.91.10.50]:42978 "EHLO zone4.gcu-squad.org") by vger.kernel.org with ESMTP id S262290AbVATQeL convert rfc822-to-8bit (ORCPT ); Thu, 20 Jan 2005 11:34:11 -0500 Date: Thu, 20 Jan 2005 17:28:14 +0100 (CET) To: nico@cam.org Subject: Re: 2.6.10-mm2: it87 sensor driver stops CPU fan X-IlohaMail-Blah: khali@localhost X-IlohaMail-Method: mail() [mem] X-IlohaMail-Dummy: moo X-Mailer: IlohaMail/0.8.13 (On: webmail.gcu.info) Message-ID: In-Reply-To: From: "Jean Delvare" Bounce-To: "Jean Delvare" CC: "LM Sensors" , "lkml" , "Jonas Munsin" , "Simone Piunno" , "Greg KH" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Nicolas, > It looks like only temp3 is used for the CPU temperature, fan1 is the > CPU fan and fan2 the case fan. This is coherent with your chip configuration. > I experimented with isaset tweaking individual bits in register 0x14 > (blindly I confess, haven't read the datasheet) and flipping bit 3 from > 0 to 1 (writing 0xdf) apparently reverses the behavior, i.e. the CPU fan > speed now increases with the CPU temperature. That's odd. This bit isn't supposed to significantly change the behavior. When cleared (default), possible duty cycles range from 0 to 100%. When set, the possible duty cycles range from 20% to 100% (except for PWM=0 which still results in a 0% duty cycle). I hardly understand how setting this bit can result in the change you describe. > In the mean time I'm willing to try out things > with isaset if you can suggest basic tests (easier than upgrading kernel > for the time being). OK. Remember you better keep an eye on the CPU fan in case your tests stop it. I would also suggest that you take a look at the datasheet so that you better understand what you are doing: http://www.iteusa.com/product_info/file/pc/IT8712F_V0.81.pdf (page 79 of the document, which is 97 of the PDF file - don't ask) The best test I can think of is to switch your CPU fan to manual PWM mode. To do that, write 0x40 to register 0x15. CPU fan should go to half speed. Write 0x7F and if should go to full speed, except if the polarity is not correct in which case 0x00 will do (and 0x7F will stop the fan completely so you don't want to keep it that way). I suggest that you use the -y flag of isaset so that you can overwrite register values quickly if things turn bad. Once you know if the polarity is correct, you can try different values of PWM between 0x00 and 0x7F and see how exactly your fan reacts to them. You can also study more precisely how bit 3 of register 0x14 (the one you played with already) affects the PWM vs speed curve. Thanks, -- Jean Delvare