]>
Commit | Line | Data |
---|---|---|
2cb7cef9 BS |
1 | From: Tejun Heo <tj@kernel.org> |
2 | Subject: x86: disallow DAC for MCP51 PCI bridge | |
3 | References: bnc#463829, bnc#482220 | |
4 | ||
5 | MCP51 corrupts DAC transfers. Disallow it. Reported by pgnet on | |
6 | bnc#463829. | |
7 | ||
8 | https://bugzilla.novell.com/show_bug.cgi?id=463829 | |
9 | ||
10 | Signed-off-by: Tejun Heo <tj@kernel.org> | |
11 | Reported-by: pgnet <pgnet.trash@gmail.com> | |
12 | Signed-off-by: Tejun Heo <teheo@suse.de> | |
13 | Automatically 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 |