]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.xen/xen3-x86-fix-nodac
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.xen / xen3-x86-fix-nodac
CommitLineData
2cb7cef9
BS
1From: Tejun Heo <tj@kernel.org>
2Subject: x86: fix iommu=nodac parameter handling
3References: bnc#463829, bnc#482220
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>
9Automatically created from "patches.arch/x86-fix-nodac" by xen-port-patches.py
10
11--- sle11-2009-03-04.orig/arch/x86/kernel/pci-dma-xen.c 2009-03-04 11:29:03.000000000 +0100
12+++ sle11-2009-03-04/arch/x86/kernel/pci-dma-xen.c 2009-03-04 11:37:52.000000000 +0100
13@@ -198,7 +198,7 @@ static __init int iommu_setup(char *p)
14 if (!strncmp(p, "allowdac", 8))
15 forbid_dac = 0;
16 if (!strncmp(p, "nodac", 5))
17- forbid_dac = -1;
18+ forbid_dac = 1;
19 if (!strncmp(p, "usedac", 6)) {
20 forbid_dac = -1;
21 return 1;