From owner-freebsd-questions@freebsd.org Mon Jul 12 19:18:50 2021 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BFE61665251 for ; Mon, 12 Jul 2021 19:18:50 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from mail.nomadlogic.org (mail.nomadlogic.org [66.165.241.226]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.nomadlogic.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNtpx66SHz3NWw for ; Mon, 12 Jul 2021 19:18:49 +0000 (UTC) (envelope-from pete@nomadlogic.org) Received: from [192.168.1.160] (cpe-24-24-163-126.socal.res.rr.com [24.24.163.126]) by mail.nomadlogic.org (OpenSMTPD) with ESMTPSA id 1d086ce6 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 12 Jul 2021 19:18:40 +0000 (UTC) Subject: Re: AMD Processor hwpstate_intel.1 loaded To: freebsd-questions@freebsd.org References: <95d1d130-9f23-2506-fe48-ea7cbd774e89@wavecable.com> From: Pete Wright Message-ID: <14865d35-4204-abbd-16ae-5a8b46baca87@nomadlogic.org> Date: Mon, 12 Jul 2021 12:18:38 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <95d1d130-9f23-2506-fe48-ea7cbd774e89@wavecable.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4GNtpx66SHz3NWw X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.82 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[nomadlogic.org:s=04242021]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[66.165.241.226:from:127.0.2.255]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[nomadlogic.org:+]; DMARC_POLICY_ALLOW(-0.50)[nomadlogic.org,quarantine]; NEURAL_HAM_SHORT(-0.82)[-0.816]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[66.165.241.226:from]; ASN(0.00)[asn:29802, ipnet:66.165.240.0/22, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-questions] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jul 2021 19:18:50 -0000 On 7/11/21 10:02 PM, Thomas D. Dean wrote: > > uname -a > FreeBSD aorus 13.0-RELEASE FreeBSD 13.0-RELEASE #0: >    Sat Jul 10 23:47:01 PDT 2021 >    tomdean@aorus:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64 > > > dmesg | tail -3 > Security policy loaded: MAC/ntpd (mac_ntpd) > interface hwpstate_intel.1 already present in the KLD 'kernel'! > linker_load_file: /boot/kernel/cpufreq.ko - unsupported file type > > Cpu is AMD Ryzen Threadripper 3970X > > Current CPU speed is 3700 MHz.  Should go to 4550 Mhz.  How do I get > there. > > Does hwpstate_intel.1 support the AMD 3970X or, is it intel specific > as the name suggests? > > sys/amd64/conf/GENERIC has > # CPU frequency control > device          cpufreq > > Should this compile in the cpufreq driver? i can confirm same issue loading cpufreq.ko on my ryzen system running 14-current.  interestingly enough these sysctl oid's are available: dev.cpufreq.0.freq_driver: hwpstate0 dev.hwpstate.0.freq_settings: 3600/4275 3200/3260 2200/1842 dev.hwpstate.0.%parent: cpu0 dev.hwpstate.0.%pnpinfo: dev.hwpstate.0.%location: dev.hwpstate.0.%driver: hwpstate dev.hwpstate.0.%desc: Cool`n'Quiet 2.0 which makes sense as cpufreq(4) states: hwpstate            AMD Cool'n'Quiet2 used in K10 through Family 17h whereas hwpstate_intel is "SpeedShift" specific. are you seeeing anything under dev.hwpstate.*? -pete -- Pete Wright pete@nomadlogic.org @nomadlogicLA