]> git.baikalelectronics.ru Git - kernel.git/commit
x86/amd-iommu: Fix passthrough mode
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 10 Dec 2009 10:03:39 +0000 (11:03 +0100)
committerJoerg Roedel <joerg.roedel@amd.com>
Thu, 10 Dec 2009 11:21:31 +0000 (12:21 +0100)
commit8398d7fe3ecf0fa7cc81e2d7b3f3f855f9ce2020
tree42a90d0bcef2932b3aca414bf6620fb13685e9b7
parent9b3f2c4046750f5dc8b5e210b93663402bb97572
x86/amd-iommu: Fix passthrough mode

The data structure changes to use dev->archdata.iommu field
broke the iommu=pt mode because in this case the
dev->archdata.iommu was left uninitialized. This moves the
inititalization of the devices into the main init function
and fixes the problem.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/include/asm/amd_iommu_proto.h
arch/x86/kernel/amd_iommu.c
arch/x86/kernel/amd_iommu_init.c