lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <b9b943c21725db9822a787a1e985010012fc33b2.1537949825.git.zongbox@gmail.com>
Date:   Wed, 26 Sep 2018 16:31:11 +0800
From:   Zong Li <zongbox@...il.com>
To:     palmer@...ive.com, aou@...s.berkeley.edu
Cc:     hch@...radead.org, zong@...estech.com, vincentc@...estech.com,
        linux-riscv@...ts.infradead.org, linux-kernel@...r.kernel.org,
        Zong Li <zongbox@...il.com>
Subject: [PATCH v2 2/5] RISC-V: Use swiotlb on RV64 only

Only RV64 supports swiotlb.

Signed-off-by: Zong Li <zong@...estech.com>
---
 arch/riscv/kernel/setup.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/riscv/kernel/setup.c b/arch/riscv/kernel/setup.c
index aee6031..872a280 100644
--- 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_64bit
 	swiotlb_init(1);
+#endif
 
 #ifdef CONFIG_SMP
 	setup_smp();
-- 
2.7.4

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ