From owner-freebsd-current@FreeBSD.ORG Mon Dec 6 18:51:39 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F03381065693 for ; Mon, 6 Dec 2010 18:51:38 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [IPv6:2001:470:a803::1]) by mx1.freebsd.org (Postfix) with ESMTP id 8063A8FC14 for ; Mon, 6 Dec 2010 18:51:38 +0000 (UTC) Received: from mail.geekcn.org (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id 35092A68684; Tue, 7 Dec 2010 02:51:37 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by mail.geekcn.org (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with LMTP id RWN18aNXU1P1; Tue, 7 Dec 2010 02:51:29 +0800 (CST) Received: from delta.delphij.net (drawbridge.ixsystems.com [206.40.55.65]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id 483B6A68665; Tue, 7 Dec 2010 02:51:26 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type; b=wwjy8MXPpspvO+V8WVgWGh96xYxruJOWjWPC/mDMUm9CiEInXvBFPilZnBCFPScsL f42sjiooft+smlMp4n2Xg== Message-ID: <4CFD30A9.7060502@delphij.net> Date: Mon, 06 Dec 2010 10:51:21 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.15) Gecko/20101028 Thunderbird/3.0.10 ThunderBrowse/3.3.4 MIME-Version: 1.0 To: Irakli References: <4CEBBDEC.7090700@delphij.net> In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=3FCA37C1; url=http://www.delphij.net/delphij.asc Content-Type: multipart/mixed; boundary="------------050100070905040504050908" Cc: FreeBSD Current Subject: Re: coretemp TjMax X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Dec 2010 18:51:39 -0000 This is a multi-part message in MIME format. --------------050100070905040504050908 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Hi, On 12/04/10 13:59, Irakli wrote: > Hi, > > ns# cpucontrol -m 0x1a2 /dev/cpuctl0 > MSR 0x1a2: 0x00000000 0x00001600 > > ns# grep GenuineIntel /var/run/dmesg.boot > Origin = "GenuineIntel" Id = 0x6fb Family = 6 Model = f Stepping = 11 I didn't found any authoritative source that gives me 95. Where did you get the information? Attached is a patch that uses 95C for stepping G0 but I'm really clueless whether that's right. > On Tue, Nov 23, 2010 at 5:13 PM, Xin LI > wrote: > > [Redirected to -current@] > > Hi, > > On 11/15/10 03:32, Irakli wrote: >> Hi >> coretemp gets wrong TjMax for Intel E6750 CPU (CPUID 06FBh), 85 > instead of >> 95. >> and therefore monitoring programs see low then room temperature > (in air >> cooling) >> Please fix this and would be nice allowing users manual setting > TjMax from >> sysctl > > Would you please provide the following information? > > cpucontrol -m 0x1a2 /dev/cpuctl0 > > (kldload cpuctl if necessary). > > And: > > grep GenuineIntel /var/run/dmesg.boot > > Thanks in advance! > > Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (FreeBSD) iQEcBAEBCAAGBQJM/TCpAAoJEATO+BI/yjfBoxwH/RzrcuHXjo8buG3suGheD2kP 4N1LNMR/lPzmlG9duhqPOE3Y7DsKqe/tiZ91QykyFmJylePHf5gAv+bASP8An+xv piyq12ghePUoWsl9kYJwSBQ1wkvpkYf6RJ+mWIGTMp3+xpmEa9yyQnnE2AvSWAga HduALNzJnqqxQwlHFFqi216ay79ItUPvJEWCGeP1AfGt3CJqg1aAJ8fY3rF7m37P whWg89QqWu6U0WDJ2QFmzJxxtbyHIT9CUcGsJrpfZKVQf2kglPn0rPSLjaBTQcGK RJMyOW3KI/LueSJ+PgvRNtaSVhhGL2cm4L9Mz2uo/vp5OVoe48oWn68dZgFkffw= =MKgf -----END PGP SIGNATURE----- --------------050100070905040504050908 Content-Type: text/plain; name="coretemp.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="coretemp.diff" Index: coretemp.c =================================================================== --- coretemp.c (revision 216236) +++ coretemp.c (working copy) @@ -178,8 +178,13 @@ */ sc->sc_tjmax = 100; - if ((cpu_model == 0xf && cpu_stepping >= 2) || cpu_model == 0xe) { + if (cpu_model == 0xf && cpu_stepping == 11) { /* + * Use 95C for stepping G0 + */ + sc->sc_tjmax = 95; + } else if ((cpu_model == 0xf && cpu_stepping >= 2) || cpu_model == 0xe) { + /* * On some Core 2 CPUs, there's an undocumented MSR that * can tell us if Tj(max) is 100 or 85. * --------------050100070905040504050908--