]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:36:18 +0000 (00:36 +0900)
commit98e69566e80c4de231456dbf4e6735ddfeb599db
tree5c517e4d1ef930efc48f4be2a44d60059ca65dcd
parentfab83a044aa7d4b968f466f4eb3946388528497a
iommu/amd: Cache pdev pointer to root-bridge

commit c1bf94ec1e12d76838ad485158aecf208ebd8fb9 upstream.

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.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h