summaryrefslogtreecommitdiff
path: root/kernel/dma
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2021-03-19 07:03:33 +0300
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-03-19 08:00:18 +0300
commitfcf044891c84e38fc90eb736b818781bccf94e38 (patch)
tree4f6af8d4dab1566a3e9b3a64d563e2aad61ef836 /kernel/dma
parent2cbc2776efe4faed0e17c48ae076aa03a0fcc61f (diff)
downloadlinux-fcf044891c84e38fc90eb736b818781bccf94e38.tar.xz
ARM: Qualify enabling of swiotlb_init()
We do not need a SWIOTLB unless we have DRAM that is addressable beyond the arm_dma_limit. Compare max_pfn with arm_dma_pfn_limit to determine whether we do need a SWIOTLB to be initialized. Fixes: ad3c7b18c5b3 ("arm: use swiotlb for bounce buffering on LPAE configs") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'kernel/dma')
0 files changed, 0 insertions, 0 deletions