]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.arch/x86-fix-nodac
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / x86-fix-nodac
1 From: Tejun Heo <tj@kernel.org>
2 Subject: x86: fix iommu=nodac parameter handling
3 References: bnc#463829
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 ---
10 arch/x86/kernel/pci-dma.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 Index: 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;