|WARNING| eal/arm: skip ISB for precise counter reads with ECV

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Mon Nov 23 15:00:45 CET 2026


Test-Label: ai-code-review
Test-Status: WARNING
https://dpdk.org/patch/173111

_AI Code Review_

=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-23

**Warning**

1. No release notes for the new public API.
   The patch adds `RTE_CPUFLAG_ECV` to the installed `rte_cpuflags_64.h` enum. It also exports a new data symbol, `rte_arm64_ecv`, from an installed header and changes the behaviour of `rte_rdtsc_precise()` on ECV-capable CPUs. None of this is recorded in the current release notes. Please add an entry under New Features in `doc/guides/rel_notes/release_XX_YY.rst`.

**Info**

1. `rte_arm64_ecv` is exported as stable ABI with no experimental period:
   ```
   +RTE_EXPORT_SYMBOL(rte_arm64_ecv)
   +bool rte_arm64_ecv;
   ```
   It is read from an always-inline function that backs the stable `rte_rdtsc_precise()`. Marking it `__rte_experimental` would therefore warn every application, so a stable export may be the only workable choice. That trade-off, and the fact that the variable becomes permanent ABI, should be stated in the commit log.
   - Because it is a mutable public global, an application can overwrite it.
   - If that is a concern, a `const`-qualified accessor or a leading-underscore internal name may be preferable.

2. On 32-bit Arm builds the definition is still compiled and exported, although nothing declares or uses it:
   ```
   +#ifndef RTE_ARM_FEATURE_ECV
   +RTE_EXPORT_SYMBOL(rte_arm64_ecv)
   +bool rte_arm64_ecv;
   +#endif
   ```
   The header declaration lives only in `rte_cycles_64.h`, and the store is guarded by `RTE_ARCH_ARM64`. Consider adding `RTE_ARCH_ARM64` to this guard as well.

3. With `RTE_ARM_FEATURE_ECV` set, the precise read executes `mrs ..., s3_3_c14_c0_6` unconditionally:
   ```
   +#define __rte_arm64_ecv_enabled() 1
   ```
   On a CPU without FEAT_ECV this is an undefined instruction, and the process gets SIGILL at the first `rte_rdtsc_precise()`.
   - Adding `RTE_CPUFLAG_ECV` to `compile_time_cpuflags` when `RTE_ARM_FEATURE_ECV` is set would let the EAL CPU-support check reject such a CPU at startup with a clear message.
   - It would also keep the cpuflag and the build flag consistent.

Review-Result: WARNING


More information about the test-report mailing list