From: Richard Zhu Date: Mon, 2 Nov 2015 03:41:02 +0000 (+0800) Subject: MLK-11803 pci: imx: imx6qp pcie ep self-test failed X-Git-Tag: C0P2-H0.0--20200415~4038 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=e05161bef0b5be3c244f39334036d954dcdf3cf1;p=linux.git MLK-11803 pci: imx: imx6qp pcie ep self-test failed 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 (cherry picked from commit 85db70336ab66136481926bcd7f5abe599e2aa4f) --- diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c index 1bd1c524aa10..fcd9b6532c23 100644 --- a/drivers/pci/host/pci-imx6.c +++ b/drivers/pci/host/pci-imx6.c @@ -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) {