powerpc/fsl-pci: Limit ZONE_DMA32 to 2GiB on 64-bit platforms
authorScott Wood <scottwood@freescale.com>
Fri, 8 Aug 2014 23:40:45 +0000 (18:40 -0500)
committerScott Wood <scottwood@freescale.com>
Wed, 3 Sep 2014 22:58:22 +0000 (17:58 -0500)
commit84f44cc56c0994df7778bde55c8d5e9aa9fff8f5
treec757d5564181fc2092e59fbb025cfb93eb86393d
parentcf5621032fbe7354c0c3fff17958b7029bbc9f30
powerpc/fsl-pci: Limit ZONE_DMA32 to 2GiB on 64-bit platforms

FSL PCI cannot directly address the whole lower 4 GiB due to
conflicts with PCICSRBAR and outbound windows.  By the time
max_direct_dma_addr is set to the precise limit, it will be too late to
alter the zone limits, but we should always have at least 2 GiB mapped
(unless RAM is smaller than that).

Signed-off-by: Scott Wood <scottwood@freescale.com>
Cc: Shaohui Xie <Shaohui.Xie@freescale.com>
arch/powerpc/platforms/85xx/corenet_generic.c
arch/powerpc/platforms/85xx/qemu_e500.c