From: Joerg Roedel Date: Mon, 23 Nov 2009 11:50:00 +0000 (+0100) Subject: x86/amd-iommu: attach devices to pre-allocated domains early X-Git-Tag: v2.6.33-rc1~409^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be831297716036de5b24308447ecb69f1706a846;p=pandora-kernel.git 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 --- Reading git-diff-tree failed