diff options
| author | Joerg Roedel <joerg.roedel@amd.com> | 2010-06-01 11:41:44 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-07-05 11:10:46 -0700 |
| commit | 310f7a3525eae4ef4c760a9d458d028775a49645 (patch) | |
| tree | 9c832ab24d1e439c0a569dd9cc5d8615ebe179c2 /arch | |
| parent | d04e05f72668d77b66c91756c3d64c21970ea2a7 (diff) | |
| download | linux-310f7a3525eae4ef4c760a9d458d028775a49645.tar.gz linux-310f7a3525eae4ef4c760a9d458d028775a49645.tar.bz2 linux-310f7a3525eae4ef4c760a9d458d028775a49645.zip | |
x86/amd-iommu: Fix suspend/resume with IOMMU
This is a suspend resume fix for 2.6.32-stable inclusion. The
problem with this patch is that it is not upstream because the code
changed with 2.6.33 and the function where this bug is in was
removed. So this fix does not make sense anymore for anything later than
2.6.32. The patch was tested by multiple partys and is confirmed to fix
the broken suspend/resume issue with the 2.6.32 kernel.
This patch fixes suspend/resume with AMD IOMMU enabled.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/x86/kernel/amd_iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index c0ebc6351a60..f0fa7a1782d5 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c @@ -544,7 +544,7 @@ static void flush_devices_by_domain(struct protection_domain *domain) for (i = 0; i <= amd_iommu_last_bdf; ++i) { if ((domain == NULL && amd_iommu_pd_table[i] == NULL) || - (amd_iommu_pd_table[i] != domain)) + (domain != NULL && amd_iommu_pd_table[i] != domain)) continue; iommu = amd_iommu_rlookup_table[i]; |
