]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit82a0b675ee748ae0a9a65ea3cba1f2e1aa6058c4
tree3e4fa3c904f9ea8dd55fb7226d49df9fab71920c
parentb6f2e60f04c6e0a9962838779fdf5e9d8c962d7c
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