Re: Issues with AMD microcode updates
From: Henrique de Moraes Holschuh
Date: Thu Sep 19 2013 - 15:26:23 EST
On Thu, 19 Sep 2013, Borislav Petkov wrote:
> On Thu, Sep 19, 2013 at 03:15:54PM -0300, Henrique de Moraes Holschuh wrote:
> > I can request help on debian-user or debian-devel to get someone with
> > an AMD box to help with bissection, but it is usually best if we don't
> > ask general users to bissect kernels (due to non-zero risk of data
> > corruption if the bissect hit one of the problem spots that often show
> > up during the development window).
>
> I have a couple of AMD boxes so I can bisect - I just need a reproducer
> how to trigger.
Sure. There are two possibilities:
Possiblity one (the most likely): hang on first microcode update:
1. Have the lastest AMD microcode update (from linux-firmware) installed to
the proper place under /lib/firmware, but NOT yet uploaded to kernel.
2. run this:
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
If the kernel is buggy, it should hang. If it doesn't hang for a
supposed-bad kernel (2.6.38 or 3.5.2), please check "possibility two" below.
Possibility two: hang on second microcode update in a row:
1. Install a previous version of the AMD microcode update (which must still
be newer than what is in the processor) to /lib/firmware/...
2. Run the command (2) above. It should not hang, and it should update the
microcode in the processor.
3. Update /lib/firmware with the latest microcode from AMD (i.e. so that the
processor will have its microcode updated TWICE).
4. Run the command (2) above. It should hang if the kernel is buggy.
I do not have any reports of kernels 3.6 and later causing issues. If they
do, the "reproducer" should be this, instead:
echo -n 1 > /sys/devices/system/cpu/microcode/reload
You can get earlier versions of the AMD microcode to test "possiblity two"
from the Debian package historical archive:
http://snapshot.debian.org/archive/debian/20120710T032858Z/pool/non-free/a/amd64-microcode/amd64-microcode_1.20120117.orig.tar.bz2
http://snapshot.debian.org/archive/debian/20120915T033250Z/pool/non-free/a/amd64-microcode/amd64-microcode_1.20120910.orig.tar.bz2
The latest version of the microcode is available in linux-firmware.
--
"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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/