X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.arch%2Fx86-fix-nodac;fp=src%2Fpatches%2Fsuse-2.6.27.31%2Fpatches.arch%2Fx86-fix-nodac;h=d9172459895062f50bfff8a76a8187033504cdfa;hb=2cb7cef9f877c88c82c959e2944ff02a12d068fa;hp=0000000000000000000000000000000000000000;hpb=836f873377e58243cc856caa0586954efff79185;p=people%2Fpmueller%2Fipfire-2.x.git diff --git a/src/patches/suse-2.6.27.31/patches.arch/x86-fix-nodac b/src/patches/suse-2.6.27.31/patches.arch/x86-fix-nodac new file mode 100644 index 0000000000..d917245989 --- /dev/null +++ b/src/patches/suse-2.6.27.31/patches.arch/x86-fix-nodac @@ -0,0 +1,25 @@ +From: Tejun Heo +Subject: x86: fix iommu=nodac parameter handling +References: bnc#463829 + +nodac should forbid dac not instead of enabling it. Fix it. + +Signed-off-by: Tejun Heo +Signed-off-by: Tejun Heo +--- + arch/x86/kernel/pci-dma.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: linux-2.6.27-SLE11_BRANCH/arch/x86/kernel/pci-dma.c +=================================================================== +--- linux-2.6.27-SLE11_BRANCH.orig/arch/x86/kernel/pci-dma.c ++++ linux-2.6.27-SLE11_BRANCH/arch/x86/kernel/pci-dma.c +@@ -175,7 +175,7 @@ static __init int iommu_setup(char *p) + if (!strncmp(p, "allowdac", 8)) + forbid_dac = 0; + if (!strncmp(p, "nodac", 5)) +- forbid_dac = -1; ++ forbid_dac = 1; + if (!strncmp(p, "usedac", 6)) { + forbid_dac = -1; + return 1;