From: Tony Breeds Date: Wed, 30 Nov 2011 21:39:19 +0000 (+0000) Subject: powerpc/44x: pci: Setup the dma_window properties for each pci_controller X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=466c2bc762c4212f64c5cf778ff569efd79f0778;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git powerpc/44x: pci: Setup the dma_window properties for each pci_controller Needed if you want to use swiotlb, harmless otherwise. Signed-off-by: Tony Breeds Signed-off-by: Josh Boyer --- diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 95d5eaa0caa2..472d2b840f10 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch/powerpc/sysdev/ppc4xx_pci.c @@ -185,9 +185,15 @@ static int __init ppc4xx_parse_dma_ranges(struct pci_controller *hose, out: dma_offset_set = 1; pci_dram_offset = res->start; + hose->dma_window_base_cur = res->start; + hose->dma_window_size = resource_size(res); printk(KERN_INFO "4xx PCI DMA offset set to 0x%08lx\n", pci_dram_offset); + printk(KERN_INFO "4xx PCI DMA window base to 0x%016llx\n", + (unsigned long long)hose->dma_window_base_cur); + printk(KERN_INFO "DMA window size 0x%016llx\n", + (unsigned long long)hose->dma_window_size); return 0; }