[PATCH v3 4/4] membarrier: riscv: Provide core serializing command
Andrea Parri
parri.andrea at gmail.com
Wed Jan 10 14:34:32 PST 2024
Hi Stefan,
> "core serialization" is a meaningless sequence of words for RISC-V users,
The expression is inherited from MEMBARRIER(2). Quoting from the RFC
discussion (cf. [3] in the cover letter),
"RISC-V does not have "core serializing instructions", meaning
that there is no occurence of such a term in the RISC-V ISA. The
discussion and git history about the SYNC_CORE command suggested
the implementation below: a FENCE.I instruction [...]"
> The feature seems useful, but it should document what it does using
> terminology actually used in the RISC-V specifications.
In _current RISC-V parlance, it's pretty clear: we are doing FENCE.I.
As Palmer and others mentioned in the RFC, there're proposals for ISA
extensions aiming to "replace" FENCE.I, but those are still WIP. (*)
Andrea
(*) https://github.com/riscv/riscv-j-extension
More information about the linux-riscv
mailing list