aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/pci-dma_32.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kernel/pci-dma_32.c')
-rw-r--r--arch/x86/kernel/pci-dma_32.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/x86/kernel/pci-dma_32.c b/arch/x86/kernel/pci-dma_32.c
index 6543bb30b65d..1d4091af4417 100644
--- a/arch/x86/kernel/pci-dma_32.c
+++ b/arch/x86/kernel/pci-dma_32.c
@@ -155,30 +155,6 @@ void *dma_mark_declared_memory_occupied(struct device *dev,
155EXPORT_SYMBOL(dma_mark_declared_memory_occupied); 155EXPORT_SYMBOL(dma_mark_declared_memory_occupied);
156 156
157#ifdef CONFIG_PCI 157#ifdef CONFIG_PCI
158/* Many VIA bridges seem to corrupt data for DAC. Disable it here */
159
160int
161dma_supported(struct device *dev, u64 mask)
162{
163 /*
164 * we fall back to GFP_DMA when the mask isn't all 1s,
165 * so we can't guarantee allocations that must be
166 * within a tighter range than GFP_DMA..
167 */
168 if (mask < 0x00ffffff)
169 return 0;
170
171 /* Work around chipset bugs */
172 if (forbid_dac > 0 && mask > 0xffffffffULL)
173 return 0;
174
175 if (dma_ops->dma_supported)
176 return dma_ops->dma_supported(dev, mask);
177
178 return 1;
179}
180EXPORT_SYMBOL(dma_supported);
181
182static int check_iommu(char *s) 158static int check_iommu(char *s)
183{ 159{
184 if (!strcmp(s, "usedac")) { 160 if (!strcmp(s, "usedac")) {