On Mon, 15 Jul 2013, nicolas.patr...@gmail.com wrote:
> Le 15/07/2013 14:13:08, Henrique de Moraes Holschuh a écrit :
> > Please run these as root:
> >    find /sys/devices/system/cpu -noleaf -type f -path
> > '/sys/devices/system/cpu/cpu*/microcode/reload'
> 
> # find /sys/devices/system/cpu -noleaf -type f -path '/sys/devices/
> system/cpu/cpu*/microcode/reload'
> /sys/devices/system/cpu/cpu0/microcode/reload
> /sys/devices/system/cpu/cpu1/microcode/reload
> /sys/devices/system/cpu/cpu2/microcode/reload

Ok, this is fine.

> >    find /sys/devices/system/cpu -noleaf -type f -path
> > '/sys/devices/system/cpu/cpu*/microcode/reload' | while read i ; do
> > echo -n 1 >"$i" || true ; done
> 
> I have three cores. What’s this line supposed to do?

It is supposed to "echo -n 1" into each of the sysfs files located by the
"find" command, ignoring any failures.  That signals the kernel to trigger a
firmware request for a microcode update in that specific core.

We ignore failures, because per-core microcode updates are a design bug,
fixed on later kernels by failing all requests but the one to the BSP
(boot processor, usually cpu0) and updating all cores at the sime time along
with the BSP.  Recent kernels have a single sysfs trigger that does this
properly, but yours (2.6.38) is too old for that.

You need to be root to run that command.

So, does it work?  Or does it hang?

-- 
  "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 debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to