From owner-freebsd-hackers@FreeBSD.ORG Wed Oct 16 21:09:13 2013 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id DCE0D882 for ; Wed, 16 Oct 2013 21:09:13 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-bk0-x229.google.com (mail-bk0-x229.google.com [IPv6:2a00:1450:4008:c01::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 61AD12AFC for ; Wed, 16 Oct 2013 21:09:13 +0000 (UTC) Received: by mail-bk0-f41.google.com with SMTP id na10so496953bkb.0 for ; Wed, 16 Oct 2013 14:09:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=reply-to:from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-type:content-transfer-encoding:thread-index :content-language; bh=TEfTR2IT8cgSUC+daAMlyFe9FhhjoRpeV/8HjJ9Q2AA=; b=XFE1UKTpJGM89ecPDkiGEMbv0gGUbPVyEgmkLNotnvuqc8VaKuU6JMaxJPTJEV1ebO cGPl6YYJgHPPt5CAXYkmTTaHSLkXlO0zCy9PMOJg948IgwUXZ47h1b8/TILm5vTNWnqi YSvFALSU5piRWxiJis0i1oJZ7yoYrmZ/kcDvB6qitTBACCy06X7GPuiZJ6n78SnOgGI1 QnNve/I9y9THifa/ab7iBHD4p4TyKQ3NDm1GWxtNvaAstp5Uq7fgvVbbXs31c0NcT/sE tPWnfFCfQxBo9w9nEgiu+4aQveaBFxiwmcOS0NYJBUpNKsGvcPUDOxT9eD63CGTHbRTY 7rMw== X-Received: by 10.205.10.132 with SMTP id pa4mr4235830bkb.15.1381957751311; Wed, 16 Oct 2013 14:09:11 -0700 (PDT) Received: from rimwks1w7x64 ([2001:470:1f15:8e:bd94:d381:96f4:712]) by mx.google.com with ESMTPSA id nv4sm48288421bkb.3.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 16 Oct 2013 14:09:10 -0700 (PDT) From: rozhuk.im@gmail.com To: "'Willem Jan Withagen'" References: <52520d5f.c402cd0a.5f4e.ffffffa2@mx.google.com> <52553F3F.9090707@digiware.nl> <5255478B.9090305@digiware.nl> In-Reply-To: <5255478B.9090305@digiware.nl> Subject: RE: amdtemp need help with testing Date: Thu, 17 Oct 2013 01:09:00 +0400 Message-ID: <525f0076.c402cd0a.5f4e.7f67@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Ac7E6HaBirTnXBxXR06LiZs9wgZ2XwFyivlQ Content-Language: ru Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Rozhuk.IM@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Oct 2013 21:09:13 -0000 Thanks for the help with testing! I fixed a bug, added HTC registers, changed the _ident() and the _probe(): no binding processor Family. The latest version here: http://netlab.linkpc.net/download/tmp/amdtemp.c > -----Original Message----- > From: Willem Jan Withagen [mailto:wjw@digiware.nl] > Sent: Wednesday, October 09, 2013 4:10 PM > To: Rozhuk.IM@gmail.com > Cc: hackers@freebsd.org > Subject: Re: amdtemp need help with testing > > On 2013-10-09 13:34, Willem Jan Withagen wrote: > > On 2013-10-07 3:24, rozhuk.im@gmail.com wrote: > >> I updated amdtemp and now I need your help with testing. > >> > >> Now the driver should support all AMD processors. > >> For a family of 15h and 16h, not all sensors are available - for my > >> system does not find drivers for ati SMBus, and other systems based > >> on the AMD I have not. > > > > CPU: AMD Phenom(tm) II X6 1075T Processor (3013.83-MHz K8-class CPU) > > Origin = "AuthenticAMD" Id = 0x100fa0 Family = 0x10 Model = 0xa > > Stepping = 0 > > > Features=0x178bfbff > GE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> > > > > Features2=0x802009 > > AMD > > > Features=0xee500800 ow!> > > AMD > > > Features2=0x37ff > IBS,SKINIT,WDT> > > > > TSC: P-state invariant, performance statistics > > L1 2MB data TLB: 48 entries, fully associative > > L1 2MB instruction TLB: 16 entries, fully associative > > L1 4KB data TLB: 48 entries, fully associative > > L1 4KB instruction TLB: 32 entries, fully associative > > L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > > associative > > L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > > associative > > L2 2MB data TLB: 128 entries, 2-way associative > > L2 2MB instruction TLB: 0 entries, 2-way associative > > > > This is what I get with the 10.0-ALPHA4 driver. > > > > sysctl -a | grep amd > > machine amd64 > > hw.machine: amd64 > > hw.machine_arch: amd64 > > hw.snd.version: 2009061500/amd64 > > hw.mca.amd10h_L1TP: 1 > > dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors > > dev.amdtemp.0.%driver: amdtemp > > dev.amdtemp.0.%parent: hostb4 > > dev.amdtemp.0.sensor_offset: 0 > > dev.amdtemp.0.core0.sensor0: 58.0C > > > After bruteforce fixing the compile error by deleting the #ifdef around > the definition... > > --WjW > > freetest# sysctl -a | grep amd > machine amd64 > "Giant","amdtemp" > hw.machine: amd64 > hw.machine_arch: amd64 > hw.snd.version: 2009061500/amd64 > hw.mca.amd10h_L1TP: 1 > dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors > dev.amdtemp.0.%driver: amdtemp > dev.amdtemp.0.%parent: hostb4 > dev.amdtemp.0.rtc.CurTmp: 36.6C > dev.amdtemp.0.rtc.CurTmpTjSel: -12.5C > dev.amdtemp.0.rtc.TmpSlewDnEn: 1 > dev.amdtemp.0.rtc.TmpMaxDiffUp: 3 > dev.amdtemp.0.rtc.PerStepTimeDn: 15 > dev.amdtemp.0.rtc.PerStepTimeUp: 15 > dev.amdtemp.0.rtc.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor0.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor0.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor0.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor0.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor0.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor0.status: 0 > dev.amdtemp.0.tsi.sensor0.cfg3: 0 > dev.amdtemp.0.tsi.sensor0.cfg9: 0 > dev.amdtemp.0.tsi.sensor0.upd_rate: 8 > dev.amdtemp.0.tsi.sensor0.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor0.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor0.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor0.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor0.revision: 1 > dev.amdtemp.0.tsi.sensor0.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor1.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor1.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor1.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor1.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor1.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor1.status: 0 > dev.amdtemp.0.tsi.sensor1.cfg3: 0 > dev.amdtemp.0.tsi.sensor1.cfg9: 0 > dev.amdtemp.0.tsi.sensor1.upd_rate: 8 > dev.amdtemp.0.tsi.sensor1.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor1.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor1.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor1.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor1.revision: 1 > dev.amdtemp.0.tsi.sensor1.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor2.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor2.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor2.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor2.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor2.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor2.status: 0 > dev.amdtemp.0.tsi.sensor2.cfg3: 0 > dev.amdtemp.0.tsi.sensor2.cfg9: 0 > dev.amdtemp.0.tsi.sensor2.upd_rate: 8 > dev.amdtemp.0.tsi.sensor2.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor2.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor2.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor2.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor2.revision: 1 > dev.amdtemp.0.tsi.sensor2.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor3.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor3.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor3.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor3.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor3.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor3.status: 0 > dev.amdtemp.0.tsi.sensor3.cfg3: 0 > dev.amdtemp.0.tsi.sensor3.cfg9: 0 > dev.amdtemp.0.tsi.sensor3.upd_rate: 8 > dev.amdtemp.0.tsi.sensor3.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor3.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor3.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor3.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor3.revision: 1 > dev.amdtemp.0.tsi.sensor3.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor4.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor4.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor4.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor4.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor4.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor4.status: 0 > dev.amdtemp.0.tsi.sensor4.cfg3: 0 > dev.amdtemp.0.tsi.sensor4.cfg9: 0 > dev.amdtemp.0.tsi.sensor4.upd_rate: 8 > dev.amdtemp.0.tsi.sensor4.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor4.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor4.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor4.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor4.revision: 1 > dev.amdtemp.0.tsi.sensor4.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor5.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor5.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor5.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor5.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor5.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor5.status: 0 > dev.amdtemp.0.tsi.sensor5.cfg3: 0 > dev.amdtemp.0.tsi.sensor5.cfg9: 0 > dev.amdtemp.0.tsi.sensor5.upd_rate: 8 > dev.amdtemp.0.tsi.sensor5.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor5.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor5.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor5.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor5.revision: 1 > dev.amdtemp.0.tsi.sensor5.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor6.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor6.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor6.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor6.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor6.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor6.status: 0 > dev.amdtemp.0.tsi.sensor6.cfg3: 0 > dev.amdtemp.0.tsi.sensor6.cfg9: 0 > dev.amdtemp.0.tsi.sensor6.upd_rate: 8 > dev.amdtemp.0.tsi.sensor6.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor6.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor6.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor6.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor6.revision: 1 > dev.amdtemp.0.tsi.sensor6.sensor_offset: 0 > dev.amdtemp.0.tsi.sensor7.cpu_temperature: 36.6C > dev.amdtemp.0.tsi.sensor7.high_temperature_threshold: 70.0C > dev.amdtemp.0.tsi.sensor7.low_temperature_threshold: 0.0C > dev.amdtemp.0.tsi.sensor7.cpu_temperature_offset_hi: 0 > dev.amdtemp.0.tsi.sensor7.cpu_temperature_offset_lo: 0 > dev.amdtemp.0.tsi.sensor7.status: 0 > dev.amdtemp.0.tsi.sensor7.cfg3: 0 > dev.amdtemp.0.tsi.sensor7.cfg9: 0 > dev.amdtemp.0.tsi.sensor7.upd_rate: 8 > dev.amdtemp.0.tsi.sensor7.timeout_cfg: 128 > dev.amdtemp.0.tsi.sensor7.alert_threshold: 0 > dev.amdtemp.0.tsi.sensor7.alert_cfg: 0 > dev.amdtemp.0.tsi.sensor7.manufacture_id: 0 > dev.amdtemp.0.tsi.sensor7.revision: 1 > dev.amdtemp.0.tsi.sensor7.sensor_offset: 0 >