[PATCH v4] riscv: Use Zalrsc extension to implement atomic functions

Conor Dooley conor at kernel.org
Mon Aug 10 11:53:18 PDT 2026


On Mon, Aug 10, 2026 at 04:57:00PM +0100, Conor Dooley wrote:
> > 
> > diff --git a/arch/riscv/Kconfig.errata b/arch/riscv/Kconfig.errata
> > index 3c945d086c7d0266b685f9506d58b0662af071c4..cd5bd5e8eb395418c3ad103dbd836c775b7fd901 100644
> > --- a/arch/riscv/Kconfig.errata
> > +++ b/arch/riscv/Kconfig.errata
> > @@ -44,6 +44,17 @@ config ERRATA_MIPS_P8700_PAUSE_OPCODE
> >  
> >  	   If you are not using the P8700 processor, say n.
> >  
> > +config ERRATA_MIPS_P8700_AMO_ZALRSC
> > +	bool "Replace AMO instructions with LR/SC on MIPS P8700"
> > +	depends on ERRATA_MIPS && 64BIT
> > +	default n
> 
> Why is this default n if your platform does not work without it?

Disregard this, I said it before I noticed that there was emulation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-riscv/attachments/20260810/8f0613b6/attachment.sig>


More information about the linux-riscv mailing list