doc/guides: update monitor PMD mode description
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
@@ -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
@@ -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.
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.Signed-off-by Chris MacNamara <[email protected]>--- .mailmap | 1 + doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++ 2 files changed, 6 insertions(+).mailmap +0
-0
.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
-0Chuanshe Zhang <[email protected]> Chuanyu Xue <[email protected]> Chuhong Yao <[email protected]>doc/guides/sample_app_ug/l3_forward_power_man.rst +0
-0@@ -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
-0This 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
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.Signed-off-by Chris MacNamara <[email protected]>--- .mailmap | 1 + doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++ 2 files changed, 6 insertions(+).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]> Chuanshe Zhang <[email protected]> Chuanyu Xue <[email protected]> Chuhong Yao <[email protected]>doc/guides/sample_app_ug/l3_forward_power_man.rst +0
-0
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.
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.Signed-off-by Chris MacNamara <[email protected]>--- .mailmap | 1 + doc/guides/sample_app_ug/l3_forward_power_man.rst | 5 +++++ 2 files changed, 6 insertions(+).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]> Chuanshe Zhang <[email protected]> Chuanyu Xue <[email protected]> Chuhong Yao <[email protected]>doc/guides/sample_app_ug/l3_forward_power_man.rst +2
-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.
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?