From owner-freebsd-current@freebsd.org Wed Mar 8 08:02:43 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BA1DD002E2 for ; Wed, 8 Mar 2017 08:02:43 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from smtp.smtpout.orange.fr (smtp06.smtpout.orange.fr [80.12.242.128]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Bizanga Labs SMTP Client Certificate", Issuer "Bizanga Labs CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 5B6C01913 for ; Wed, 8 Mar 2017 08:02:41 +0000 (UTC) (envelope-from olivier@freebsd.org) Received: from mail-qk0-f177.google.com ([209.85.220.177]) by mwinf5d63 with ME id tL2W1u00e3qEqs103L2XA3; Wed, 08 Mar 2017 09:02:31 +0100 X-ME-Helo: mail-qk0-f177.google.com X-ME-Auth: Y29jaGFyZC1sYWJiZS5vbGl2aWVyQG9yYW5nZS5mcg== X-ME-Date: Wed, 08 Mar 2017 09:02:31 +0100 X-ME-IP: 209.85.220.177 Received: by mail-qk0-f177.google.com with SMTP id 1so51129966qkl.3; Wed, 08 Mar 2017 00:02:31 -0800 (PST) X-Gm-Message-State: AMke39mk/K0lOvVNIyprnbybF9ioLTCnI+wiQ+lVy1/U+GKpM2BtGO44wEyrVU8ZuslZgW76nMks3taaTU85bA== X-Received: by 10.129.107.137 with SMTP id g131mr1131957ywc.2.1488960145696; Wed, 08 Mar 2017 00:02:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.178.4 with HTTP; Wed, 8 Mar 2017 00:02:05 -0800 (PST) In-Reply-To: <20170308092919.54eb97b5@rimwks> References: <20170306050431.6fff2cbe@rimwks> <20170308092919.54eb97b5@rimwks> From: =?UTF-8?Q?Olivier_Cochard=2DLabb=C3=A9?= Date: Wed, 8 Mar 2017 09:02:05 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: AMD CPU/APU temperature driver To: Rozhuk Ivan Cc: "freebsd-current@freebsd.org" , freebsd-drivers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2017 08:02:43 -0000 On Wed, Mar 8, 2017 at 7:29 AM, Rozhuk Ivan wrote: > > Try now with last version of patch. > > =E2=80=8BCompile now and works on PC Engine APU1 and APU2: [root@APU]~# kenv smbios.planar.product APU [root@APU]~# kldload amdtemp amdtemp0: on hostb4 [root@APU]~# sysctl dev.amdtemp dev.amdtemp.0.rtc.sensor_offset: 0 dev.amdtemp.0.rtc.PerStepTimeUp: 15 dev.amdtemp.0.rtc.PerStepTimeDn: 15 dev.amdtemp.0.rtc.TmpMaxDiffUp: 3 dev.amdtemp.0.rtc.TmpSlewDnEn: 1 dev.amdtemp.0.rtc.CurTmpTjSel: -1.4C dev.amdtemp.0.rtc.CurTmp: 47.6C dev.amdtemp.0.htc.PslApicLoEn: 0 dev.amdtemp.0.htc.PslApicHiEn: 0 dev.amdtemp.0.htc.HtcActSts: 0 dev.amdtemp.0.htc.HtcAct: 0 dev.amdtemp.0.htc.HtcPstateLimit: 2 dev.amdtemp.0.htc.HtcSlewSel: 0 dev.amdtemp.0.htc.HtcLock: 0 dev.amdtemp.0.htc.HtcEn: 1 dev.amdtemp.0.htc.HtcHystLmt: 3.1C dev.amdtemp.0.htc.HtcTmpLmt: 100.1C dev.amdtemp.0.%parent: hostb4 dev.amdtemp.0.%pnpinfo: dev.amdtemp.0.%location: dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.%parent: =E2=80=8B [root@apu2]~# kenv smbios.planar.product apu2 [root@apu2]~# kldload amdtemp amdtemp0: on hostb5 [root@apu2]~# sysctl dev.cpu.0.temperature dev.cpu.0.temperature: 53.9C [root@apu2]~# sysctl dev.amdtemp dev.amdtemp.0.rtc.sensor_offset: 0 dev.amdtemp.0.rtc.PerStepTimeUp: 15 dev.amdtemp.0.rtc.PerStepTimeDn: 15 dev.amdtemp.0.rtc.TmpMaxDiffUp: 3 dev.amdtemp.0.rtc.TmpSlewDnEn: 1 dev.amdtemp.0.rtc.CurTmpTjSel: 4.6C dev.amdtemp.0.rtc.CurTmp: 53.6C dev.amdtemp.0.htc.PslApicLoEn: 0 dev.amdtemp.0.htc.PslApicHiEn: 0 dev.amdtemp.0.htc.HtcActSts: 1 dev.amdtemp.0.htc.HtcAct: 0 dev.amdtemp.0.htc.HtcPstateLimit: 4 dev.amdtemp.0.htc.HtcSlewSel: 0 dev.amdtemp.0.htc.HtcLock: 0 dev.amdtemp.0.htc.HtcEn: 1 dev.amdtemp.0.htc.HtcHystLmt: 1.1C dev.amdtemp.0.htc.HtcTmpLmt: 105.1C dev.amdtemp.0.%parent: hostb5 dev.amdtemp.0.%pnpinfo: dev.amdtemp.0.%location: dev.amdtemp.0.%driver: amdtemp dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors dev.amdtemp.%parent: