]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/suse-2.6.27.25/patches.xen/xen3-x86-fix-nodac
Updated xen patches taken from suse.
[people/teissler/ipfire-2.x.git] / src / patches / suse-2.6.27.25 / patches.xen / xen3-x86-fix-nodac
1 From: Tejun Heo <tj@kernel.org>
2 Subject: x86: fix iommu=nodac parameter handling
3 References: bnc#463829, bnc#482220
4
5 nodac should forbid dac not instead of enabling it. Fix it.
6
7 Signed-off-by: Tejun Heo <tj@kernel.org>
8 Signed-off-by: Tejun Heo <teheo@suse.de>
9 Automatically 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;