From: "Jan Beulich" Subject: [PATCH] linux/x86-64: fix Dom0 boot on AMD K8 CPUs Date: Mon, 03 Aug 2009 15:37:53 +0100 Message-ID: <4A771261020000780000DB3C@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Christoph Egger List-Id: xen-devel@lists.xenproject.org The workaround in question here should be (and is being) applied by the hypervisor (which doesn't allow any guest - including Dom0 - to write other than all zeroes or all ones into MCi_CTL). As usual, written and tested on 2.6.31-rc4 and made apply to the 2.6.18 tree without further testing. Signed-off-by: Jan Beulich --- a/arch/x86_64/kernel/mce.c +++ b/arch/x86_64/kernel/mce.c @@ -369,9 +369,11 @@ static void __cpuinit mce_cpu_quirks(stru {=20 /* This should be disabled by the BIOS, but isn't always */ if (c->x86_vendor =3D=3D X86_VENDOR_AMD && c->x86 =3D=3D 15) { +#ifndef CONFIG_XEN /* disable GART TBL walk error reporting, which trips = off=20 incorrectly with the IOMMU & 3ware & Cerberus. */ clear_bit(10, &bank[4]); +#endif /* Lots of broken BIOS around that don't clear them by default and leave crap in there. Don't log. */ mce_bootlog =3D 0;