Florian Fainelli f23763ab46 ARM: Qualify enabling of swiotlb_init()
commit fcf044891c84e38fc90eb736b818781bccf94e38 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-26 14:07:06 +02:00
..
2019-07-08 21:08:34 -07:00
2019-09-24 15:54:08 -07:00
2021-09-26 14:07:06 +02:00
2019-09-16 15:48:14 -07:00
2019-07-08 21:08:34 -07:00