]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Cache pdev pointer to root-bridge
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 31 May 2012 15:38:11 +0000 (17:38 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 4 Jun 2012 10:47:44 +0000 (12:47 +0200)
commite3195039d020266fc3c615462542af1adfc50afc
treee554cd3ac5103745366cdf139e5ccf0f2619cde4
parenta37c45859bb7a3b7a6d3c2dc0a4466159cbaa6fe
iommu/amd: Cache pdev pointer to root-bridge

At some point pci_get_bus_and_slot started to enable
interrupts. Since this function is used in the
amd_iommu_resume path it will enable interrupts on resume
which causes a warning. The fix will use a cached pointer
to the root-bridge to re-enable the IOMMU in case the BIOS
is broken.

Cc: stable@vger.kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h