[U-Boot] [PATCH 2/2] pci: Scale MAX_PCI_REGIONS based on CONFIG_NR_DRAM_BANKS
Simon Glass
sjg at chromium.org
Fri Mar 22 07:53:24 UTC 2019
On Fri, 15 Mar 2019 at 23:32, Thierry Reding <thierry.reding at gmail.com> wrote:
>
> From: Thierry Reding <treding at nvidia.com>
>
> If a platform defines CONFIG_NR_DRAM_BANKS, each DRAM bank will be added
> as a PCI region. The number of MAX_PCI_REGIONS therefore needs to scale
> with the number of DRAM banks, otherwise we will end up with too little
> space in the hose->regions array to store all system memory regions.
>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
> include/pci.h | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot
mailing list