Bug#683161: intel-microcode: does not work with IUCODE_TOOL_SCANCPUS=yes

July 29th, 2012 - 06:40 am ET by Sebastian Andrzej Siewior | Report spam
Package: intel-microcode
Version: 1.20120606.2

The cpuid driver is required for this to work, without it it fails silently:

|# iucode_tool -v -S
|iucode_tool: checked the signature of 0 processor(s)
|# echo $?
|0

This fix this, the /usr/share/initramfs-tools/hooks/intel-microcode could
be modified to something like this

|if [ -z "${IUCODE_TOOL}" -o "${IUCODE_TOOL_SCANCPUS}" != "yes" ] ; then
| verbose "Adding microcode for all Intel processor models"
|else
| verbose "Adding microcode for currently online Intel processors"
| if [ $(grep cpu/cpuid /proc/devices | wc -l) -eq 0 ]
| then
| modprobe cpuid
| fi
| if [ $(grep cpu/cpuid /proc/devices | wc -l) -eq 1 ]
| then
| IUCODE_TOOL_OPTIONS="${IUCODE_TOOL_OPTIONS} --scan-system"
| else
| verbose "msr module not found. IUCODE_TOOL_SCANCPUS can not work"
| fi
|fi

Sebastian


To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 1 replyReplies Make a reply

Replies

#1 Henrique de Moraes Holschuh
July 29th, 2012 - 09:10 am ET | Report spam
severity 683161 important
tag 683161 confirmed
clone 683161 -1
reassign -1 iucode-tool
retitle -1 iucode-tool: bad --scan-system failure mode
found -1 iucode-tool/0.8-1
tags -1 + fixed-upstream confirmed
tags 683161 + patch
thanks

On Sun, 29 Jul 2012, Sebastian Andrzej Siewior wrote:
Package: intel-microcode
Version: 1.20120606.2

The cpuid driver is required for this to work, without it it fails silently:



Yes. I have iucode-tool 0.8.2 undergoing testing, and it changes two
things when cpuid fails: 1. it complains, and 2. it fails safely (includes
all microcodes).

I will upload it shortly.

This fix this, the /usr/share/initramfs-tools/hooks/intel-microcode could
be modified to something like this

|if [ -z "${IUCODE_TOOL}" -o "${IUCODE_TOOL_SCANCPUS}" != "yes" ] ; then
| verbose "Adding microcode for all Intel processor models"
|else
| verbose "Adding microcode for currently online Intel processors"
| if [ $(grep cpu/cpuid /proc/devices | wc -l) -eq 0 ]
| then
| modprobe cpuid
| fi
| if [ $(grep cpu/cpuid /proc/devices | wc -l) -eq 1 ]
| then
| IUCODE_TOOL_OPTIONS="${IUCODE_TOOL_OPTIONS} --scan-system"
| else
| verbose "msr module not found. IUCODE_TOOL_SCANCPUS can not work"
| fi
|fi



Something like that, yes. I will fix it in intel-microcode so that it
modprobes cpuid.

Thanks for the report.

"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh


To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact

Similar topics