On Fri, Feb 2, 2024 at 5:59 AM <pbhagavat...@marvell.com> wrote: > > From: Pavan Nikhilesh <pbhagavat...@marvell.com> > > Use WFE LDP loop while polling for GETWORK completion for better > power savings.
> Disabled by default and can be enabled by configuring meson with > -Dc_args='-DRTE_ARM_USE_WFE'. Since this section is not yet merged. We can remove this commit log. > > Signed-off-by: Pavan Nikhilesh <pbhagavat...@marvell.com> > --- > v4 Changes: > - Split patches > > doc/guides/eventdevs/cnxk.rst | 9 ++++++ Please update the release notes for this PMD feature. > drivers/event/cnxk/cn10k_worker.h | 52 +++++++++++++++++++++++++------ > 2 files changed, 52 insertions(+), 9 deletions(-) > > diff --git a/doc/guides/eventdevs/cnxk.rst b/doc/guides/eventdevs/cnxk.rst > index cccb8a0304..04f5b5025b 100644 > --- a/doc/guides/eventdevs/cnxk.rst > +++ b/doc/guides/eventdevs/cnxk.rst > @@ -198,6 +198,15 @@ Runtime Config Options > > -a 0002:0e:00.0,tim_eclk_freq=122880000-1000000000-0 > > +Power Savings on CN10K > +---------------------- > + > +ARM cores can additionally use WFE when polling for transactions on SSO bus > +to save power i.e., in the event dequeue call ARM core can enter WFE and exit > +when either work has been scheduled or dequeue timeout has reached. > +This can be enabled by configuring meson with the following option > +``-Dc_args='-DRTE_ARM_USE_WFE'``. The last section can be made as generic, as other patches are not merged. i.e This can be enabled by selecting RTE_ARM_USE_WFE or so.