ipq806x: reduce PCIe buffer size setting to fix potential data corruption issues
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Nov 2015 10:55:05 +0000 (10:55 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 21 Nov 2015 10:55:05 +0000 (10:55 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47545 3c298f89-4303-0410-b956-a3cf2f4a3e73

target/linux/ipq806x/patches-3.18/114-pcie-add-ctlr-init.patch
target/linux/ipq806x/patches-4.1/114-pcie-add-ctlr-init.patch

index 11c9810..c0b65c7 100644 (file)
 +      writel(upper_32_bits(pp->mem_bus_addr),
 +             pcie->dbi + PCIE20_PLR_IATU_UTAR);
 +
-+      /* 1K PCIE buffer setting */
-+      writel(0x3, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL0);
++      /* 256B PCIE buffer setting */
++      writel(0x1, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL0);
 +      writel(0x1, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL1);
 +}
 +
index 11c9810..c0b65c7 100644 (file)
 +      writel(upper_32_bits(pp->mem_bus_addr),
 +             pcie->dbi + PCIE20_PLR_IATU_UTAR);
 +
-+      /* 1K PCIE buffer setting */
-+      writel(0x3, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL0);
++      /* 256B PCIE buffer setting */
++      writel(0x1, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL0);
 +      writel(0x1, pcie->dbi + PCIE20_AXI_MSTR_RESP_COMP_CTRL1);
 +}
 +