From: Andrey Liakhovets <a.o.liakh@gmail.com>
To: community@lists.altlinux.org
Subject: Re: [Comm] Обновление микрокода CPU в P8
Date: Sun, 14 Jan 2018 13:47:11 +0300
Message-ID: <76d5b0f9-3f94-087f-8575-5cc1c33e3489@gmail.com> (raw)
In-Reply-To: <201801101957.23566.a_s_y@sama.ru>
10.01.2018 18:57, Sergey пишет:
> On Wednesday 10 January 2018, you wrote:
>
>> $ dmesg |grep microcode
>> [ 0.609516] microcode: sig=0x306a9, pf=0x10, revision=0x1c
>> [ 0.609641] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
>
> О! А что это оно в messages не попало у меня параллельно ?.. Странно. Тем не менее,
> ответ на мой вопрос "где смотреть". :-)
>
>> оно загрузилось?
>
> Наверное нет, так как у меня, где микрокод в initrd добавился, написано
>
> [ 0.000000] microcode: microcode updated early to revision 0x2e, date = 2004-08-11
> [ 0.916378] microcode: sig=0xf29, pf=0x4, revision=0x2e
> [ 0.916806] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
>
> Есть ещё один вариант, как раз из двух строк:
>
> [ 0.355801] microcode: sig=0xf41, pf=0x10, revision=0x17
> [ 0.356085] microcode: Microcode Update Driver: v2.01 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
>
> И вот тут микрокод и в initrd не попал, то есть, в моём случае, не загрузился точно.
У меня ни на одном из компьютеров с P8 микрокод не грузится (early).
Руками -- нормально (echo 1 > /sys/devices/system/cpu/microcode/reload,
я из intel-microcode.bin всё извлёк с помощью iucode_tool, всё равно мне
для P7 они были нужны).
Выяснилось, что при создании initrd сначала cpio с микрокодом
пристыковывается спереди к cpio с initrd, а только потом всё это
сжимается (gzip). Результат -- нет загрузки микрокода.
Если сперва cpio с initrd сжать, а потом к сжатому спереди приделать
cpio с микрокодом, то всё начинает работать.
Проверил на одном из компов, "разобрав" готовый initrd и сделав из него
описанный выше.
В результате в dmesg самой первой строкой появляется:
[ 0.000000] microcode: microcode updated early to revision 0x21, date
= 2017-11-20
Глянул в make-inird (в P8).
Похоже, надо сделать зависимость ucode: compress.
...
Действительно, с таким изменением работает:
--- /usr/share/make-initrd/features/ucode/rules.mk.orig 2017-12-04
11:56:16.000000000 +0300
+++ /usr/share/make-initrd/features/ucode/rules.mk 2018-01-14
13:30:29.495788524 +0300
@@ -1,4 +1,4 @@
-ucode:
+ucode: compress
@echo "Adding CPU microcode ..."
@$(ADD_UCODE)
@if [ -s "$(WORKDIR)/ucode.cpio" ]; then \
(Но вдруг кому-нибудь понадобится несжатый initrd с early микрокодом...)
Андрей Ляховец
prev parent reply other threads:[~2018-01-14 10:47 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 18:24 [Comm] Обновление микрокода CPU в P7 Michael A. Kangin
2018-01-06 9:05 ` Michael Shigorin
2018-01-10 14:10 ` [Comm] Обновление микрокода CPU в P8 Sergey
2018-01-20 21:18 ` Sergey
2018-01-21 10:07 ` Sergey
2018-01-23 5:50 ` Sergey
2018-01-28 8:26 ` Sergey
2018-01-29 7:40 ` Andrew Borodin
2018-01-29 8:53 ` Sergey
2018-02-04 14:52 ` Sergey
2018-09-24 20:43 ` Sergey
2018-01-10 14:25 ` [Comm] Обновление микрокода CPU в P7 Maks Re
2018-01-10 14:51 ` Sergey
2018-01-10 15:08 ` Maks Re
2018-01-10 15:39 ` Alexey Borisenkov
2018-01-10 15:52 ` Alexey Borisenkov
2018-01-10 16:00 ` Alexey Borisenkov
2018-01-11 8:14 ` Michael Shigorin
2018-01-11 11:22 ` Sergey
2018-01-12 20:37 ` Sergey
2018-01-12 21:00 ` Anton Gorlov
2018-01-12 21:55 ` Sergey
2018-01-12 22:21 ` Sergey
2018-01-13 8:34 ` Anton Gorlov
2018-01-13 10:35 ` Sergey
2018-01-10 15:57 ` [Comm] Обновление микрокода CPU в P8 Sergey
2018-01-14 10:47 ` Andrey Liakhovets [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76d5b0f9-3f94-087f-8575-5cc1c33e3489@gmail.com \
--to=a.o.liakh@gmail.com \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git