Skip to contentSkip to conversation

ARM: renesas: Update Gen3 PCIe dma-ranges before boot

PATCH Superseded Marek Vasut 1 participant 1 message Jul 9, 2019

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: renesas: Update Gen3 PCIe dma-ranges before boot

Update "dma-ranges" DT property of all PCIe controllers in the system with the up-to-date DRAM layout. This allows the PCIe controller take full advantage of all the available DRAM, at least in theory.

This patch only populates up to two dma-ranges entry though, this is because older versions of Linux kernel would fail to probe the PCIe driver if there are more regions in the DT than the PCIe IP can use.

Cc Nobuhiro Iwamatsu <[email protected]>
---
 arch/arm/mach-rmobile/Kconfig      |  1 +
 board/renesas/rcar-common/common.c | 53 ++++++++++++++++++++++++++++++
 2 files changed, 54 insertions(+)
arch/arm/mach-rmobile/Kconfig +1 -0
index aafeb355ef..52ab891425 100644
@@ -21,6 +21,7 @@ config RCAR_GEN3
 	imply CMD_GPT
 	imply CMD_UUID
 	imply CMD_MMC_SWRITE if MMC
+	imply OF_BOARD_SETUP if PCI
 	imply SUPPORT_EMMC_RPMB if MMC
 	imply SPL
 	imply SPL_BOARD_INIT
board/renesas/rcar-common/common.c +53 -0

63 lines not on this page · raw message

Signature · 1 line
2.20.1