From owner-freebsd-amd64@freebsd.org Fri Apr 5 11:46:25 2019 Return-Path: Delivered-To: freebsd-amd64@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 823E51574392 for ; Fri, 5 Apr 2019 11:46:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E40F28DBF0 for ; Fri, 5 Apr 2019 11:46:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x35BkH1s005986 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 5 Apr 2019 14:46:20 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x35BkH1s005986 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x35BkH6c005985; Fri, 5 Apr 2019 14:46:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 5 Apr 2019 14:46:17 +0300 From: Konstantin Belousov To: Mark Millard Cc: freebsd-amd64@freebsd.org Subject: Re: head -r345758 Ryzen Threadripper 1950X vs. amdtemp.ko : dev.cpu.31 missing Message-ID: <20190405114617.GC1923@kib.kiev.ua> References: <403763BB-4DB9-488F-9480-C71871ED66B5@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <403763BB-4DB9-488F-9480-C71871ED66B5@yahoo.com> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2019 11:46:25 -0000 On Thu, Apr 04, 2019 at 04:58:15PM -0700, Mark Millard via freebsd-amd64 wrote: > On a: > > CPU: AMD Ryzen Threadripper 1950X 16-Core Processor (3393.70-MHz K8-class CPU) > Origin="AuthenticAMD" Id=0x800f11 Family=0x17 Model=0x1 Stepping=1 > Features=0x178bfbff > Features2=0x7ed8320b > AMD Features=0x2e500800 > AMD Features2=0x35c233ff > Structured Extended Features=0x209c01a9 > XSAVE Features=0xf > AMD Extended Feature Extensions ID EBX=0x1007 > SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768 > TSC: P-state invariant, performance statistics > > after "kldload amdtemp" the following is seen: > > # sysctl dev.cpu.31 > sysctl: unknown oid 'dev.cpu.31' > > # sysctl dev.cpu.30 > dev.cpu.30.temperature: 62.1C > dev.cpu.30.cx_method: C1/hlt C2/io > dev.cpu.30.cx_usage_counters: 0 0 > dev.cpu.30.cx_usage: 0.00% 0.00% last 1000000us > dev.cpu.30.cx_lowest: C1 > dev.cpu.30.cx_supported: C1/1/0 C2/2/100 > dev.cpu.30.%parent: acpi0 > dev.cpu.30.%pnpinfo: _HID=none _UID=0 > dev.cpu.30.%location: handle=\_PR_.C01F > dev.cpu.30.%driver: cpu > dev.cpu.30.%desc: ACPI CPU > > # sysctl -a | grep "temp.*[0-9]C$" > dev.amdtemp.1.core0.sensor0: 62.0C > dev.amdtemp.0.core0.sensor0: 62.1C > dev.cpu.30.temperature: 62.1C > dev.cpu.29.temperature: 62.1C > dev.cpu.28.temperature: 62.1C > dev.cpu.27.temperature: 62.1C > dev.cpu.26.temperature: 62.1C > dev.cpu.25.temperature: 62.1C > dev.cpu.24.temperature: 62.1C > dev.cpu.23.temperature: 62.1C > dev.cpu.22.temperature: 62.1C > dev.cpu.21.temperature: 62.1C > dev.cpu.20.temperature: 62.1C > dev.cpu.19.temperature: 62.1C > dev.cpu.18.temperature: 62.1C > dev.cpu.17.temperature: 62.1C > dev.cpu.16.temperature: 62.1C > dev.cpu.15.temperature: 62.1C > dev.cpu.14.temperature: 62.1C > dev.cpu.13.temperature: 62.1C > dev.cpu.12.temperature: 62.1C > dev.cpu.11.temperature: 62.1C > dev.cpu.10.temperature: 62.1C > dev.cpu.9.temperature: 62.1C > dev.cpu.8.temperature: 62.1C > dev.cpu.7.temperature: 62.1C > dev.cpu.6.temperature: 62.1C > dev.cpu.5.temperature: 62.1C > dev.cpu.4.temperature: 62.1C > dev.cpu.3.temperature: 62.1C > dev.cpu.2.temperature: 62.1C > dev.cpu.1.temperature: 62.1C > dev.cpu.0.temperature: 62.1C In the output of devinfo(8), how many CPUs do you see ? Is there cpu31, and does it have amdtemp child ?