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 BD54C43B7D for ; Tue, 5 Mar 2024 10:58:51 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B86B342E47; Tue, 5 Mar 2024 10:58:51 +0100 (CET) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2056.outbound.protection.outlook.com [40.107.223.56]) by mails.dpdk.org (Postfix) with ESMTP id 24C6F42E47 for ; Tue, 5 Mar 2024 10:58:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ntn/lY0mXoVk+3ObN39MqTGFZKAm9G9+8p45eQm7R1M098XbJTeCe4B6OBj6qbAQ1YTHEBbR3w8hkKcsZ1YeEijUy1qcV/8k5fnDu1EzcR6kkudh5uT4grHa4HYSe5cboaDtQkqXxleOFGKI8NDSXtpFW4EH33Fdp6nhyfpGTWoana6kW0mA4moA6kNXqR43jErlF+Imdwa91uFivWBayiV9dgLsGbrOyjNp0HxKm2d1FMG0Arg8ZFr1y9RTkWpaOS0f+QLXUWmIM0+C5F4JTuNl36nT3WH8Vx/yaqBZQ7qXQ6I7hHuVK0+PDmrr+ulCLh47TVKkX5YJ7PtYZusmkg== 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=JfaAMsuMqZKHX2FdN56HDzsiQNa0+v4XMJ/i08LkaJ0=; b=KDFCNJTzxkmwbSSKj+OB6VGrVfLNEYYLDnqqugXFuEIuiAPCG7VeBBzD7DKW1JqWP3bTV8i2s9IeE0FnyEr5Mua4J5iW01Zo9i9DoJkVddW/VXHLvFpMOhPTaXoIsGziw4EeUPAHX825oDw2fkPqaBw6/CTmnfSffAyAa+Sa2s1fxpEeQRtaZyIWZd/muGs8JIqmVzXPy8btLeyUUj7zAIiuGenefb0YLNHREte9r90Edu86RIdw+RV2fibF23VCeucM5uEQqjcjMIcXxZ9QXd41KFhahxCppFAMcQqX9fJSP3ZRNvxMh14/OCxMvXCrpTOVNhhBJarGicCVRC6eRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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 (0) 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=JfaAMsuMqZKHX2FdN56HDzsiQNa0+v4XMJ/i08LkaJ0=; b=RwO2YHSs2bO+mlHJa/tHkm/J98BnU7WGt/+nBTGxJjReRwtMWrz7z6Vq6w7DUNu8vg1czgySnyg+Fqx0fH8ERSAzTS8IFtaaYUcAAfe3bdfM0PSU8eLpNRNRrb+JgdL38D051AR2vCkVVzG4MXETD+gXWaOIaFc0K6Wu6P/mCa0vekT4MUoeY0Y4u/gkEe3sNxr2RkTctEG9Nz3cW/WKayVu8e1z7gn29nKVSBJ53D7PHCvBt6tWAuInmxqX/9Wan5g1/LJF7PAyz9D5HKSl76cecyingVGi4pMEBrENcMfz2GfK1oftgyxCavolFvMcYuOJLsWqo9xFX6gIW7yW7w== Received: from DM6PR02CA0165.namprd02.prod.outlook.com (2603:10b6:5:332::32) by CY8PR12MB7434.namprd12.prod.outlook.com (2603:10b6:930:52::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.38; Tue, 5 Mar 2024 09:58:48 +0000 Received: from CY4PEPF0000EDD1.namprd03.prod.outlook.com (2603:10b6:5:332:cafe::a6) by DM6PR02CA0165.outlook.office365.com (2603:10b6:5:332::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39 via Frontend Transport; Tue, 5 Mar 2024 09:58:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) 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.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by CY4PEPF0000EDD1.mail.protection.outlook.com (10.167.241.205) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7362.11 via Frontend Transport; Tue, 5 Mar 2024 09:58:47 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Tue, 5 Mar 2024 01:58:32 -0800 Received: from nvidia.com (10.126.231.35) 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.1258.12; Tue, 5 Mar 2024 01:58:30 -0800 From: Xueming Li To: Anup Prabhu CC: Srikanth Yalavarthi , dpdk stable Subject: patch 'ml/cnxk: fix xstats calculation' has been queued to stable release 23.11.1 Date: Tue, 5 Mar 2024 17:47:40 +0800 Message-ID: <20240305094757.439387-120-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240305094757.439387-1-xuemingl@nvidia.com> References: <20240305094757.439387-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] 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: CY4PEPF0000EDD1:EE_|CY8PR12MB7434:EE_ X-MS-Office365-Filtering-Correlation-Id: 689a18b0-d937-412d-5795-08dc3cfada3a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: F5yzx0TPvkaDXP4ihCndND3hFnICtYqwwbtHFg759FEEaeJ1r3GtDwXG5awLfRhkDdUmej4sQ9zZfJd2x2cqpN1cijmc/BPYcRR2opeZ9h0iHwq65HMOpWbJmFf73LyVmX/QeGHdhkgqlK0Mk8AT9dJUhhqQscjbArUy4Zg39sRKxQ8pombcc0km+mzqr3NBIkjxvyETyiuqoLpr1TgAtbAlDmICgFLA+R5JFWCFH9TFgcaZdgaY9Ie6l8/7LhbAiQhVxu1ffmYtnCYbve//03pUQizWueCtYJvvF/LVO2N15AngthBVy8EP7ImkeSFA9Dp0T8K8271U+/XkgnHABcpP1XRKBuK7dgRM2LwAEL5zdcJrUtXSaq72WOC18kv3Jv/MvZWYNPjSMnvi5fTZNB5Q51hCSzkgop+zpSr+c0b9VeC/ligNeIvkCSlqpHxfk/TPxlfoZinaqlrXbbylQOwITHlDkVQRsXr6TherOVZTw3oqoJrwTYpspz5/AoYerLtxfxsRNrYRW+/xhlvwAFWu7mlokcVBfWzo0oWSMu4vX+8tiFQcEuzut9I26UkZpRymaYFwBMtPKAxOi1HvzbMZU/s1ovCJoos2pMHcmh8Pj1LLhjjW9X4DBK6BjI/TTDasrU0R3t7W4LxHRnmjZ8aCW8TzNEJ3rBGxBXPflWFpbAVYP28gWVKLeB/7qnwaKnyivfczaWqwA3bWFCUIP4gBlQp6ie3XHR8u2OmMMIIW+hovzOswUg4+SpTvpalT X-Forefront-Antispam-Report: CIP:216.228.117.161; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge2.nvidia.com; CAT:NONE; SFS:(13230031)(376005)(82310400014)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 09:58:47.9421 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 689a18b0-d937-412d-5795-08dc3cfada3a 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.161]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000EDD1.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7434 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 23.11.1 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/31/24. 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=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=f047cea92658f8a247f99e8fe59c604db857a628 Thanks. Xueming Li --- >From f047cea92658f8a247f99e8fe59c604db857a628 Mon Sep 17 00:00:00 2001 From: Anup Prabhu Date: Tue, 28 Nov 2023 06:04:00 -0800 Subject: [PATCH] ml/cnxk: fix xstats calculation Cc: Xueming Li [ upstream commit 59ee1e574bd6106100175017807f2242a080fc2a ] Exclude the hardware and firmware latency of model data caching run from xstats calculation. Fixes: 9cfad6c334f2 ("ml/cnxk: update device and model xstats functions") Signed-off-by: Anup Prabhu Acked-by: Srikanth Yalavarthi --- drivers/ml/cnxk/cn10k_ml_ops.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c index 7f7e5efcea..5370038733 100644 --- a/drivers/ml/cnxk/cn10k_ml_ops.c +++ b/drivers/ml/cnxk/cn10k_ml_ops.c @@ -288,6 +288,7 @@ cn10k_ml_model_xstat_get(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_layer *l static int cn10k_ml_cache_model_data(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_layer *layer) { + struct cn10k_ml_layer_xstats *xstats; char str[RTE_MEMZONE_NAMESIZE]; const struct plt_memzone *mz; uint64_t isize = 0; @@ -309,6 +310,16 @@ cn10k_ml_cache_model_data(struct cnxk_ml_dev *cnxk_mldev, struct cnxk_ml_layer * PLT_PTR_ADD(mz->addr, isize), 1); plt_memzone_free(mz); + /* Reset sync xstats. */ + xstats = layer->glow.sync_xstats; + xstats->hw_latency_tot = 0; + xstats->hw_latency_min = UINT64_MAX; + xstats->hw_latency_max = 0; + xstats->fw_latency_tot = 0; + xstats->fw_latency_min = UINT64_MAX; + xstats->fw_latency_max = 0; + xstats->dequeued_count = 0; + return ret; } -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-03-05 17:39:34.534182918 +0800 +++ 0119-ml-cnxk-fix-xstats-calculation.patch 2024-03-05 17:39:30.953566499 +0800 @@ -1 +1 @@ -From 59ee1e574bd6106100175017807f2242a080fc2a Mon Sep 17 00:00:00 2001 +From f047cea92658f8a247f99e8fe59c604db857a628 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 59ee1e574bd6106100175017807f2242a080fc2a ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org