You are not logged in.

#1 2013-02-14 16:21:38

numand46
Member
From: Istanbul/Turkey
Registered: 2011-04-21
Posts: 9

[SOLVED]Loading microcode takes too long

Hi,

After upgrading kernel to 3.7.7-1, loading microcode takes about 1 minute for each CPU - there is 4 CPU.

dmesg | grep microcode
[    0.167174] perf_event_intel: PEBS disabled due to CPU errata, please upgrade microcode
[    0.813367] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x14
[   60.896909] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x14
[  120.990881] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x14
[  181.084839] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x14
[  241.178866] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
cat /sys/class/firmware/timeout
60
uname -a
Linux dem 3.7.7-1-ARCH #1 SMP PREEMPT Mon Feb 11 20:20:58 EET 2013 x86_64 GNU/Linux

Although intel-ucode is installed, microcode is not updated. If I unload then load microcode module, it is updated.

sudo udevadm control --log-priority=debug
sudo modprobe -r microcode
sudo modprobe -v microcode
insmod /lib/modules/3.7.7-1-ARCH/kernel/arch/x86/kernel/microcode.ko.gz

After this commands, related outputs from dmesg

[ 1096.093430] microcode: Microcode Update Driver: v2.00 removed.
[ 1096.094619] systemd-udevd[138]: seq 1728 forked new worker [676]
[ 1096.094631] systemd-udevd[675]: IMPORT builtin 'hwdb' /usr/lib/udev/rules.d/50-udev-default.rules:90
[ 1096.094650] systemd-udevd[138]: seq 1726 done with 0
[ 1096.094682] systemd-udevd[675]: device 0x72c470 has devpath '/devices/platform'
[ 1096.094756] systemd-udevd[676]: seq 1728 running
[ 1096.094803] systemd-udevd[675]: passed -1 bytes to netlink monitor 0x72c210
[ 1096.094821] systemd-udevd[676]: no db file to read /run/udev/data/+module:microcode: No such file or directory
[ 1096.094835] systemd-udevd[138]: seq 1727 done with 0
[ 1096.094862] systemd-udevd[675]: seq 1727 processed with 0
[ 1096.094935] systemd-udevd[676]: passed -1 bytes to netlink monitor 0x703850
[ 1096.094948] systemd-udevd[676]: seq 1728 processed with 0
[ 1096.095008] systemd-udevd[138]: seq 1728 done with 0
[ 1110.774381] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x14
[ 1110.776614] systemd-udevd[680]: device 0x729ba0 has devpath '/devices/platform'
[ 1110.776874] systemd-udevd[680]: IMPORT builtin 'kmod' /usr/lib/udev/rules.d/80-drivers.rules:5
[ 1110.776914] systemd-udevd[680]: execute 'load' 'platform:microcode'
[ 1110.777103] systemd-udevd[680]: no module matches 'platform:microcode'
[ 1110.777569] systemd-udevd[680]: seq 1730 processed with 0
[ 1110.777787] systemd-udevd[138]: seq 1730 done with 0
[ 1110.794677] microcode: CPU0 updated to revision 0x28, date = 2012-04-24
[ 1110.794781] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x14
[ 1110.795839] microcode: CPU1 updated to revision 0x28, date = 2012-04-24
[ 1110.795848] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x14
[ 1110.796206] microcode: CPU2 updated to revision 0x28, date = 2012-04-24
[ 1110.796220] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x14
[ 1110.796587] microcode: CPU3 updated to revision 0x28, date = 2012-04-24
[ 1110.796590] perf_event_intel: PEBS enabled due to microcode update
[ 1110.796657] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba

Some other informations:
From /etc/mkinitcpio.conf

MODULES="microcode i915"
HOOKS="base udev autodetect modconf block filesystems keyboard fsck consolefont keymap"
sudo pacman -Q intel-ucode
intel-ucode 20120606_v2-1
sudo find / -name "*ucode*"
/usr/lib/firmware/intel-ucode
/usr/share/licenses/intel-ucode
sudo find / -name "*microcode*"
/sys/bus/platform/devices/microcode
/sys/devices/system/cpu/cpu0/microcode
/sys/devices/system/cpu/cpu1/microcode
/sys/devices/system/cpu/cpu2/microcode
/sys/devices/system/cpu/cpu3/microcode
/sys/devices/system/cpu/microcode
/sys/devices/virtual/misc/microcode
/sys/devices/platform/microcode
/sys/class/misc/microcode
/sys/module/microcode
/usr/lib/modules/3.7.7-1-ARCH/kernel/arch/x86/kernel/microcode.ko.gz
/dev/cpu/microcode

Could you help me to solve this problem?

Last edited by numand46 (2013-02-14 16:57:33)

Offline

#2 2013-02-14 16:44:35

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Loading microcode takes too long

Loading microcode from the initramfs is a braindead idea.  Do not do this. Your firmware requests are timing out since you haven't included the the files on the initramfs which is what causes your delays.

Last edited by falconindy (2013-02-14 16:44:56)

Offline

#3 2013-02-14 16:54:07

numand46
Member
From: Istanbul/Turkey
Registered: 2011-04-21
Posts: 9

Re: [SOLVED]Loading microcode takes too long

Thank you @falconindy. I removed microcode from MODULES of mkinitcpio.conf, regenerate initramfs and reboot. Now everything is how it should be.

While I was using kernels which are older than 3.7.7-1, why did such problem not happen?

Last edited by numand46 (2013-02-14 16:55:13)

Offline

Board footer

Powered by FluxBB