commit | ce3aca0465e31c20ada1270ac6547ba28b610ab2 | [log] [tgz] |
---|---|---|
author | Kefeng Wang <wangkefeng.wang@huawei.com> | Wed Jun 02 16:55:16 2021 +0800 |
committer | Palmer Dabbelt <palmerdabbelt@google.com> | Fri Jun 11 13:42:26 2021 -0700 |
tree | a2b2e71d99e1ec5a2f187f88bdc279e0370abf7d | |
parent | ae3d69bcc455905bac1d08d3563e4e576028e896 [diff] |
riscv: Only initialize swiotlb when necessary The SWIOTLB buffer is not needed unless the physical address space is beyond the limit of dma, only initialize swiotlb when swiotlb_force is true or not all system memory is DMA-able. Also move the swiotlb_init() into mem_init(). Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>