]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.xen/xen3-x86-mcp51-no-dac
Add a patch to fix Intel E100 wake-on-lan problems.
[ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.xen / xen3-x86-mcp51-no-dac
CommitLineData
2cb7cef9
BS
1From: Tejun Heo <tj@kernel.org>
2Subject: x86: disallow DAC for MCP51 PCI bridge
3References: bnc#463829, bnc#482220
4
5MCP51 corrupts DAC transfers. Disallow it. Reported by pgnet on
6bnc#463829.
7
8 https://bugzilla.novell.com/show_bug.cgi?id=463829
9
10Signed-off-by: Tejun Heo <tj@kernel.org>
11Reported-by: pgnet <pgnet.trash@gmail.com>
12Signed-off-by: Tejun Heo <teheo@suse.de>
13Automatically created from "patches.arch/x86-mcp51-no-dac" by xen-port-patches.py
14
15--- sle11-2009-03-04.orig/arch/x86/kernel/pci-dma-xen.c 2009-03-04 11:37:52.000000000 +0100
16+++ sle11-2009-03-04/arch/x86/kernel/pci-dma-xen.c 2009-03-04 11:37:58.000000000 +0100
17@@ -482,4 +482,18 @@ static __devinit void via_no_dac(struct
18 }
19 }
20 DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_ANY_ID, via_no_dac);
21+
22+/*
23+ * MCP51 PCI bridge corrupts data for DAC. Disable it. Reported in
24+ * bnc#463829.
25+ */
26+static __devinit void mcp51_no_dac(struct pci_dev *dev)
27+{
28+ if (forbid_dac == 0) {
29+ printk(KERN_INFO
30+ "PCI: MCP51 PCI bridge detected. Disabling DAC.\n");
31+ forbid_dac = 1;
32+ }
33+}
34+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_NVIDIA, 0x026f, mcp51_no_dac);
35 #endif