From owner-freebsd-hackers@freebsd.org Wed Mar 14 16:54:57 2018 Return-Path: Delivered-To: freebsd-hackers@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 2664B62E5 for ; Wed, 14 Mar 2018 16:54:57 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: from mail-ot0-x232.google.com (mail-ot0-x232.google.com [IPv6:2607:f8b0:4003:c0f::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AB3C46AC82 for ; Wed, 14 Mar 2018 16:54:56 +0000 (UTC) (envelope-from sblachmann@gmail.com) Received: by mail-ot0-x232.google.com with SMTP id m22-v6so3932245otf.10 for ; Wed, 14 Mar 2018 09:54:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=euBwUfSGBsFmXowRfFpWERNetGwelr6HQeLBZEG17aw=; b=R+XhAk/YBXu1njH4pWqhxfY4dzvtUVkQ6l2Xio/aI/w2nwZftDMo9l7sVJcUz0LwPt 4WAEoQSObKRG/eyrErQ08YLsO9jRwJ3SfyKswMGD+HARuYY4qKKlWT9dV59uc3U6OFrD LCtbQFTshacusPRdkpAy5RhiL8PtSYY8QoCPo06/Lfkxz+/b9GJhQN7wvCXRobcFFHG9 bDn3yOVX2aoyJn622ryajtybGGn8TvPJ5K9c4iVGI8kEuzhRqgBlvmc9UXsJZnBAdmDf vWeMoFsuhE5Wby6Og3Ficxu3levWvx4lT9zTWT3UHXt0pcH4zhSYkfcS5MiZ8yKDz+Uk GFjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=euBwUfSGBsFmXowRfFpWERNetGwelr6HQeLBZEG17aw=; b=SD2FyqCsDZkY8HBTLYu1WY1bH+LAqrP4jKtPtQgJCRWT3ZIRwr91OQHyEBXX5sipv5 aF4hma++4VqpMTdaHxXvh/HnPpfU8GBkDTGy6qVyFo34B6x/y57V1cdGaF6SkUXrm81B zG/rG72NILvwZiqegqxx8Ry50QlaM4FOJ76NoijpfyuFk7OgI8UnPuYZPNMDXl158aCJ jEMgYNl2mh9mBgkzkuDLJCl137tjk0Z57mIaHqcB6o57JF5eqKFHhiuv9yUXNHIESE67 DGMVuMls6UzmckIc++rvcN9tZS9DSzHfyObce03NPcrdIUYxcdnEC7rZvSuMNrC4hbll n4lQ== X-Gm-Message-State: AElRT7Eseaw8EQddZdnJg0ibZ/eDxPpq3d/maP/o0DqAqdp54XdbwIc9 FqdW1aBsBJrHWplNmO+cj8kX0qSXVZ3TddqHLbg= X-Google-Smtp-Source: AG47ELtAHrTYLv2fKPskj8/okgoH/+s3aOV4tzioIz1EvhTDT5oE58zpixKZJx7HGcnEeqcXRg4Qbe/JDRV1bWsuu+w= X-Received: by 10.157.89.158 with SMTP id u30mr3650695oth.294.1521046496066; Wed, 14 Mar 2018 09:54:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.49.99 with HTTP; Wed, 14 Mar 2018 09:54:55 -0700 (PDT) In-Reply-To: References: From: Stefan Blachmann Date: Wed, 14 Mar 2018 17:54:55 +0100 Message-ID: Subject: Re: cpupdate : Unsupported version for Intel CPU? To: Ruben Cc: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Mar 2018 16:54:57 -0000 Hi Ruben, thank you for your feedback! The tool is intended for all Intel cpus. I wonder whether there might be a download error? To verify this here is the SHA256 checksum: % sha256 /home/stefan/Downloads/Intel/Intel/cpu206C2_plat03_ver0000001D_201= 5-08-04_PRD_F7DC758B.bin SHA256 (/home/stefan/Downloads/Intel/Intel/cpu206C2_plat03_ver0000001D_2015= -08-04_PRD_F7DC758B.bin) =3D 8f0f2d80ea3ffa0c4993445a49c42751ebe04dfcea19c25d1951870daac45d9a % What makes me wonder too is the size (30KB) that is shown in your log: % ll /home/stefan/Downloads/Intel/Intel/cpu206C2_plat03_ver0000001D_2015-08= -04_PRD_F7DC758B.bin -rw-r--r-- 1 stefan stefan 9216 Mar 11 18:40 /home/stefan/Downloads/Intel/Intel/cpu206C2_plat03_ver0000001D_2015-08-04_P= RD_F7DC758B.bin Please can you check that size and checksum are correct? If they are, please let me know so that I can investigate what might have happened else. Anyway I did a major rework of the tool and added new functions and documentation in the last days. Will upload that tonight or tomorrow. I'll email when it's on github. Have a nice day! Stefan On 3/14/18, Ruben wrote: > Hi Stefan, > > > Is this tool intended to be compatible with all intel CPU's or is it > just for a specific subset of Intel CPU's (or subset=C2=A0 perhaps of > microcode images)? > > The reason I'm asking is because I've just given your tool a try and got > an "error" message (see below). I have not tried using the traditional > tools yet (devcpu). > > Any feedback appreciated! > > > Kind regards, > > > Ruben > > [root@fbh4:/usr/home/ruben]# git clone > https://github.com/kernschmelze/cpupdate > > [ snip ] > > [root@fbh4:/usr/home/ruben]# cd cpupdate/ > [root@bh4:/usr/home/ruben/cpupdate]# make > echo cpupdate.full: /usr/lib/libc.a=C2=A0 >> .depend > Warning: Object directory not changed from original > /usr/home/ruben/cpupdate > cc -O2 -pipe=C2=A0=C2=A0 -g -MD=C2=A0 -MF.depend.cpupdate.o -MTcpupdate.o= -std=3Dgnu99 > -fstack-protector-strong=C2=A0=C2=A0=C2=A0 -Qunused-arguments=C2=A0 -c cp= update.c -o cpupdate.o > cc -O2 -pipe=C2=A0=C2=A0 -g -MD=C2=A0 -MF.depend.intel.o -MTintel.o -std= =3Dgnu99 > -fstack-protector-strong=C2=A0=C2=A0=C2=A0 -Qunused-arguments=C2=A0 -c in= tel.c -o intel.o > cc -O2 -pipe -g -std=3Dgnu99 -fstack-protector-strong -Qunused-arguments > -o cpupdate.full cpupdate.o intel.o > objcopy --only-keep-debug cpupdate.full cpupdate.debug > objcopy --strip-debug --add-gnu-debuglink=3Dcpupdate.debug=C2=A0 cpupdate= .full > cpupdate > gzip -cn cpupdate.8 > cpupdate.8.gz > [root@fbh4:/usr/home/ruben/cpupdate]# > > [root@fbh4:/usr/home/ruben/cpupdate]# ./cpupdate -i > Found CPU(s) from Intel > Processor Core: 0 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 1 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 2 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 3 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 4 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 5 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 6 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 7 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 8 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 9 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 10 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 11 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 12 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 13 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 14 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > Processor Core: 15 > -> CPUID: 206c2=C2=A0 Family: 06=C2=A0 Model: 2C=C2=A0 Stepping: 02=C2=A0= uCodeRev: 00000013 > > [root@fbh4:/usr/home/ruben/cpupdate]# fetch > https://github.com/platomav/CPUMicrocodes/blob/master/Intel/cpu206C2_plat= 03_ver0000001D_2015-08-04_PRD_F7DC758B.bin > fetch: > https://github.com/platomav/CPUMicrocodes/blob/master/Intel/cpu206C2_plat= 03_ver0000001D_2015-08-04_PRD_F7DC758B.bin: > size of remote file is not known > cpu206C2_plat03_ver0000001D_2015-08-04_PRD_F7D=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 30 kB=C2=A0 270 kBps > 00m00s > > [root@fbh4:/usr/home/ruben/cpupdate]# ./cpupdate -vv -I -f > /usr/home/ruben/cpupdate/cpu206C2_plat03_ver0000001D_2015-08-04_PRD_F7DC7= 58B.bin > Unsupported version > Error in [first] header > [root@fbh4:/usr/home/ruben/cpupdate]# >