Date: Tue, 12 Feb 2008 18:25:32 +0000 From: Thomas Hurst <tom.hurst@clara.net> To: Frank Mayhar <frank@exit.com> Cc: freebsd-amd64@freebsd.org Subject: Re: CFT: k8temp driver Message-ID: <20080212182532.GA18779@voi.aagh.net> In-Reply-To: <1202826167.10603.3.camel@jill.exit.com> References: <A611E395-3531-4026-B8B3-5EFA72BA48E1@FreeBSD.org> <20080210183600.GJ64299@server.vk2pj.dyndns.org> <141AC5FD-D8A0-4E6B-BC69-5D9F752EF5F2@freebsd.org> <20080212062818.GL64299@server.vk2pj.dyndns.org> <1202826167.10603.3.camel@jill.exit.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* Frank Mayhar (frank@exit.com) wrote: > k8temp0: <AMD K8 Thermal Sensors> on hostb3 > k8temp0: can't clear config registerdevice_attach: k8temp0 attach returned 6 > k8temp1: <AMD K8 Thermal Sensors> on hostb7 > k8temp1: can't clear config registerdevice_attach: k8temp1 attach returned 6 > > Thermtrip=0x0b000424 (CurTmp=0x00 (-49c) TjOffset=0x0b DiodeOffset=0x04 (7c)) > Thermtrip=0x0b510420 (CurTmp=0x51 (32c) TjOffset=0x0b DiodeOffset=0x04 (7c)) > CPU 0 Core 1 Sensor 0: 32c > Thermtrip=0x005a0f20 (CurTmp=0x5a (41c) TjOffset=0x00 DiodeOffset=0x0f (-4c)) > CPU 1 Core 1 Sensor 0: 41c Well, the bits clearly are clearable; the 0's on the end of Thermtrip show the selection is working (it wouldn't show anything if not; your second CPU seems to not want to set the core selection bit at all, and neither care for the sensor selection bit). Interestingly the data sheet suggests on single core systems the core selection bit should be *set*: Thermal Sensor Core Select (ThermSenseCoreSel) -- Bit 2. This bit selects the CPU whose temperature is reported in the CurTemp field. This bit only applies to dual core processors. For single core processors CPU0 Thermal Sensor is always selected 0b = CPU1 Thermal Sensor. 1b = CPU0 Thermal Sensor. Maybe it's revision dependent. The data sheet is here: http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf See the end of page 179 for a description of the register. -- Thomas 'Freaky' Hurst http://hur.st/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080212182532.GA18779>