]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/patches/suse-2.6.27.31/patches.xen/xen3-x86-mcp51-no-dac
Reenabled linux-xen, added patches for Xen Kernel Version 2.6.27.31,
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.xen / xen3-x86-mcp51-no-dac
diff --git a/src/patches/suse-2.6.27.31/patches.xen/xen3-x86-mcp51-no-dac b/src/patches/suse-2.6.27.31/patches.xen/xen3-x86-mcp51-no-dac
new file mode 100644 (file)
index 0000000..df918c2
--- /dev/null
@@ -0,0 +1,35 @@
+From: Tejun Heo <tj@kernel.org>
+Subject: x86: disallow DAC for MCP51 PCI bridge
+References: bnc#463829, bnc#482220
+
+MCP51 corrupts DAC transfers.  Disallow it.  Reported by pgnet on
+bnc#463829.
+
+  https://bugzilla.novell.com/show_bug.cgi?id=463829
+
+Signed-off-by: Tejun Heo <tj@kernel.org>
+Reported-by: pgnet <pgnet.trash@gmail.com>
+Signed-off-by: Tejun Heo <teheo@suse.de>
+Automatically created from "patches.arch/x86-mcp51-no-dac" by xen-port-patches.py
+
+--- sle11-2009-03-04.orig/arch/x86/kernel/pci-dma-xen.c        2009-03-04 11:37:52.000000000 +0100
++++ sle11-2009-03-04/arch/x86/kernel/pci-dma-xen.c     2009-03-04 11:37:58.000000000 +0100
+@@ -482,4 +482,18 @@ static __devinit void via_no_dac(struct 
+       }
+ }
+ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_ANY_ID, via_no_dac);
++
++/*
++ * MCP51 PCI bridge corrupts data for DAC.  Disable it.  Reported in
++ * bnc#463829.
++ */
++static __devinit void mcp51_no_dac(struct pci_dev *dev)
++{
++      if (forbid_dac == 0) {
++              printk(KERN_INFO
++                     "PCI: MCP51 PCI bridge detected. Disabling DAC.\n");
++              forbid_dac = 1;
++      }
++}
++DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, 0x026f, mcp51_no_dac);
+ #endif