From owner-freebsd-amd64@freebsd.org Sat Apr 6 16:50:44 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 4629B1564432 for ; Sat, 6 Apr 2019 16:50:44 +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 9456C884F2 for ; Sat, 6 Apr 2019 16:50:43 +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 x36GoVB9032428 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 6 Apr 2019 19:50:35 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x36GoVB9032428 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x36GoVUs032424; Sat, 6 Apr 2019 19:50:31 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 6 Apr 2019 19:50:31 +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: <20190406165031.GK1923@kib.kiev.ua> References: <403763BB-4DB9-488F-9480-C71871ED66B5@yahoo.com> <20190405114617.GC1923@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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: Sat, 06 Apr 2019 16:50:44 -0000 On Fri, Apr 05, 2019 at 11:47:58AM -0700, Mark Millard wrote: > > > On 2019-Apr-5, at 04:46, Konstantin Belousov wrote: > > > 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 > >> > >> . . . > > > > In the output of devinfo(8), how many CPUs do you see ? Is there cpu31, > > and does it have amdtemp child ? > > (I only used 'sysctl -a | grep "temp.*[0-9]C$"' as a short > way to show one line per dev.cpu.N so show the others were > all present.) > > cpu31 is missing in the devinfo output. The amdtempM's are under > pcibX > pciY > hostbZ , not per cpuN . > > Shortended output but showing all the cpuN and amdtmpM > and their "parents" and "childern": > > # devinfo > nexus0 > cryptosoft0 > vtvga0 > apic0 > ram0 > acpi0 > cpu0 > hwpstate0 > cpufreq0 > cpu1 > cpu2 > cpu3 > cpu4 > cpu5 > cpu6 > cpu7 > cpu8 > cpu9 > cpu10 > cpu11 > cpu12 > cpu13 > cpu14 > cpu15 > cpu16 > cpu17 > cpu18 > cpu19 > cpu20 > cpu21 > cpu22 > cpu23 > cpu24 > cpu25 > cpu26 > cpu27 > cpu28 > cpu29 > cpu30 > pcib0 > pci0 > hostb0 > amdsmn0 > amdtemp0 > . . , > pcib12 > pci12 > hostb23 > amdsmn1 > amdtemp1 > . . . Ok, I see, it was unexpected to see amdtemp to attach under the host bridge instead of cpu device. Please post complete output of devinfo -r and pciconf -lvcb somewhere.