From nobody Wed Mar 30 09:19:37 2022 X-Original-To: bugs@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 BC4B81A36F9C for ; Wed, 30 Mar 2022 09:19:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KT1953Q8pz3JJ5 for ; Wed, 30 Mar 2022 09:19:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 56036108A5 for ; Wed, 30 Mar 2022 09:19:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 22U9JbTC043929 for ; Wed, 30 Mar 2022 09:19:37 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 22U9Jb6p043928 for bugs@FreeBSD.org; Wed, 30 Mar 2022 09:19:37 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 262933] cpucontrol: incorrect detection of Intel CPU revision - wrong microcode file selected Date: Wed, 30 Mar 2022 09:19:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: moon300web@gmx.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648631977; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=OoJrwLYdKMMLeahTmnJ8Fu5fUJReCz1saVmT8W089Ao=; b=mRVhIuaC1Zev/2qgtgHkuO9NIpFqGIQpMFt5+3q3bUxK0wZEsSEqF79PZcK2KUuCdDVvy+ i9v/wiFwKcyHop8yTxGF7xyv29gUybQkS8ZsxEaNqOvXEwtuW29VRm9iyVfzduph6loVMf 1J3awYGFZ5nfOjd6jqMMn6Au480oaWlxX4S0eBa+C6W3UWyqVE6NfzKK1/Lmbb1rew3bGS wUe4f5qe28GuJc1BwhR4NmHfIk7b40OWvdlalJgXZETEyUnwN3ydburyXI8s4VHl2JbKsu /gyjjZDnCTlbG78Crj/cutD+CCT4xJDSLz9HBdvjzbg+Fs/YT+vId333aSgddw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648631977; a=rsa-sha256; cv=none; b=SlS5s0Qwzv7W77Nb3zEankl/Jd3xM53tHKIvPkpvRZycvmMKPKzniYUd053DMc1Og0embC YIlhH+L0dxdZKBzCWCqNqe7HIhCz/yKOAdP+epUbl4BDw/BnRC+NZD2O+q5EmlMC1Bqztt vDMIT1cG+hcJP4kCPQij1wNN8Wy67V/lk2vlIcsk8usy5V0ha2/bRl7opAQcEjRYV/ycTt uHX3zRvP2MuSU1MS7pLh0/wz/R5D5GlhtXxMIProBFKp1XSx7AmNKf/maEexptbevS5O7S TR0JcAYKHEvq+3aW/g07A5txjB3yrWpSC/rqCBgdcyrjoO79E+sfzZ37l65uYA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262933 Bug ID: 262933 Summary: cpucontrol: incorrect detection of Intel CPU revision - wrong microcode file selected Product: Base System Version: 13.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: moon300web@gmx.net This report is likely related to: Bug 192487 - cpucontrol uses unsafe procedure to detect current microcode version, which status' was set to Closed - fixed. (Note that I took over the "Severity/Hardware/OS" entries from that bug.) I'm updating my laptop's microcode as follows pkg install devcpu-data-intel vi /etc/loader.conf cpu_microcode_load=3D"YES" cpu_microcode_name=3D"/boot/firmware/06-8e-0c" (06-8e-0c downloaded from https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/tree/ma= in/intel-ucode) This seems to work: dmesg | grep -C 4 microcode VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID TSC: P-state invariant, performance statistics real memory =3D 8589934592 (8192 MB) avail memory =3D 7844245504 (7480 MB) CPU microcode: updated from 0xea to 0xec <---- System runs BIOS version 1.75, version 0xea, which is updated Event timer "LAPIC" quality 600 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 hardware threads cpupdate -i=20 Found CPU(s) from Intel Core 0 to 7: CPUID: 806ec Fam 06 Mod 8e Step 0c Flag 80 uCode 000000ec If cpucontrol is run manually it seems to try and load an incorrect microco= de file: cpucontrol -vv -u /dev/cpuctl0=20 cpucontrol: found cpu type 0 family 0x6 model 0xe stepping 0xc. .. /usr/local/share/cpucontrol/06-86-05.01: updating cpu /dev/cpuctl0 from r= ev 0xec to rev 0xb00000f... failed. <---- incorrect file! cpucontrol: ioctl(): File exists .. cpucontrol: skipping /usr/local/share/cpucontrol/06-8e-0c.94 of rev 0xea:= up to date .. cpucontrol: skipping /usr/local/share/cpucontrol/06-8e-0c of rev 0xec: up= to date There still seems to be something wrong in the detection of Intel CPU revis= ion on FreeBSD 13.0. Unclear why 06-86-05.01 would qualify as a valid update for this CPU revision (06-8e-0c) Running: FreeBSD 13.0-RELEASE-p10 on Lenovo T590 kernel: CPU: Intel(R) Core(TM) i5-8365U CPU @ 1.60GHz (1896.11-MHz K8-class CPU) kernel: Origin=3D"GenuineIntel" Id=3D0x806ec Family=3D0x6 Model=3D0x8e= =20 Stepping=3D12 --=20 You are receiving this mail because: You are the assignee for the bug.=