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 EF7D5A04A4; Wed, 2 Mar 2022 13:27:17 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A5CEA42715; Wed, 2 Mar 2022 13:27:17 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3F36040141 for ; Wed, 2 Mar 2022 13:27:16 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 14188A04A5; Wed, 2 Mar 2022 13:27:16 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 946] async flow rules affects pmd power management Date: Wed, 02 Mar 2022 12:27:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: eventdev X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: david.hunt@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D946 Bug ID: 946 Summary: async flow rules affects pmd power management Product: DPDK Version: unspecified Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: eventdev Assignee: dev@dpdk.org Reporter: david.hunt@intel.com Target Milestone: --- pmd power management functionality when using RTM transactions never enters power saving mode.=20 When testing using l3fwd-power to test the power_pmd functionality for DPDK 22.03 rc2, I noticed that the power saved in this DPDK version was significantly reduced.=20 I tried multiple BIOS/OS/kernel combinations, but then I tried DPDK 21.11, where the problem went away.=20 I then did a git bisect, which narrowed down the problem to commit 197e820c6685993ad75387de79707c81b5e1fc10 - "ethdev: bring in async queue-ba= sed flow rules operations" The patch has the effect of causing the RTM transaction in rte_power_monitor_multi(), in the C file lib/eal/x86/rte_power_intrinsics.c= , to always fail at rte_xbegin, so we never get to the rte_power_pause, thereby = we never get to save any power.=20 If we revert just this patch, then the rte_xbegin succeeds, and we get to c= all rte_power_pause, and save power. So this patch is now causing rte_power_monitor_multi() to fail.=20 I'm not sure what the solution is, but it may be possible to re-work the as= ync flow rules patch, or it may be possible to re-work the pmd_power_management code to avoid the impact of the flow rules patch. Investigation is ongoing. --=20 You are receiving this mail because: You are the assignee for the bug.=