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 2C21848A47 for ; Sat, 1 Nov 2025 16:31:35 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D8C0440261; Sat, 1 Nov 2025 16:31:34 +0100 (CET) Received: from BL2PR02CU003.outbound.protection.outlook.com (mail-eastusazon11011022.outbound.protection.outlook.com [52.101.52.22]) by mails.dpdk.org (Postfix) with ESMTP id 8C56340261 for ; Sat, 1 Nov 2025 16:31:33 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fIsPw71XUIZSe3awh8HMG5+nbp6WnF75tvGQFe9jkPb+jUcvN+zfjArXQBy/2V2Ks7fjOVklqS4eanBMYImcAdmi0cFhSMv3qgAp2uU5m1BSjiJkL3RI3f2Lpae5B/2TWMV1YaFqp4qjVMVS3qAsoz/G4xXf2thzYzQOkXlktKSVmHddVg5wSrf53CXFd0zw3Qvpsu0kP35LaeOgZf7Mo5ZD6+ToBa3dLBZy4zmEbK9fZJd9gk3T/4iiYoJFlsZ4DByNtihn08RrkhKOiVFKDs1chu5fj3MzH0VJF+i0ek5lG721VaFjSuvPsG+RWc8gB/iWXocG9DSEdM1p1Ez6og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UrMiFMFPYBQesxw2k7m72nwzqQ9bkBuZVBmYXxgMDq0=; b=Tqut9ZzjUSjR6FwLN3HoJlKqQJta8qfu7evgHzCMIgqKoczQD9NaqdnCkU1BVB1pTYZZugeNVaiJXaLZiFXTURJB+AbPJBBytGXO0H15MBro9tsupRJO0rheTIMrLH0b68XwQwhDj2RzgJOWrffU3IDEg1aw/3JIysP8nNyJM6e5xf2sEs7k0jBDikTZN9xe63EEP1MVStUae30LhizfEn7RqXZutIzVKcg2au1G4PpiQ6F0UxCCFABFdy8ZL8Mb5+rX6u2mMuZ2WrnK5sQ92bghn7l+6gRBgYrtShQeHsqoVVNV2RcSHvRWStWyeWcHf0yhZkbbJjCVaxI4kh4/6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=UrMiFMFPYBQesxw2k7m72nwzqQ9bkBuZVBmYXxgMDq0=; b=dqKrkpRH4uVIgiCZw3zHZGlTeBtgmC6h4qp67bB3E6oWrHwY9yWBTcZYk8U0PsA8JzO4HvEQCFVt1h6w2gea34hFkNUJdfhltphInD3zqpGPhtipT+E/fruWQcMFv+UsxfCm9s4mU7lxUP6asv6RPK1pD6TUj9Dl6nyP/17qSA8= Received: from CH3PR12MB8233.namprd12.prod.outlook.com (2603:10b6:610:129::15) by CH1PR12MB9671.namprd12.prod.outlook.com (2603:10b6:610:2b0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.9275.14; Sat, 1 Nov 2025 15:31:21 +0000 Received: from CH3PR12MB8233.namprd12.prod.outlook.com ([fe80::278f:5cc5:549c:3515]) by CH3PR12MB8233.namprd12.prod.outlook.com ([fe80::278f:5cc5:549c:3515%7]) with mapi id 15.20.9275.013; Sat, 1 Nov 2025 15:31:21 +0000 From: "Tummala, Sivaprasad" To: Kevin Traynor CC: Anatoly Burakov , dpdk stable Subject: Re: patch 'eal/x86: enable timeout in AMD power monitor' has been queued to stable release 24.11.4 Thread-Topic: patch 'eal/x86: enable timeout in AMD power monitor' has been queued to stable release 24.11.4 Thread-Index: AQHcSnP6FNyJ98TD+U6adJGkwKNmwbTd9CQI Date: Sat, 1 Nov 2025 15:31:20 +0000 Message-ID: References: <20251031143421.324432-1-ktraynor@redhat.com> <20251031143421.324432-69-ktraynor@redhat.com> In-Reply-To: <20251031143421.324432-69-ktraynor@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Enabled=True; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_SetDate=2025-11-01T15:31:20.360Z; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Name=AMD Internal Distribution Only; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_ContentBits=1; MSIP_Label_dce362fe-1558-4fb5-9f64-8a6240d76441_Method=Standard; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR12MB8233:EE_|CH1PR12MB9671:EE_ x-ms-office365-filtering-correlation-id: 1b3e6850-ad4b-49df-1af4-08de195bb566 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|1800799024|366016|376014|8096899003|7053199007|13003099007|38070700021; x-microsoft-antispam-message-info: =?iso-8859-1?Q?5i2FklpLibZPJQsEUoj7wEKMEL2vM3SLPLHt6FrTgaRUuYk+KM4B9P2UGQ?= =?iso-8859-1?Q?pOc4x/friI5ySBsDlUIUBZ9LwzSyj/VRchTkuh0ajuHKF4cQotvDPgtY8f?= =?iso-8859-1?Q?EqSWcLlmqYifatBZvnDSGN934TLiw/DZjxI1T5KsiSUwvLlywIm642G+Oc?= =?iso-8859-1?Q?jWl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n3JIe?= =?iso-8859-1?Q?C0/TTdwRNjgj9PiVixa4/f9A5RUOhZTEua8UEOS3WiKOnGbo/KVIzbOFdA?= =?iso-8859-1?Q?Y1EJNSBAG0loyDK0l4e5t8LQpcenjCdVF2nhDveymBr6VNjos1ukS0jzU9?= =?iso-8859-1?Q?5yM60V+3W1mtG1NqONH9yHv0OFmZKc+IV4U9K/cn5vyxng8v+bOKE/gViK?= =?iso-8859-1?Q?1aNuLMXByCZ5ApabktEMvq6P8p5xXAGpyBuylQ8WU/x3BTI8AoikzAXQ3o?= =?iso-8859-1?Q?etzdYRIMo3L2JYd2mM+Do+EWbfEedzVyec49x02G/VpRrny/Z1xqQaWabO?= =?iso-8859-1?Q?wSdnHnSPHwau6g11wSbyjQulf4+MnU/E4bsUz5I3v6u7OSooyz4LeqVbzH?= =?iso-8859-1?Q?3ZE5EFyc71d2iuDOXWY0FzzZPPY5yUZTCRRPE+hj9O/EpTVsYCyI9etg1w?= =?iso-8859-1?Q?kUx2aJbVpj3QdsN5RUHolZKc0ZcSAI0KmqrC/ffOcnvxiYI2huR3QI6UQ/?= =?iso-8859-1?Q?Xd4Y8m3UMg+Cw/PSWSon6+Ya9YJM9w/OGhHMFAZn13xZojd+Iw=3D=3D?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH3PR12MB8233.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(366016)(376014)(8096899003)(7053199007)(13003099007)(38070700021); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?MuKb5tXKE1fNb4ox4BtooYGiFlUDhzuLo4+lF5nEQ0zUq2CgyftbSsncK2?= =?iso-8859-1?Q?LXePEc//gl1sEKgB1rg+UUFjelY2zkC6FUcT185OQPhrS7w9me7t62WnsU?= =?iso-8859-1?Q?Wu1eXVQ7wn12l1GFqQK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mLpjfQEkBQVzN0zVqcUJdcfWytv0wI4n7xbxlk27BWwQnSbAH0s7iLnsY?= =?iso-8859-1?Q?FRbRMXBOqxYYBGovpWWH8/TdIuwhJCAZbkuOiLKS+9x8x9k9Ib+M6AqX/W?= =?iso-8859-1?Q?EwYthjYs0K4TqGqFXB4HtcUDgFeJC/4aJ4WuHMRqUrFHIy20Q6LeiJ/Dx4?= =?iso-8859-1?Q?xeqJwUh+/xvHoM6QmaW48fYTTTCN9kpg+UA3mNE7OJFuqPODMmTBAzEL1M?= =?iso-8859-1?Q?HmDM0Lz8qYfaO1nYk+/BsqqqAVE3U5xGHRM7ZX+M1P+DbEQWGLgW782/Tt?= =?iso-8859-1?Q?7tWjtCmNVnQxyLlbOj8Q8CraNZqB/D84IVDrxpl8ZXTgmbxNRPYMbmLdss?= =?iso-8859-1?Q?QsLYUnzXE6kAH7jG4TcojC+jFmAv841PQQAJ108xsZApCjyuX/OaoTtjye?= =?iso-8859-1?Q?YQ2bUEBIJRdJNUBPRPAciYW1aCrutCi2rnInGgZpEm1mAWqLjYSQzewCSj?= =?iso-8859-1?Q?uBfIpipyPrL/FTpptOBYL6pZftSAsJdycGUWt8bDDMEhm2tPKsP40Ku6gT?= =?iso-8859-1?Q?a67S3pJ2shtGVDLP8qfJgPDmswy9xxQ9OAuIRPKggr9iXk+vbXjQzehkPy?= =?iso-8859-1?Q?nHZhrWZOTLe2Q=3D?= Content-Type: multipart/alternative; boundary="_000_CH3PR12MB82339BCBFB3E10DCA4119F5186F9ACH3PR12MB8233namp_" MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8233.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b3e6850-ad4b-49df-1af4-08de195bb566 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2025 15:31:20.9100 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jgkZxC1vtPXA3RzJpsJpnKX7vOyILUYiWZPP5ncgnilBZlvAIk+fyqaF+xbUCJPeTABMCnBMmw1gNppLFHE2bw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH1PR12MB9671 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org --_000_CH3PR12MB82339BCBFB3E10DCA4119F5186F9ACH3PR12MB8233namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable [AMD Official Use Only - AMD Internal Distribution Only] Hi Kevin, LGTM! Thanks & Regards, Sivaprasad ________________________________ From: Kevin Traynor Sent: Friday, October 31, 2025 8:03 PM To: Tummala, Sivaprasad Cc: Anatoly Burakov ; dpdk stable Subject: patch 'eal/x86: enable timeout in AMD power monitor' has been queu= ed to stable release 24.11.4 Caution: This message originated from an External Source. Use proper cautio= n when opening attachments, clicking links, or responding. Hi, FYI, your patch has been queued to stable release 24.11.4 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/05/25. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://github.com/kevintraynor/dpdk-stable This queued commit can be viewed at: https://github.com/kevintraynor/dpdk-stable/commit/4e309113126d8cf44cf2e503= 62ae590a176e07ac Thanks. Kevin --- >From 4e309113126d8cf44cf2e50362ae590a176e07ac Mon Sep 17 00:00:00 2001 From: Sivaprasad Tummala Date: Mon, 13 Oct 2025 05:51:57 +0000 Subject: [PATCH] eal/x86: enable timeout in AMD power monitor [ upstream commit 1213a8895be3bf883f10b3ba60ee84099b5ff75a ] Previously, the AMD power monitor implementation did not enable the timeout, causing the lcore to remain in a wait state until an external monitoring event occurred or an interrupt was received. This patch enables the timeout-based exit condition, allowing the lcore to automatically wake up after the specified period. The maximum supported timeout value is 2^32 - 1. Fixes: c7ed1ce04704 ("eal/x86: add power intrinsics for AMD") Signed-off-by: Sivaprasad Tummala Acked-by: Anatoly Burakov --- lib/eal/x86/rte_power_intrinsics.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eal/x86/rte_power_intrinsics.c b/lib/eal/x86/rte_power_int= rinsics.c index f7d558153e..b46e8c2aba 100644 --- a/lib/eal/x86/rte_power_intrinsics.c +++ b/lib/eal/x86/rte_power_intrinsics.c @@ -88,12 +88,12 @@ static void amd_monitorx(volatile void *addr) static void amd_mwaitx(const uint64_t timeout) { - RTE_SET_USED(timeout); #if defined(RTE_TOOLCHAIN_MSVC) || defined(__MWAITX__) - _mm_mwaitx(0, 0, 0); + _mm_mwaitx(2, 0, (uint32_t)timeout); #else asm volatile(".byte 0x0f, 0x01, 0xfb;" : /* ignore rflags */ : "a"(0), /* enter C1 */ - "c"(0)); /* no time-out */ + "b"((uint32_t)timeout), + "c"(2)); /* enable time-out */ #endif } -- 2.51.0 --- Diff of the applied patch vs upstream commit (please double-check if non-= empty: --- --- - 2025-10-31 13:53:54.355466019 +0000 +++ 0069-eal-x86-enable-timeout-in-AMD-power-monitor.patch 2025-10-31 = 13:53:52.173523796 +0000 @@ -1 +1 @@ -From 1213a8895be3bf883f10b3ba60ee84099b5ff75a Mon Sep 17 00:00:00 2001 +From 4e309113126d8cf44cf2e50362ae590a176e07ac Mon Sep 17 00:00:00 2001 @@ -5,0 +6,2 @@ +[ upstream commit 1213a8895be3bf883f10b3ba60ee84099b5ff75a ] + @@ -15 +16,0 @@ -Cc: stable@dpdk.org @@ -24 +25 @@ -index 489ad3983f..8a5f222aea 100644 +index f7d558153e..b46e8c2aba 100644 @@ -27 +28 @@ -@@ -90,12 +90,12 @@ static void amd_monitorx(volatile void *addr) +@@ -88,12 +88,12 @@ static void amd_monitorx(volatile void *addr) --_000_CH3PR12MB82339BCBFB3E10DCA4119F5186F9ACH3PR12MB8233namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
[AMD Official Use Only - AMD Internal Distribution Only]

Hi Kevin,

LGTM! 

Thanks & Regards,
Sivaprasad

From: Kevin Traynor <ktraynor@redhat.com>
Sent: Friday, October 31, 2025 8:03 PM
To: Tummala, Sivaprasad <Sivaprasad.Tummala@amd.com>
Cc: Anatoly Burakov <anatoly.burakov@intel.com>; dpdk sta= ble <stable@dpdk.org>
Subject: patch 'eal/x86: enable timeout in AMD power monitor' h= as been queued to stable release 24.11.4

Caution: This message originated from an Ex= ternal Source. Use proper caution when opening attachments, clicking links,= or responding.


Hi,

FYI, your patch has been queued to stable release 24.11.4

Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 11/05/25. So please
shout if anyone has objections.

Also note that after the patch there's a diff of the upstream commit vs the=
patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasi= ng
(ie: not only metadata diffs), please double check that the rebase was
correctly done.

Queued patches are on a temporary branch at:
https://github.com/kevintraynor/dpdk-stable

This queued commit can be viewed at:
https://github.com/kevin= traynor/dpdk-stable/commit/4e309113126d8cf44cf2e50362ae590a176e07ac

Thanks.

Kevin

---
>From 4e309113126d8cf44cf2e50362ae590a176e07ac Mon Sep 17 00:00:00 2001
From: Sivaprasad Tummala <sivaprasad.tummala@amd.com>
Date: Mon, 13 Oct 2025 05:51:57 +0000
Subject: [PATCH] eal/x86: enable timeout in AMD power monitor

[ upstream commit 1213a8895be3bf883f10b3ba60ee84099b5ff75a ]

Previously, the AMD power monitor implementation did not enable the
timeout, causing the lcore to remain in a wait state until an external
monitoring event occurred or an interrupt was received.

This patch enables the timeout-based exit condition, allowing
the lcore to automatically wake up after the specified period.
The maximum supported timeout value is 2^32 - 1.

Fixes: c7ed1ce04704 ("eal/x86: add power intrinsics for AMD")

Signed-off-by: Sivaprasad Tummala <sivaprasad.tummala@amd.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
---
 lib/eal/x86/rte_power_intrinsics.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/eal/x86/rte_power_intrinsics.c b/lib/eal/x86/rte_power_int= rinsics.c
index f7d558153e..b46e8c2aba 100644
--- a/lib/eal/x86/rte_power_intrinsics.c
+++ b/lib/eal/x86/rte_power_intrinsics.c
@@ -88,12 +88,12 @@ static void amd_monitorx(volatile void *addr)
 static void amd_mwaitx(const uint64_t timeout)
 {
-       RTE_SET_USED(timeout);
 #if defined(RTE_TOOLCHAIN_MSVC) || defined(__MWAITX__)
-       _mm_mwaitx(0, 0, 0);
+       _mm_mwaitx(2, 0, (uint32_t)timeout);<= br>  #else
        asm volatile(".byte 0x0f, 0= x01, 0xfb;"
            &nb= sp;           : /* ignore= rflags */
            &nb= sp;           : "a&q= uot;(0), /* enter C1 */
-            &n= bsp;          "c"(0)= ); /* no time-out */
+            &n= bsp;          "b"((u= int32_t)timeout),
+            &n= bsp;          "c"(2)= ); /* enable time-out */
 #endif
 }
--
2.51.0

---
  Diff of the applied patch vs upstream commit (please double-check if= non-empty:
---
--- -   2025-10-31 13:53:54.355466019 +0000
+++ 0069-eal-x86-enable-timeout-in-AMD-power-monitor.patch   = ;   2025-10-31 13:53:52.173523796 +0000
@@ -1 +1 @@
-From 1213a8895be3bf883f10b3ba60ee84099b5ff75a Mon Sep 17 00:00:00 2001
+From 4e309113126d8cf44cf2e50362ae590a176e07ac Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 1213a8895be3bf883f10b3ba60ee84099b5ff75a ]
+
@@ -15 +16,0 @@
-Cc: stable@dpdk.org
@@ -24 +25 @@
-index 489ad3983f..8a5f222aea 100644
+index f7d558153e..b46e8c2aba 100644
@@ -27 +28 @@
-@@ -90,12 +90,12 @@ static void amd_monitorx(volatile void *addr)
+@@ -88,12 +88,12 @@ static void amd_monitorx(volatile void *addr)

--_000_CH3PR12MB82339BCBFB3E10DCA4119F5186F9ACH3PR12MB8233namp_--