Skip to contentSkip to conversation

doc/guides: update monitor PMD mode description

PATCH In review Chris MacNamara 4 participants 4 messages Feb 21, 2025 – Jul 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc/guides: update monitor PMD mode description

A recent CPU change requires an extra enabling step for the umonitor instruction on Intel CPUs.
This is now detailed in the l3 fwd power manager doc.

---
 .mailmap                                          | 1 +
 doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++
 2 files changed, 6 insertions(+)
.mailmap +1 -0
index a03d3cfb59..c4bc38752f 100644
@@ -263,6 +263,7 @@ Christopher Reder <[email protected]>
 Christoph Gysin <[email protected]>
 Christos Ricudis <[email protected]>
 Chris Wright <[email protected]>
+Chris MacNamara <[email protected]>
 Chuanshe Zhang <[email protected]>
 Chuanyu Xue <[email protected]>
 Chuhong Yao <[email protected]>
doc/guides/sample_app_ug/l3_forward_power_man.rst +5 -0
index 3271bc2154..d0af28e0ec 100644
@@ -293,6 +293,11 @@ and has three available power management schemes:
 ``monitor``
   This will use ``rte_power_monitor()`` function to enter
   a power-optimized state (subject to platform support).
+  On recent Gen 4 Xeon Scalable Processors the umonitor instruction
+  is disabled by default.
+  An additional step is required to enable the umonitor instruction.
+  Writing 0 to bit 6 of register 0x123 will enable umonitor.
+  `More details are available via Monitor and Umonitor Performance Guidance <https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/monitor-umonitor-performance-guidance.html>`_
 
 ``pause``
   This will use ``rte_power_pause()`` or ``rte_pause()``
Signature · 13 lines
2.43.0

--------------------------------------------------------------
Intel Research and Development Ireland Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263


This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). Any review or distribution by others is
strictly prohibited. If you are not the intended recipient, please contact the
sender and delete all copies.
#1 lore raw
Quoted 15 lines · Chris MacNamara

A recent CPU change requires an extra enabling step for the umonitor instruction on Intel CPUs.
This is now detailed in the l3 fwd power manager doc.

---
 .mailmap                                          | 1 +
 doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++
 2 files changed, 6 insertions(+)
.mailmap +0 -0
index a03d3cfb59..c4bc38752f 100644

.mailmap Christopher Reder <[email protected]> · line 266

Quoted 4 lines
.mailmap +1 -0
@@ -263,6 +263,7 @@ Christopher Reder <[email protected]>
 Christoph Gysin <[email protected]>
 Christos Ricudis <[email protected]>
 Chris Wright <[email protected]>
+Chris MacNamara <[email protected]>

Minor nit, this is kept in alphabetical order, so your name should go just above Chris Wright's one.

Quoted 10 lines
.mailmap +0 -0
 Chuanshe Zhang <[email protected]>
 Chuanyu Xue <[email protected]>
 Chuhong Yao <[email protected]>
doc/guides/sample_app_ug/l3_forward_power_man.rst +0 -0
index 3271bc2154..d0af28e0ec 100644
@@ -293,6 +293,11 @@ and has three available power management schemes:
 ``monitor``

doc/guides/sample_app_ug/l3_forward_power_man.rst and has three available power management schemes: · line 303

Quoted 10 lines
doc/guides/sample_app_ug/l3_forward_power_man.rst +5 -0
   This will use ``rte_power_monitor()`` function to enter
   a power-optimized state (subject to platform support).
+  On recent Gen 4 Xeon Scalable Processors the umonitor instruction
+  is disabled by default.
+  An additional step is required to enable the umonitor instruction.
+  Writing 0 to bit 6 of register 0x123 will enable umonitor.
+  `More details are available via Monitor and Umonitor Performance Guidance <https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/monitor-umonitor-performance-guidance.html>`_
 
 ``pause``
   This will use ``rte_power_pause()`` or ``rte_pause()``

I'd suggest this extra info be added as a note, rather than inline in the text, since it's not applicable to all systems. I'd also suggest that an equivalent note needs to be added to the programmer's guide doc, in [1]. The info is relevant for those using the library, as well as those just using the sample app.

/Bruce

[1] https://doc.dpdk.org/guides/prog_guide/power_man.html#ethernet-pmd-power-management-api

#2 lore raw
In reply to Chris MacNamara
Quoted 27 lines · On Fri, 21 Feb 2025 16:54:40 +0000 Chris MacNamara <[email protected]>…

A recent CPU change requires an extra enabling step for the umonitor instruction on Intel CPUs.
This is now detailed in the l3 fwd power manager doc.

---
 .mailmap                                          | 1 +
 doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++
 2 files changed, 6 insertions(+)
.mailmap +1 -0
index a03d3cfb59..c4bc38752f 100644
@@ -263,6 +263,7 @@ Christopher Reder <[email protected]>
 Christoph Gysin <[email protected]>
 Christos Ricudis <[email protected]>
 Chris Wright <[email protected]>
+Chris MacNamara <[email protected]>
 Chuanshe Zhang <[email protected]>
 Chuanyu Xue <[email protected]>
 Chuhong Yao <[email protected]>
doc/guides/sample_app_ug/l3_forward_power_man.rst +0 -0
index 3271bc2154..d0af28e0ec 100644

doc/guides/sample_app_ug/l3_forward_power_man.rst and has three available power management schemes: · line 301

Quoted 9 lines
doc/guides/sample_app_ug/l3_forward_power_man.rst +5 -0
@@ -293,6 +293,11 @@ and has three available power management schemes:
 ``monitor``
   This will use ``rte_power_monitor()`` function to enter
   a power-optimized state (subject to platform support).
+  On recent Gen 4 Xeon Scalable Processors the umonitor instruction
+  is disabled by default.
+  An additional step is required to enable the umonitor instruction.
+  Writing 0 to bit 6 of register 0x123 will enable umonitor.
+  `More details are available via Monitor and Umonitor Performance Guidance <https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/monitor-umonitor-performance-guidance.html>`_
 

This should be done by the power library, what is the point of having a power API if we require applications to test for CPU type and go tweak some CPU register bits. And it may be restricted by OS permissions etc.

#3 lore raw

21/02/2025 19:50, Stephen Hemminger:

Quoted 35 lines
Quoted 32 lines · On Fri, 21 Feb 2025 16:54:40 +0000 Chris MacNamara <[email protected]>…

A recent CPU change requires an extra enabling step for the umonitor instruction on Intel CPUs.
This is now detailed in the l3 fwd power manager doc.

---
 .mailmap                                          | 1 +
 doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++
 2 files changed, 6 insertions(+)
.mailmap +1 -0
index a03d3cfb59..c4bc38752f 100644
@@ -263,6 +263,7 @@ Christopher Reder <[email protected]>
 Christoph Gysin <[email protected]>
 Christos Ricudis <[email protected]>
 Chris Wright <[email protected]>
+Chris MacNamara <[email protected]>
 Chuanshe Zhang <[email protected]>
 Chuanyu Xue <[email protected]>
 Chuhong Yao <[email protected]>
doc/guides/sample_app_ug/l3_forward_power_man.rst +2 -0
index 3271bc2154..d0af28e0ec 100644
@@ -293,6 +293,11 @@ and has three available power management schemes:
 ``monitor``
   This will use ``rte_power_monitor()`` function to enter
   a power-optimized state (subject to platform support).
+  On recent Gen 4 Xeon Scalable Processors the umonitor instruction
+  is disabled by default.
Quoted 8 lines

doc/guides/sample_app_ug/l3_forward_power_man.rst and has three available power management schemes: · line 301

Quoted 4 lines
doc/guides/sample_app_ug/l3_forward_power_man.rst +3 -0
+  An additional step is required to enable the umonitor instruction.
+  Writing 0 to bit 6 of register 0x123 will enable umonitor.
+  `More details are available via Monitor and Umonitor Performance Guidance <https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/technical-documentation/monitor-umonitor-performance-guidance.html>`_
 

This should be done by the power library, what is the point of having a power API if we require applications to test for CPU type and go tweak some CPU register bits. And it may be restricted by OS permissions etc.

Any update please?