summaryrefslogtreecommitdiffstats
path: root/kernel/dma/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2020-06-08 15:22:17 +0200
committerChristoph Hellwig <hch@lst.de>2020-06-09 15:25:52 +0200
commit3ee06a6d532f75f20528ff4d2c473cda36c484fe (patch)
treef6268842ead89b06f33403dded9cfe5270c7b811 /kernel/dma/Kconfig
parentabfbb29297c27e3f101f348dc9e467b0fe70f919 (diff)
downloadlinux-3ee06a6d532f75f20528ff4d2c473cda36c484fe.tar.bz2
dma-pool: fix too large DMA pools on medium memory size systems
On systems with at least 32 MiB, but less than 32 GiB of RAM, the DMA memory pools are much larger than intended (e.g. 2 MiB instead of 128 KiB on a 256 MiB system). Fix this by correcting the calculation of the number of GiBs of RAM in the system. Invert the order of the min/max operations, to keep on calculating in pages until the last step, which aids readability. Fixes: 1d659236fb43c4d2 ("dma-pool: scale the default DMA coherent pool size with memory capacity") Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: David Rientjes <rientjes@google.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'kernel/dma/Kconfig')
0 files changed, 0 insertions, 0 deletions