From nobody Tue Jul 25 12:42:28 2023 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4R9Grs2Z3dz4pcQn for ; Tue, 25 Jul 2023 12:42:37 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [IPv6:2607:f3e0:0:1::12]) (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 "smarthost1.sentex.ca", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4R9Grr3Tqxz3HDV; Tue, 25 Jul 2023 12:42:36 +0000 (UTC) (envelope-from mike@sentex.net) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of mike@sentex.net designates 2607:f3e0:0:1::12 as permitted sender) smtp.mailfrom=mike@sentex.net; dmarc=none Received: from pyroxene2a.sentex.ca (pyroxene19.sentex.ca [199.212.134.19]) by smarthost1.sentex.ca (8.17.1/8.16.1) with ESMTPS id 36PCgRpx087057 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 08:42:27 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [IPV6:2607:f3e0:0:4::29] ([IPv6:2607:f3e0:0:4:0:0:0:29]) by pyroxene2a.sentex.ca (8.16.1/8.15.2) with ESMTPS id 36PCgROX042274 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 25 Jul 2023 08:42:27 -0400 (EDT) (envelope-from mike@sentex.net) Message-ID: Date: Tue, 25 Jul 2023 08:42:28 -0400 List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Content-Language: en-US To: FreeBSD Questions From: mike tancsa Subject: AMD microcode updates (sysutils/devcpu-data-amd) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 X-Spamd-Result: default: False [-3.40 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f3e0::/32]; RCVD_IN_DNSWL_LOW(-0.10)[199.212.134.19:received]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:11647, ipnet:2607:f3e0::/32, country:CA]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[mike]; TO_DN_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[sentex.net]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4R9Grr3Tqxz3HDV X-Spamd-Bar: --- Hi All,     Was looking to update the handful of AMD based servers I have for the Zenbleed patch.  I am used to Intel CPUs where they get updated at boot time in /boot/firmware.  But when I install the AMD port, I dont see it ever installed there.  If I do a userland start # /usr/local/etc/rc.d/microcode_update start Updating CPU Microcode... Done. # it seems to work, in that dmesg shows CPU: AMD EPYC 7302P 16-Core Processor                (3000.06-MHz K8-class CPU)   Origin="AuthenticAMD"  Id=0x830f10  Family=0x17  Model=0x31 Stepping=0 Features=0x178bfbff Features2=0x7ed8320b   AMD Features=0x2e500800   AMD Features2=0x75c237ff>   Structured Extended Features=0x219c91a9   Structured Extended Features2=0x400004   XSAVE Features=0xf   AMD Extended Feature Extensions ID EBX=0x18cf757   SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=32768   TSC: P-state invariant, performance statistics But how do I know if the microcode got updated ? The dmesg displaying the features are the same. Is there a command to show the microcode version before and after  for AMD CPUs ? Thanks!     ---Mike