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 B2D1C41D8D for ; Mon, 27 Feb 2023 08:08:41 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AB51440A84; Mon, 27 Feb 2023 08:08:41 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2084.outbound.protection.outlook.com [40.107.93.84]) by mails.dpdk.org (Postfix) with ESMTP id 6090F40A7D for ; Mon, 27 Feb 2023 08:08:40 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YzM55Eh2hxPo+IKthQQMxCFSr/K5H/enP84Hlu/GplUhEZVPR8oa0F/UTcz8apY7zT17QIciAE2DIn6bzrpqXon1Q1j0hphZrA8H2kNUS9XSkOOGMY1dstQiVwEr0Ba2H75wzNbb2/7Z0fh3LemjqStLWsopbYTycrLf6tpm2S27EyMM32QYvMwVSjlOyBU2nUR8Yt5BYd1j5YKHHKjqul7WnhKPkeYR2rAQc8Tjuzvq7rntODdNO1TBn2SIggJ8DiIr8zXC+7IIMdeqqz9RyjtGJiEG0HJlLWS5JlWcdiJimZrvHQi20g64i43aoZU3H9r3K2a8w2CR2bXltcKiTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=fDI8Gpu+mD1yZ7LFw/Y/ePo1z8Yr8KAtoTJRgLlz9Co=; b=Kj6KgZVkF+372/kARwYwczmAw5w4Yqa9PJAXzNgUgy1nmmkr3P7APtmNj1pYidJEyJYRNXoIkdCBRPLEcPAuBhpC5ZMLsf1MFeivkhd/j3FtLecenlJas3juOFNuQGnuuBGKSCcyv7CWpHvL2QL+bthB/cLSVVLfAhITwepgu9E2mDEOUHLWqYLueMtV+JZfBKY0s8UEpZCdrsKVVOO9023t/uX983tScbQ3tXEl+LErGqCxfsi4VwJMnQRcBEOb6VNXqO1pBV6hq8nI1t2+2xeD16yN6i3bba/4T57Vdy9Qd8dafHigF8kMo1TIP9FL31V7hcGbH9daR2vdmpxv/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fDI8Gpu+mD1yZ7LFw/Y/ePo1z8Yr8KAtoTJRgLlz9Co=; b=Fvo2qCllffx/l8/SxLD+MzIpZrSAdohOGADEO8Tj2RFae7w5jCrD3flFPtef3WkZFAu4kJNfoXQvvG1xS3b82XAuVNMU5mJK98jj7XyNgc/OaEI1pI+Ka6a/hNyNQs44vzL49Vzy1Hl3/SFZIqVKcF4b9yBGPzvO9GqQn2rPZ7+P0mkGKYYICR3kDiu4OXVzcYEA1vMIYsisRxc2M4Sc5mkROVf+DSGcXwm+IHB1LR8/Z0W7AmwWc6fUplSnWTuQgSxSonN3slazlXOIqYpcyfoMqZseyvdA6kejEsKWfBLZ2TFuGEDr4WbemrhJIKjUBcBsdy+032LHjs5uMUl2Fg== Received: from BN0PR03CA0025.namprd03.prod.outlook.com (2603:10b6:408:e6::30) by CO6PR12MB5409.namprd12.prod.outlook.com (2603:10b6:5:357::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29; Mon, 27 Feb 2023 07:08:38 +0000 Received: from BN8NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:408:e6:cafe::ea) by BN0PR03CA0025.outlook.office365.com (2603:10b6:408:e6::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:08:38 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN8NAM11FT045.mail.protection.outlook.com (10.13.177.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.14 via Frontend Transport; Mon, 27 Feb 2023 07:08:37 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:08:30 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:08:28 -0800 From: Xueming Li To: Pavan Nikhilesh CC: dpdk stable Subject: patch 'event/cnxk: fix timer operations in secondary process' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:36 +0800 Message-ID: <20230227070107.15664-68-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT045:EE_|CO6PR12MB5409:EE_ X-MS-Office365-Filtering-Correlation-Id: bff97b67-5950-4939-a11a-08db189172d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vTbna4HdDhN+WD3zfg94pvVyva4XYLFCJ1+qLD8l/I0Xq54Wxu2Ge6dxZSFdSUSqDAdV91qipXBU5PHvplxlmHExnbASLExp9nOIIjgup4U1S2eLDB+GINDtpIfJx6PpmLCaT72ZFlwahvOHDnsheNm45/MgvBnQiGL+hyhlFuI4BZNzMAfcZ+vj91HjHNqam6PhVhMXmyAa+YPz2Fgh/F2Hpans76sFznXKSYRk7fE5tsZ3oAhOpnB8cR8/RmTBconVqjnXmZubfePjIz6eRYnGdfiU8oW6BhgzcnYYP+NxsZ7YZ4a/xyVEgWiZkexQ+RCz3g6YqYiEGKtE+N/XOJ3xRI6lWSBS6Bc7pNrD1uH/IrQ1ffIRNdyb7Ky79nCaWMlIEId+/BFVUKuKcCPdo7ZKoeSRnL0qxPwUd6aHAHtc8hAamiC+jwxaGc1EHTiHL4vj4o/KKV7VRQxYbu82PQIXicoNTTDdJ4P1y+tER3wnZqOVcdkq0S9JC/VklGEJOdlN9ceSR4x74vLHUgqUtgwXY5nhOOLw6rXSD9nzi53Fpczs0gyA6JOuc+be4Etda5EKOlf75rhYXUH4gmPotlQ6z88HhZBbdLlI+fwo9cX83tXaU2HL8b/ZJva6AM1i1ctcvzfhzSJGlbK6ggnSnGfOg6GWVgZ5xPj8YEThG5C+0p0xNsG2jNxi5flCxinHa8OeyYCzLY0pr1N2kvD3dM+SZsZfyscrioPKI2RCreYFuVXrWokqo5LcrCUfgYQ+sJqvpupZRG7CGHGKS4rVKZU5EEHkO7d681Htw8844HREkvpUYUXTytBEb4LhY0Hy X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(39860400002)(346002)(136003)(396003)(376002)(451199018)(40470700004)(36840700001)(46966006)(36756003)(40460700003)(316002)(966005)(478600001)(7696005)(5660300002)(2906002)(8936002)(70586007)(70206006)(8676002)(4326008)(6916009)(41300700001)(7636003)(82740400003)(36860700001)(34020700004)(356005)(40480700001)(86362001)(55016003)(6286002)(16526019)(186003)(26005)(2616005)(6666004)(53546011)(1076003)(82310400005)(336012)(47076005)(426003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:08:37.6953 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bff97b67-5950-4939-a11a-08db189172d5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5409 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 Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. 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 rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=efb6eccf8e49d3086945f42c1f2c3eff28476e15 Thanks. Xueming Li --- >From efb6eccf8e49d3086945f42c1f2c3eff28476e15 Mon Sep 17 00:00:00 2001 From: Pavan Nikhilesh Date: Sun, 5 Feb 2023 12:03:47 +0530 Subject: [PATCH] event/cnxk: fix timer operations in secondary process Cc: Xueming Li [ upstream commit 5f3d1c4ad7c35fb1eeb654b27019798ee6245a4b ] Fix event timer fast-path ops not being initialized in secondary process. Fixes: dd519f83dd96 ("event/cnxk: add timer adapter capabilities") Signed-off-by: Pavan Nikhilesh --- drivers/event/cnxk/cnxk_tim_evdev.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/event/cnxk/cnxk_tim_evdev.c b/drivers/event/cnxk/cnxk_tim_evdev.c index 5dd79cbd47..c155764b77 100644 --- a/drivers/event/cnxk/cnxk_tim_evdev.c +++ b/drivers/event/cnxk/cnxk_tim_evdev.c @@ -381,6 +381,7 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags, cnxk_sso_set_priv_mem_t priv_mem_fn) { struct cnxk_tim_evdev *dev = cnxk_tim_priv_get(); + struct cnxk_tim_ring *tim_ring; RTE_SET_USED(flags); @@ -403,6 +404,12 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags, dev->event_dev = (struct rte_eventdev *)(uintptr_t)evdev; *caps = RTE_EVENT_TIMER_ADAPTER_CAP_INTERNAL_PORT | RTE_EVENT_TIMER_ADAPTER_CAP_PERIODIC; + + tim_ring = ((struct rte_event_timer_adapter_data + *)((char *)caps - offsetof(struct rte_event_timer_adapter_data, caps))) + ->adapter_priv; + if (tim_ring != NULL && rte_eal_process_type() == RTE_PROC_SECONDARY) + cnxk_tim_set_fp_ops(tim_ring); *ops = &cnxk_tim_ops; return 0; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:43.109134400 +0800 +++ 0069-event-cnxk-fix-timer-operations-in-secondary-process.patch 2023-02-27 14:08:40.799237000 +0800 @@ -1 +1 @@ -From 5f3d1c4ad7c35fb1eeb654b27019798ee6245a4b Mon Sep 17 00:00:00 2001 +From efb6eccf8e49d3086945f42c1f2c3eff28476e15 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 5f3d1c4ad7c35fb1eeb654b27019798ee6245a4b ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -18 +20 @@ -index 6ff3ca72f7..f2862f3292 100644 +index 5dd79cbd47..c155764b77 100644 @@ -21 +23 @@ -@@ -378,6 +378,7 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags, +@@ -381,6 +381,7 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags, @@ -29 +31 @@ -@@ -400,6 +401,12 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags, +@@ -403,6 +404,12 @@ cnxk_tim_caps_get(const struct rte_eventdev *evdev, uint64_t flags,