<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On Dec 1, 2026, at 10:57 AM, Konstantin Ananyev <konstantin.v.ananyev@yandex.ru> wrote:</div><br class="Apple-interchange-newline"><div><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">Just to understand: so we'll have all other dpdk binaries build without RM_FEATURE_ATOMICS,</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">i.e. not allowed to use stadd/swapl instructions, but we still want to generate bpf binary code</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;"><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;">that would use these instructions, correct?</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-line: none; text-decoration-thickness: auto; text-decoration-style: solid;"></div></blockquote></div><br><div><div><br></div><div><div>A generic build already uses LSE atomics at runtime for all <128-bit</div><div>operations: the compiler builds the __atomic_* builtins with outlined</div><div>helpers (-moutline-atomics, default since GCC 10), which select LSE or</div><div>LL/SC based on HWCAP at startup. __ARM_FEATURE_ATOMICS is only defined</div><div>when the target guarantees LSE (armv8.1-a and later, or armv8-a+lse),</div><div>so an armv8-a generic build never sets it - runtime detection is the</div><div>only way such a build can use LSE.</div><div><br></div><div>This series just extends that to the two places that bypass the</div><div>compiler: the hand-written 128-bit CAS in EAL (patch 2) and the</div><div>JIT-generated atomics here, same as the Linux kernel arm64 eBPF JIT</div><div>does.</div><div><br></div><div>LL/SC loops have no forward-progress guarantee under contention,</div><div>which is one of the reasons -moutline-atomics became the default.</div></div></div></body></html>