summary refs log tree commit diff
path: root/.mailmap
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2020-01-01 23:27:01 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-09 11:30:53 +0800
commitb87b2c4d9105a4cfa70c9271b847364ac045125c (patch)
tree096f6948f76b97f66f363c675d0cef75edf7a0d9 /.mailmap
parentaf5034e8e4a5838fc77e476c1a91822e449d5869 (diff)
downloadlinux-b87b2c4d9105a4cfa70c9271b847364ac045125c.tar.gz
crypto: crypto4xx - reduce memory fragmentation
With recent kernels (>5.2), the driver fails to probe, as the
allocation of the driver's scatter buffer fails with -ENOMEM.

This happens in crypto4xx_build_sdr(). Where the driver tries
to get 512KiB (=PPC4XX_SD_BUFFER_SIZE * PPC4XX_NUM_SD) of
continuous memory. This big chunk is by design, since the driver
uses this circumstance in the crypto4xx_copy_pkt_to_dst() to
its advantage:
"all scatter-buffers are all neatly organized in one big
continuous ringbuffer; So scatterwalk_map_and_copy() can be
instructed to copy a range of buffers in one go."

The PowerPC arch does not have support for DMA_CMA. Hence,
this patch reorganizes the order in which the memory
allocations are done. Since the driver itself is responsible
for some of the issues.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions