diff options
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-.patch | 45 |
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 @@ | |||
1 | From be1ab01a00ec19b273050ad8f3fbb9472238b026 Mon Sep 17 00:00:00 2001 | ||
2 | From: Shuah Khan <shuah.khan@hp.com> | ||
3 | Date: Wed, 6 Jun 2012 10:50:06 -0600 | ||
4 | Subject: [PATCH 024/109] iommu/amd: Fix missing iommu_shutdown initialization | ||
5 | in passthrough mode | ||
6 | |||
7 | commit f2f12b6fc032c7b1419fd6db84e2868b5f05a878 upstream. | ||
8 | |||
9 | The iommu_shutdown callback is not initialized when the AMD | ||
10 | IOMMU driver runs in passthrough mode. Fix that by moving | ||
11 | the callback initialization before the check for | ||
12 | passthrough mode. | ||
13 | |||
14 | Signed-off-by: Shuah Khan <shuah.khan@hp.com> | ||
15 | Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> | ||
16 | [bwh: Backported to 3.2: adjust context] | ||
17 | Signed-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 | |||
22 | diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c | ||
23 | index 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 | -- | ||
44 | 1.7.7.6 | ||
45 | |||