From: Borislav Petkov <bp@amd64.org>
To: Thomas Schwinge <thomas@codesourcery.com>
Cc: Borislav Petkov <bp@alien8.de>,
debian-kernel@lists.debian.org, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD
Date: Mon, 17 Sep 2012 19:23:45 +0200 [thread overview]
Message-ID: <20120917172345.GH13879@aftab.osrc.amd.com> (raw)
In-Reply-To: <20120913125825.GB19691@aftab.osrc.amd.com>
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
next prev parent reply other threads:[~2012-09-17 17:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-16 10:14 Linux kernel crash (3.2.0-2-amd64) when trying to play audio CD Thomas Schwinge
2012-06-16 13:40 ` Ben Hutchings
2012-06-18 5:29 ` Thomas Schwinge
2012-06-16 18:10 ` Borislav Petkov
2012-06-18 5:28 ` Thomas Schwinge
2012-06-18 14:29 ` Borislav Petkov
2012-06-18 14:52 ` Thomas Schwinge
2012-06-18 15:51 ` Borislav Petkov
2012-09-07 9:14 ` Thomas Schwinge
2012-09-13 12:58 ` Borislav Petkov
2012-09-17 17:23 ` Borislav Petkov [this message]
2012-09-22 11:53 ` Thomas Schwinge
2014-06-16 7:13 ` Thomas Schwinge
2014-06-16 9:43 ` Borislav Petkov
2014-06-16 10:33 ` Thomas Schwinge
2014-06-16 10:46 ` Borislav Petkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120917172345.GH13879@aftab.osrc.amd.com \
--to=bp@amd64.org \
--cc=bp@alien8.de \
--cc=debian-kernel@lists.debian.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=thomas@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).