summaryrefslogtreecommitdiff
path: root/kernel/configs.c
diff options
context:
space:
mode:
authorLeonardo Bras <leobras.c@gmail.com>2021-04-20 01:54:04 -0300
committerMichael Ellerman <mpe@ellerman.id.au>2021-04-21 22:52:31 +1000
commita9d2f9bb225fd2a764aef57738ab6c7f38d782ae (patch)
treec97668fa571d9b4bac903f003d2ec521d56e5a4a /kernel/configs.c
parente4e8bc1df691ba5ba749d1e2b67acf9827e51a35 (diff)
powerpc/pseries/iommu: Fix window size for direct mapping with pmem
As of today, if the DDW is big enough to fit (1 << MAX_PHYSMEM_BITS) it's possible to use direct DMA mapping even with pmem region. But, if that happens, the window size (len) is set to (MAX_PHYSMEM_BITS - page_shift) instead of MAX_PHYSMEM_BITS, causing a pagesize times smaller DDW to be created, being insufficient for correct usage. Fix this so the correct window size is used in this case. Fixes: bf6e2d562bbc4 ("powerpc/dma: Fallback to dma_ops when persistent memory present") Signed-off-by: Leonardo Bras <leobras.c@gmail.com> Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210420045404.438735-1-leobras.c@gmail.com
Diffstat (limited to 'kernel/configs.c')
0 files changed, 0 insertions, 0 deletions