x86/amd-iommu: attach devices to pre-allocated domains early
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 23 Nov 2009 11:50:00 +0000 (12:50 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 23 Nov 2009 11:54:17 +0000 (12:54 +0100)
commitbe831297716036de5b24308447ecb69f1706a846
tree3e4fa3c904f9ea8dd55fb7226d49df9fab71920c
parent9f800de38b05d84809e89f16671d636a140eede7
x86/amd-iommu: attach devices to pre-allocated domains early

For some devices the ACPI table may define unity map
requirements which must me met when the IOMMU is enabled. So
we need to attach devices to their domains as early as
possible so that these mappings are in place when needed.
This patch assigns the domains right after they are
allocated. Otherwise this can result in I/O page faults
before a driver binds to a device and BIOS is still using
it.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c
This page took 0.024086 seconds and 5 git commands to generate.