]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/x86-fix-nodac
Imported linux-2.6.27.39 suse/xen patches.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / x86-fix-nodac
CommitLineData
2cb7cef9
BS
1From: Tejun Heo <tj@kernel.org>
2Subject: x86: fix iommu=nodac parameter handling
3References: bnc#463829
4
5nodac should forbid dac not instead of enabling it. Fix it.
6
7Signed-off-by: Tejun Heo <tj@kernel.org>
8Signed-off-by: Tejun Heo <teheo@suse.de>
9---
10 arch/x86/kernel/pci-dma.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13Index: linux-2.6.27-SLE11_BRANCH/arch/x86/kernel/pci-dma.c
14===================================================================
15--- linux-2.6.27-SLE11_BRANCH.orig/arch/x86/kernel/pci-dma.c
16+++ linux-2.6.27-SLE11_BRANCH/arch/x86/kernel/pci-dma.c
17@@ -175,7 +175,7 @@ static __init int iommu_setup(char *p)
18 if (!strncmp(p, "allowdac", 8))
19 forbid_dac = 0;
20 if (!strncmp(p, "nodac", 5))
21- forbid_dac = -1;
22+ forbid_dac = 1;
23 if (!strncmp(p, "usedac", 6)) {
24 forbid_dac = -1;
25 return 1;