[PATCH v2 03/19] riscv: hwprobe: add support for scalar crypto ISA extensions
Clément Léger
cleger at rivosinc.com
Thu Oct 19 00:21:05 PDT 2023
On 18/10/2023 19:24, Evan Green wrote:
> On Tue, Oct 17, 2023 at 6:15 AM Clément Léger <cleger at rivosinc.com> wrote:
>>
>> Export the following scalar crypto extensions through hwprobe:
>>
>> - Zbkb
>> - Zbkc
>> - Zbkx
>> - Zknd
>> - Zkne
>> - Zknh
>> - Zksed
>> - Zksh
>> - Zkt
>>
>> Signed-off-by: Clément Léger <cleger at rivosinc.com>
>> ---
>> Documentation/riscv/hwprobe.rst | 30 +++++++++++++++++++++++++++
>> arch/riscv/include/uapi/asm/hwprobe.h | 10 +++++++++
>> arch/riscv/kernel/sys_riscv.c | 10 +++++++++
>> 3 files changed, 50 insertions(+)
>>
>> diff --git a/Documentation/riscv/hwprobe.rst b/Documentation/riscv/hwprobe.rst
>> index a52996b22f75..968895562d42 100644
>> --- a/Documentation/riscv/hwprobe.rst
>> +++ b/Documentation/riscv/hwprobe.rst
>> @@ -77,6 +77,36 @@ The following keys are defined:
>> * :c:macro:`RISCV_HWPROBE_EXT_ZBS`: The Zbs extension is supported, as defined
>> in version 1.0 of the Bit-Manipulation ISA extensions.
>>
>> + * :c:macro:`RISCV_HWPROBE_EXT_ZBC` The Zbc extension is supported, as defined
>> + in version 1.0 of the Scalar Crypto ISA extensions.
>
> At least in my v1.0.1 version of the crypto scalar spec, I don't see
> Zbc. That seems to be defined in the bit manipulation extensions.
Thanks for catching this, this should be same than the previous line. I
will actually move the ZBC on another patch since it is not scalar crypto.
Clément
More information about the linux-riscv
mailing list