summaryrefslogtreecommitdiff
path: root/drivers/cpuidle/cpuidle-pseries.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2020-09-08 04:51:06 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-08 07:20:55 +0300
commit437ef802e0adc9f162a95213a3488e8646e5fc03 (patch)
tree3f0ef42d910b1dde3783902d7c052624f5b20047 /drivers/cpuidle/cpuidle-pseries.c
parent4c62285439f80f8996c38e0bda79b1125a192365 (diff)
downloadlinux-437ef802e0adc9f162a95213a3488e8646e5fc03.tar.xz
powerpc/dma: Fix dma_map_ops::get_required_mask
There are 2 problems with it: 1. "<" vs expected "<<" 2. the shift number is an IOMMU page number mask, not an address mask as the IOMMU page shift is missing. This did not hit us before f1565c24b596 ("powerpc: use the generic dma_ops_bypass mode") because we had additional code to handle bypass mask so this chunk (almost?) never executed.However there were reports that aacraid does not work with "iommu=nobypass". After f1565c24b596, aacraid (and probably others which call dma_get_required_mask() before setting the mask) was unable to enable 64bit DMA and fall back to using IOMMU which was known not to work, one of the problems is double free of an IOMMU page. This fixes DMA for aacraid, both with and without "iommu=nobypass" in the kernel command line. Verified with "stress-ng -d 4". Fixes: 6a5c7be5e484 ("powerpc: Override dma_get_required_mask by platform hook and ops") Cc: stable@vger.kernel.org # v3.2+ Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200908015106.79661-1-aik@ozlabs.ru
Diffstat (limited to 'drivers/cpuidle/cpuidle-pseries.c')
0 files changed, 0 insertions, 0 deletions