Re: [PATCH v2 1/3] RISC-V: add Bitmanip/Scalar Crypto parsing from DT
From: Evan Green
Date: Wed Jun 28 2023 - 13:23:41 EST
On Wed, Jun 28, 2023 at 6:15 AM Samuel Ortiz <sameo@xxxxxxxxxxxx> wrote:
>
> From: "Hongren (Zenithal) Zheng" <i@xxxxxxxxxxx>
>
> Parse Zb/Zk related string from DT and output them to cpuinfo.
>
> It is worth noting that the Scalar Crypto extension defines "zk" as a
> shorthand for the Zkn, Zkr and Zkt extensions. Since the Zkn one also
> implies the Zbkb, Zbkc and Zbkx extensions, simply passing the valid
> "zk" extension name through a DT will enable all of the Zbkb, Zbkc,
> Zbkx, Zkn, Zkr and Zkt extensions.
>
> Also, since there currently is no mechanism to merge all enabled
> extensions, the generated cpuinfo output could be relatively large.
> For example, setting the "riscv,isa" DT property to "rv64imafdc_zk_zks"
> will generate the following cpuinfo output:
> "rv64imafdc_zbkb_zbkc_zbkx_zknd_zkne_zknh_zkr_zksed_zksh_zkt".
>
> Tested-by: Jiatai He <jiatai2021@xxxxxxxxxxx>
> Signed-off-by: Samuel Ortiz <sameo@xxxxxxxxxxxx>
> Signed-off-by: Hongren (Zenithal) Zheng <i@xxxxxxxxxxx>
Reviewed-by: Evan Green <evan@xxxxxxxxxxxx>