Re: Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD

Borislav Petkov
2012-09-17T17:23:49Z

On Thu, Sep 13, 2012 at 02:58:25PM +0200, Borislav Petkov wrote:
> Here's the script, let me know how it goes:

Here's a more correct version. I'm not saying yours won't work based
on the rdmsr and setpci output on your box, but here's a version which
should pay attention to one other workaround and work on all K8s.

HTH.

--
#!/bin/bash
# assuming a single CPU system

nb_cfg=0xc001001f
ht_tr_ctl=0x68

val="0x"$(rdmsr $nb_cfg)

# revert E131 workaround
val=$(( $val & ~(1 << 20) ))

val=$(( $val | (1 << 32) ))
val=$(printf "0x%08x" $val)
wrmsr $nb_cfg $val

val="0x"$(setpci -s 18.0 $ht_tr_ctl.l)

# clear bits [22:21]
val=$(( $val & ~( 0x3 << 21) ))

val=$(( $val | (1 << 21) ))
val=$(printf "0x%08x" $val)
setpci -s 18.0 $ht_tr_ctl.l=$val

echo "Erratum 169 workaround applied."
--

--
Regards/Gruss,
Boris.

Advanced Micro Devices GmbH
Einsteinring 24, 85609 Dornach
GM: Alberto Bozzo
Reg: Dornach, Landkreis Muenchen
HRB Nr. 43632 WEEE Registernr: 129 19551