Skip to contentSkip to conversation

lib/power: power pmd errata with RTM and gcc-9

PATCH Applied David Hunt 2 participants 3 messages Mar 9, 2022 – Mar 22, 2022

lore
Share & tools
lore

David Hunt

author
#0 lore raw

PATCH 1/1 lib/power: power pmd errata with RTM and gcc-9

An errata exists where users may see reduced power savings when using PMD Power Management. This issue occurs when compiling DPDK applications with gcc-9 on platforms with TSX enabled. In rte_power_monitor_multi(), the function may return without successfully starting the RTM transaction (the _xbegin() fails).

---
 doc/guides/rel_notes/release_22_03.rst | 11 +++++++++++
 1 file changed, 11 insertions(+)
doc/guides/rel_notes/release_22_03.rst +11 -0
index 60e5b4f9aa..34d6f34dba 100644
@@ -313,6 +313,17 @@ Known Issues
    Also, make sure to start the actual text at the margin.
    =======================================================
 
+* **Possible reduced power saving with PMD Power Management.**
+
+  Users may see reduced power savings when using PMD Power Management.
+  This issue occurs when compiling DPDK applications with gcc-9 on
+  platforms with TSX enabled. In rte_power_monitor_multi(), the
+  function may return without successfully starting the RTM
+  transaction (the _xbegin() fails).
+
+  There are three workarounds for this issue. Either build DPDK with gcc-11
+  or newer, build with shared libraries, or build DPDK with fewer drivers.
+
 
 Tested Platforms
 ----------------
Signature · 1 line
2.17.1
#1 lore raw

09/03/2022 14:22, David Hunt:

Quoted 7 lines

An errata exists where users may see reduced power savings when using PMD Power Management. This issue occurs when compiling DPDK applications with gcc-9 on platforms with TSX enabled. In rte_power_monitor_multi(), the function may return without successfully starting the RTM transaction (the _xbegin() fails).

Applied, thanks.

Is there a way to fix it or should we keep this errata forever?

author
#2 lore raw
Quoted 11 lines · Thomas Monjalon

09/03/2022 14:22, David Hunt:

Quoted 7 lines

An errata exists where users may see reduced power savings when using PMD Power Management. This issue occurs when compiling DPDK applications with gcc-9 on platforms with TSX enabled. In rte_power_monitor_multi(), the function may return without successfully starting the RTM transaction (the _xbegin() fails).

Applied, thanks.

Is there a way to fix it or should we keep this errata forever?

If it's a gcc-9 issue, then we'll have to get the assistance to fix. I've send the relevant information on to the gcc folks for analysis, and I'll follow up at regular intervals.

I would hope to be able to remove the errata within the next one or two releases.