From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C9D1C43BAD; Sun, 25 Feb 2024 16:21:11 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A84DF402C8; Sun, 25 Feb 2024 16:21:11 +0100 (CET) Received: from mail-qt1-f170.google.com (mail-qt1-f170.google.com [209.85.160.170]) by mails.dpdk.org (Postfix) with ESMTP id 3D9C5402BA for ; Sun, 25 Feb 2024 16:21:10 +0100 (CET) Received: by mail-qt1-f170.google.com with SMTP id d75a77b69052e-42e390f3954so7519101cf.3 for ; Sun, 25 Feb 2024 07:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708874469; x=1709479269; darn=dpdk.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ne2U2kBN3y1eitmsxWB1exPvIIVYhs52c71l/fuLG/U=; b=QyBSRLR1e6CLbFH9clCPMVwWaFtJbGOoodVinuuIIBxyPpC5MNccKfY+sJbKBjqxgN iciHO5Z9WMj4fvzaIUsBUrR8qu1GmfTikUit6ydlCAVbxSE4LPA3D3unn3JABj0QlYpS c36dUS2KIOT8qXw048EkliSfQMukPKedRT7l88Zuz1Sjj87TPizGZrheM62cziIzPkQT MVRfWhuVy/IzXw7+VoukurL9olbEJASl1s9S1LJTdTvuZT6Rsv26JiDKXwdHJl2kpBku kiCyy2/uvQw1xRjUigKq1PDsA4fQnmGO4q0iziTAjR9Pbe+WGEFLL2JVuCLYnejBgYw+ liLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708874469; x=1709479269; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ne2U2kBN3y1eitmsxWB1exPvIIVYhs52c71l/fuLG/U=; b=qwES/0GmvUrQF3FfeLol5otIvFHojRvKaGUW9IuBLGkJaLVlqcJhy3UHuaLgos/dbH lsIzqxaoNHm4fMKMXBwdxWNMhOZcZngf10qTC0m/V0IO/EpEB5b0gcJ7YohT10XfV0nZ 6LkTcM788fmH/cVPbf331Bej4p0WiIC7Z0tYdQIFob+S8uwcqi7GWySpe26OoubmIGDp SG6+vPb4hu8nNZCqTdplG4LVnCilaeEjezzoq2Qgf++QuE3ujYv7iGK/KCNDjZC9JLrU mRT25cW4fzZfgypiOPaZhZA2CsohtuxtrpzFJPYLKfIEi5WIGI7p1W9Ge4rJ7twZVHkU SDpg== X-Forwarded-Encrypted: i=1; AJvYcCUA6/SoNTbPclMNZW06R6EBotGRaM5yZBGljCH5wtg8SJRsHuIWMYx6znlnU2KRSGSdkVhFftOLBg7sPG8= X-Gm-Message-State: AOJu0YxuAtWZ7TmjNsq0x8CW7RwosARZa0hW7cLKqxwDlDtOqQX18aWX 1MMJYTQMCPneZ43FPVU4rSu5wQB4YVxXEkaryoY9nlW+cvn3r1D/z30iMQ/sBkMKdfwQGxBvwrF SrnTFM4D6OOTdUGUcewR4KO1J22atj17gUUI= X-Google-Smtp-Source: AGHT+IHqblwiqJYroDUGO6ZTWi/HZGS1bmUSVTmVVBMfib09bBCDtr58DQ90/BvviX3E9LlZzgr/mM+km9FlLbRKoIE= X-Received: by 2002:a05:622a:1190:b0:42d:c712:ce76 with SMTP id m16-20020a05622a119000b0042dc712ce76mr6972210qtk.4.1708874469450; Sun, 25 Feb 2024 07:21:09 -0800 (PST) MIME-Version: 1.0 References: <20240121152128.6360-1-pbhagavatula@marvell.com> <20240201220311.7215-1-pbhagavatula@marvell.com> In-Reply-To: <20240201220311.7215-1-pbhagavatula@marvell.com> From: Jerin Jacob Date: Sun, 25 Feb 2024 20:50:42 +0530 Message-ID: Subject: Re: [PATCH v4] event/cnxk: use WFE LDP loop for getwork routine To: pbhagavatula@marvell.com Cc: jerinj@marvell.com, Shijith Thotton , dev@dpdk.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Feb 2, 2024 at 5:59=E2=80=AFAM wrote: > > From: Pavan Nikhilesh > > 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=3D'-DRTE_ARM_USE_WFE'. Since this section is not yet merged. We can remove this commit log. > > Signed-off-by: Pavan Nikhilesh > --- > 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.rs= t > 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=3D122880000-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=3D'-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.