]> rtime.felk.cvut.cz Git - linux-imx.git/commit
x86: Enable the intr-remap fault handling after local APIC setup
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Wed, 1 Dec 2010 06:22:28 +0000 (22:22 -0800)
committerAK <andi@firstfloor.org>
Sun, 6 Feb 2011 19:03:43 +0000 (11:03 -0800)
commit7ec0309573de69959a7840e5007831625a35af87
tree6b07d814da1a19fc3e88060dd32fc37d0bd91629
parent9bc128312605cb2962c00fa63d626ebc22c8b4bc
x86: Enable the intr-remap fault handling after local APIC setup

commit 7f7fbf45c6b748074546f7f16b9488ca71de99c1 upstream.

Interrupt-remapping gets enabled very early in the boot, as it determines the
apic mode that the processor can use. And the current code enables the vt-d
fault handling before the setup_local_APIC(). And hence the APIC LDR registers
and data structure in the memory may not be initialized. So the vt-d fault
handling in logical xapic/x2apic modes were broken.

Fix this by enabling the vt-d fault handling in the end_local_APIC_setup()

A cleaner fix of enabling fault handling while enabling intr-remapping
will be addressed for v2.6.38. [ Enabling intr-remapping determines the
usage of x2apic mode and the apic mode determines the fault-handling
configuration. ]

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
LKML-Reference: <20101201062244.541996375@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Acked-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/probe_64.c