<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/arch/riscv/include/asm/archrandom.h, branch linux-7.0.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-01-18T02:20:49+00:00</updated>
<entry>
<title>RISC-V: Implement archrandom when Zkr is available</title>
<updated>2024-01-18T02:20:49+00:00</updated>
<author>
<name>Samuel Ortiz</name>
<email>sameo@rivosinc.com</email>
</author>
<published>2023-11-30T11:17:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=10243401059287868a5651f869a2494368872add'/>
<id>urn:sha1:10243401059287868a5651f869a2494368872add</id>
<content type='text'>
The Zkr extension is ratified and provides 16 bits of entropy seed when
reading the SEED CSR.

We can implement arch_get_random_seed_longs() by doing multiple csrrw to
that CSR and filling an unsigned long with valid entropy bits.

Acked-by: Conor Dooley &lt;conor.dooley@microchip.com&gt;
Signed-off-by: Samuel Ortiz &lt;sameo@rivosinc.com&gt;
Signed-off-by: Clément Léger &lt;cleger@rivosinc.com&gt;
Link: https://lore.kernel.org/r/20231130111704.1319081-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt &lt;palmer@rivosinc.com&gt;
</content>
</entry>
</feed>
