MLK-11803 pci: imx: imx6qp pcie ep self-test failed
authorRichard Zhu <Richard.Zhu@freescale.com>
Mon, 2 Nov 2015 03:41:02 +0000 (11:41 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:13 +0000 (14:49 -0500)
imx pcie used the wrab mode to do the cached access
methods on axi bus. There is 64bytes address mis-aligned
problem.
Disable the cached operations.

Signed-off-by: Richard Zhu <Richard.Zhu@freescale.com>
(cherry picked from commit 85db70336ab66136481926bcd7f5abe599e2aa4f)

drivers/pci/host/pci-imx6.c

index 1bd1c52..fcd9b65 100644 (file)
@@ -1321,11 +1321,7 @@ static int __init imx6_pcie_probe(struct platform_device *pdev)
                 * reserved ddr memory after write the ddr_test_region
                 * content to rc.
                 */
-               if (imx6_pcie->variant == IMX7D)
-                       pcie_arb_base_addr = ioremap_nocache(pp->mem_base,
-                                       test_region_size);
-               else
-                       pcie_arb_base_addr = ioremap_cache(pp->mem_base,
+               pcie_arb_base_addr = ioremap_nocache(pp->mem_base,
                                        test_region_size);
 
                if (!pcie_arb_base_addr) {