Revision 30f92d62e5b41a94de2d0bbd677a6ea2fcfed74f authored by Akinobu Mita on 06 September 2017, 10:15:31 UTC, committed by Christoph Hellwig on 11 September 2017, 16:29:38 UTC
The initial chunk size for host memory buffer allocation is currently
PAGE_SIZE << MAX_ORDER.  MAX_ORDER order allocation is usually failed
without CONFIG_DMA_CMA.  So the HMB allocation is retried with chunk size
PAGE_SIZE << (MAX_ORDER - 1) in general, but there is no problem if the
retry allocation works correctly.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
[hch: rebased]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Cc: stable@vger.kernel.org
1 parent 92dc689
History
File Mode Size
unittest-data
Kconfig -rw-r--r-- 2.4 KB
Makefile -rw-r--r-- 667 bytes
address.c -rw-r--r-- 22.4 KB
base.c -rw-r--r-- 47.3 KB
device.c -rw-r--r-- 7.8 KB
dynamic.c -rw-r--r-- 19.6 KB
fdt.c -rw-r--r-- 33.7 KB
fdt_address.c -rw-r--r-- 6.4 KB
irq.c -rw-r--r-- 18.9 KB
of_mdio.c -rw-r--r-- 12.8 KB
of_net.c -rw-r--r-- 2.4 KB
of_numa.c -rw-r--r-- 4.5 KB
of_pci.c -rw-r--r-- 10.5 KB
of_pci_irq.c -rw-r--r-- 3.9 KB
of_private.h -rw-r--r-- 3.8 KB
of_reserved_mem.c -rw-r--r-- 10.1 KB
overlay.c -rw-r--r-- 16.2 KB
pdt.c -rw-r--r-- 5.7 KB
platform.c -rw-r--r-- 19.2 KB
property.c -rw-r--r-- 28.6 KB
resolver.c -rw-r--r-- 8.8 KB
unittest.c -rw-r--r-- 61.9 KB

back to top