summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch
new file mode 100644
index 00000000..4c75e8e8
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.24/0024-iommu-amd-Fix-missing-iommu_shutdown-initialization-.patch
@@ -0,0 +1,45 @@
1From be1ab01a00ec19b273050ad8f3fbb9472238b026 Mon Sep 17 00:00:00 2001
2From: Shuah Khan <shuah.khan@hp.com>
3Date: Wed, 6 Jun 2012 10:50:06 -0600
4Subject: [PATCH 024/109] iommu/amd: Fix missing iommu_shutdown initialization
5 in passthrough mode
6
7commit f2f12b6fc032c7b1419fd6db84e2868b5f05a878 upstream.
8
9The iommu_shutdown callback is not initialized when the AMD
10IOMMU driver runs in passthrough mode. Fix that by moving
11the callback initialization before the check for
12passthrough mode.
13
14Signed-off-by: Shuah Khan <shuah.khan@hp.com>
15Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
16[bwh: Backported to 3.2: adjust context]
17Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
18---
19 drivers/iommu/amd_iommu_init.c | 3 ++-
20 1 files changed, 2 insertions(+), 1 deletions(-)
21
22diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
23index 6269eb0..ef2d493 100644
24--- a/drivers/iommu/amd_iommu_init.c
25+++ b/drivers/iommu/amd_iommu_init.c
26@@ -1468,6 +1468,8 @@ static int __init amd_iommu_init(void)
27
28 register_syscore_ops(&amd_iommu_syscore_ops);
29
30+ x86_platform.iommu_shutdown = disable_iommus;
31+
32 if (iommu_pass_through)
33 goto out;
34
35@@ -1476,7 +1478,6 @@ static int __init amd_iommu_init(void)
36 else
37 printk(KERN_INFO "AMD-Vi: Lazy IO/TLB flushing enabled\n");
38
39- x86_platform.iommu_shutdown = disable_iommus;
40 out:
41 return ret;
42
43--
441.7.7.6
45