]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:34 +0000 (13:58 -0800)
commit6b1ddd2f73efbb7ec35637b592932f50274fc432
tree9115ca6e29f763474045aa3db71de563138f2448
parent832407f92081af87a2f5227c80c207ea6ee89f2e
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>
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