The 11/13/2023 11:47, Victor Do Nascimento wrote: > +/* LRCPC atomic support encoded in ID_AA64ISAR1_EL1.Atomic, > + bits[23:20]. The expected value is 0b0011. Check that. */ > +#define HAS_LRCPC3() ({ \ > + unsigned long val; \ > + asm volatile ("mrs %0, ID_AA64ISAR1_EL1" : "=r" (val)); \ > + (val & 0xf00000) >= 0x300000; \ > + })
same comment as for the lse128 patch: use hwcaps (and wait for linux release before committing).