[PATCH V11 00/17] riscv: Add Native/Paravirt qspinlock support

Guo Ren guoren at kernel.org
Sun Sep 10 02:16:46 PDT 2023


On Sun, Sep 10, 2023 at 4:58 PM Conor Dooley <conor at kernel.org> wrote:
>
> On Sun, Sep 10, 2023 at 04:28:54AM -0400, guoren at kernel.org wrote:
>
> > Changlog:
> > V11:
> >  - Based on Leonardo Bras's cmpxchg_small patches v5.
> >  - Based on Guo Ren's Optimize arch_spin_value_unlocked patch v3.
> >  - Remove abusing alternative framework and use jump_label instead.
>
> btw, I didn't say that using alternatives was the problem, it was
> abusing the errata framework to perform feature detection that I had
> a problem with. That's not changed in v11.
I've removed errata feature detection. The only related patches are:
 - riscv: qspinlock: errata: Add ERRATA_THEAD_WRITE_ONCE fixup
 - riscv: qspinlock: errata: Enable qspinlock for T-HEAD processors

Which one is your concern? Could you reply on the exact patch thread? Thx.

>
> A stronger forward progress guarantee is not an erratum, AFAICT.
Sorry, there is no erratum of "stronger forward progress guarantee" in the V11.

>
> >  - Introduce prefetch.w to improve T-HEAD processors' LR/SC forward progress
> >    guarantee.
> >  - Optimize qspinlock xchg_tail when NR_CPUS >= 16K.



--
Best Regards
 Guo Ren



More information about the linux-riscv mailing list