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 14F13428F8 for ; Sun, 9 Apr 2023 17:31:11 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0559F41149; Sun, 9 Apr 2023 17:31:11 +0200 (CEST) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2081.outbound.protection.outlook.com [40.107.93.81]) by mails.dpdk.org (Postfix) with ESMTP id 0CFEC4067E for ; Sun, 9 Apr 2023 17:31:10 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UUvnNGSuhVp4gPoCtZUuaXvOFlcl6+BZBFzrUjXUSnT4/+vLty5trEn/MDZIU51ZWsqxwdnduSykA0zixXbXAclfYhlP4BUm8aZcMrn4B1gXMgk1q880dahcDCKeK3qnLlFokEuYKiInjHs5aZ3DMcVJIDuWLjy8ER0FBseQ082lO74/88aT0vgJXdGcNUMLrM4QB+o8q3k4+iGHVDTC6+fiOSLqE3DveaLK9TZ3Qgflb0lVAwWsHSTMKCv96CAgVVPjFZk+TxBoS9DFt44zdfhd/hbukiF9RB/Lg3MGH0ERMSlozc5BN7eYwV2nBqXrPtRdrD8ZMMXzQO+HE2eOjw== 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=RZNr8jjXS3dESHbyZfvi7jtz8LuIb7KdvxN6pGWzGBo=; b=c6LOexaEpdrARJ0qiT/SXzMt7WRyozVuWlGAMCmLVYYkjEpBDh1qQiJW4zMl3vhNmeZ6ZzA4Z3tglFslVozzFpM5occOpd0V5BOdmCJ28GtPF3cvO5OOnstU7mXNEZkz7/edyqlFSOV30mF6pIeWLeIu9ZzYLE0N7yaHbiNUdsJ+LYtAasc8WrSsAHzNrGCJCtXRdcieansMu/tCkozoi4pFGvQT+YO3Vu7DHpjvc8AgFuozu9iCfksaAw0rchihhn3UHQB38EhxA5E5wer1+rJqmNQ1nVtin8dOTsVje6EfQWS3eL55adhU3a4TdbZ2wW34OQgNHHd8WhohXf0SIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org 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=RZNr8jjXS3dESHbyZfvi7jtz8LuIb7KdvxN6pGWzGBo=; b=FEHEDS5iiS4FuT81VR5FxeCxhcgoQYAGP9Z4x+7lsjJBCknvnREhm1futXC9dnQl851naaYIb2n4vIKmWXOb3muRto/rEKw4/c89iNplJN+rcGUWVDEi9w6pRsqFPaji32KkmVCKPEDyDwj1m9J4YkYckKhfFIB4j4/IwF7nODu8u0GxckctFcWadjZ1JyUoKcrnnQGgbqNXKbdZlzzTFw9vF/TX6YxsyWzcucPPyxOuC3jE160GKOwQtNAMysQMZO082rjMergNUWqC4i77jBg1NdsmHY+uUR57f48A7h/gltpPBzQndlF1hLXNDsVMdvkQaQmhh4+Y5xClgpT+qQ== Received: from BN9PR03CA0113.namprd03.prod.outlook.com (2603:10b6:408:fd::28) by SA1PR12MB7342.namprd12.prod.outlook.com (2603:10b6:806:2b3::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.36; Sun, 9 Apr 2023 15:31:07 +0000 Received: from BN8NAM11FT024.eop-nam11.prod.protection.outlook.com (2603:10b6:408:fd:cafe::85) by BN9PR03CA0113.outlook.office365.com (2603:10b6:408:fd::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35 via Frontend Transport; Sun, 9 Apr 2023 15:31:07 +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 BN8NAM11FT024.mail.protection.outlook.com (10.13.177.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.20 via Frontend Transport; Sun, 9 Apr 2023 15:31:07 +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.5; Sun, 9 Apr 2023 08:30:57 -0700 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, 9 Apr 2023 08:30:55 -0700 From: Xueming Li To: Gerry Gribbon CC: dpdk stable Subject: patch 'regex/mlx5: fix doorbell record' has been queued to stable release 22.11.2 Date: Sun, 9 Apr 2023 23:24:12 +0800 Message-ID: <20230409152529.5308-65-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230409152529.5308-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230409152529.5308-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: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT024:EE_|SA1PR12MB7342:EE_ X-MS-Office365-Filtering-Correlation-Id: d9faf29b-7879-44bb-1d68-08db390f706e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GnH3z+ht7gQatglBXWu06rFIWFx3i1xu6TcvgwzvUqa5vSPa1K3h/mMsqdA8AxUgykELQlCyyyDoJsLGOd4n3gsizc4XUAv2oLUDDUIHElaF6jcvuPqmyPxr0pROH3AVr57tyEUl2jLUWyYQCv2JwySPzzaur8igGpL+H+W1mqUgHm9nMTumHWgDwryQkHMp6y4blCznorOUpbzax4T/0e99q2dyCctXVaO4RMOf4Ntqhl6TfLK6ULCmiFtZm92enTqNhxqAb98FrXju/b49+A/w5HyB5RqcsqWJUvKQFhgwg0P03oxA6GDMIqAkR3ED87pwq59TDg6Npivhf416gYftt/J9Jyr1uZEdp0tRuMmTgSnJ5zFxPoFa7aSPlmI2owUNo4ZGddQiNzfhAKbMRVAxhXX8X2z6OxmjmEJow19G6qkvKi3rvqE/3G8ooaYwzWxuqqX3R6GwPLSWodVdQLN+acGOnsGvispWG1TpRdinRAy6IXbtz/+50EIH/F++d0TDJs8RjXlPavRbEK3DQbaQJsw61GazAicc0EwGWYDUwNDovoqds0T7hMA3+SQOzzSUkB0ll4/GzGCpIzRK13seLHgR61ACdpl2/xxVwEFm6P5oAqX/UxyJOopHKkyzR0dlmLbRvY0iUmeIS+nYQ7FZqhUWAmT/2B77hRie23a2dPM927Zz+6afXwR5qbDSArcuXORDIBNKE1nnYA9CPgGRy9lPg95hKrEWVikUfOVG8tEqSH4z3HYALZkOVFMIQqwLQ8hfXS6dSNFsrBxv4aqCYBRO7h+qQDNrBQR4OwAhy6M0yolV4K/VjR4r/2iF8mJ5MMae1gz5B6j1CZfVAA== 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:(13230028)(4636009)(346002)(136003)(39860400002)(376002)(396003)(451199021)(46966006)(36840700001)(40470700004)(86362001)(36756003)(37006003)(316002)(41300700001)(70586007)(8676002)(4326008)(6636002)(966005)(7696005)(70206006)(478600001)(40480700001)(55016003)(6862004)(82310400005)(5660300002)(2906002)(8936002)(36860700001)(82740400003)(356005)(7636003)(16526019)(6286002)(186003)(6666004)(53546011)(1076003)(26005)(336012)(2616005)(426003)(47076005)(83380400001)(40460700003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Apr 2023 15:31:07.4583 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d9faf29b-7879-44bb-1d68-08db390f706e 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: BN8NAM11FT024.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB7342 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 04/11/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/log/?h=22.11-staging/commit/4224d5f5218a792143a45d30aeef594ccaade5cf Thanks. Xueming Li --- >From 4224d5f5218a792143a45d30aeef594ccaade5cf Mon Sep 17 00:00:00 2001 From: Gerry Gribbon Date: Tue, 21 Feb 2023 07:49:57 +0000 Subject: [PATCH] regex/mlx5: fix doorbell record Cc: Xueming Li [ upstream commit b15d75b2872efce397d827dac78692a919358302 ] We were writing a value that should represent the number of items to be processed by hardware. The value being written was off by 1 (N*4)+3; The value should be (N*4) + 4 simplified to (N+1)*4 Fixes: 5dfa003db53f ("common/mlx5: fix post doorbell barrier") Signed-off-by: Gerry Gribbon --- drivers/regex/mlx5/mlx5_regex_fastpath.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regex/mlx5/mlx5_regex_fastpath.c b/drivers/regex/mlx5/mlx5_regex_fastpath.c index 6c87afa923..8e5f8c9c95 100644 --- a/drivers/regex/mlx5/mlx5_regex_fastpath.c +++ b/drivers/regex/mlx5/mlx5_regex_fastpath.c @@ -211,8 +211,8 @@ send_doorbell(struct mlx5_regex_priv *priv, struct mlx5_regex_hw_qp *qp) (MLX5_SEND_WQE_BB << (priv->has_umr ? 2 : 0)) + (priv->has_umr ? MLX5_REGEX_UMR_WQE_SIZE : 0); uint8_t *wqe = (uint8_t *)(uintptr_t)qp->qp_obj.wqes + wqe_offset; - uint32_t actual_pi = (priv->has_umr ? (qp->db_pi * 4 + 3) : qp->db_pi) & - MLX5_REGEX_MAX_WQE_INDEX; + uint32_t actual_pi = (priv->has_umr ? ((1 + qp->db_pi) * 4) : qp->db_pi) + & MLX5_REGEX_MAX_WQE_INDEX; /* Or the fm_ce_se instead of set, avoid the fence be cleared. */ ((struct mlx5_wqe_ctrl_seg *)wqe)->fm_ce_se |= MLX5_WQE_CTRL_CQ_UPDATE; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-04-09 21:45:40.420181000 +0800 +++ 0064-regex-mlx5-fix-doorbell-record.patch 2023-04-09 21:45:38.669042200 +0800 @@ -1 +1 @@ -From b15d75b2872efce397d827dac78692a919358302 Mon Sep 17 00:00:00 2001 +From 4224d5f5218a792143a45d30aeef594ccaade5cf Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit b15d75b2872efce397d827dac78692a919358302 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org