projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f47c73
)
RISC-V: Use swiotlb on RV64 only
author
Zong Li
<zongbox@gmail.com>
Tue, 2 Oct 2018 08:52:28 +0000
(16:52 +0800)
committer
Palmer Dabbelt
<palmer@sifive.com>
Tue, 23 Oct 2018 00:02:56 +0000
(17:02 -0700)
Only RV64 supports swiotlb. On RV32, it don't select the SWIOTLB.
Signed-off-by: Zong Li <zong@andestech.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/riscv/kernel/setup.c
b/arch/riscv/kernel/setup.c
index
b2d26d9
..
c946198
100644
(file)
--- a/
arch/riscv/kernel/setup.c
+++ b/
arch/riscv/kernel/setup.c
@@
-227,7
+227,10
@@
void __init setup_arch(char **cmdline_p)
setup_bootmem();
paging_init();
unflatten_device_tree();
+
+#ifdef CONFIG_SWIOTLB
swiotlb_init(1);
+#endif
#ifdef CONFIG_SMP
setup_smp();