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 57DCDA0A0E for ; Mon, 10 May 2021 18:04:09 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 51B844003E; Mon, 10 May 2021 18:04:09 +0200 (CEST) Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2047.outbound.protection.outlook.com [40.107.94.47]) by mails.dpdk.org (Postfix) with ESMTP id C9FAE410FE for ; Mon, 10 May 2021 18:04:07 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BkSdmJtF+xd2Vm2W5u2OZpearcdfnO/KFYrdNfOWWUA1r22un5JFVLOoS6ApOApEH/UT1qTpcK3/YDyeEhByGmpgSa35uOjJg6N2rOVwuHwkdA+UfDII6EzWAS6P0CPdGysDUzjtFSKZfrjq9q1jdXqzwCGx1AkeMk+KZU0plUyUySvOCuPfIpT2E1YBkkFbDPgf3OtjxfBDPPA3tZQPclbfdtf7XTywCZ6iyfHZynkyXr5MdHJQi+o5FzHdNw5Tk+jC0aoDb+Nh/kfRmlVFUvzyoXcdPkttTLnf0NQa+iQMsOA23pI7eTAEH0b1FMaKS/KYl1IxUVBL2milPZpxjA== 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-SenderADCheck; bh=dwTbfP8OEJfWDgAKcGTyruXRLT7/KqUnB+q3YuHUFUo=; b=Q7Y+aMQg6nhtI8gY6ayyPfsbBIRWtzCk/h1gPWC+tnd8iBHtoPhtZG3yQJORbZ+EdYnKelZPc74SeF7+OFZXNZWmotDM4dqHYhEY2PG+zRmtCrOLCrnP8if/9qBViBJa3JdeoxoKcAA+evvewlr9hPOQK/nDkv+NJ+/9r38sJA3EXPyO6myu/fhjJDplnSeu0SnzwSQS0NnyU3nPWg8E9q9CRQMbx0mYJtlqTTn2TMpwxWOSAMf5mP80c3vdHj+L2D/ODschU4VtnJ7GSIS4cXft5GKaFCXFph74LMny8YtEMKuOJX44hsS2irqTeuqN5ABNTnRC5CwBY8xPTjfSow== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none 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=dwTbfP8OEJfWDgAKcGTyruXRLT7/KqUnB+q3YuHUFUo=; b=gr8Q5rkgEv1khOZV5mB3mTSVDEuPlfpI4qme52cYxLtI+LDiA7g2UK0hGA/tTfrVYYgCtRdX5W8iz+W0I6R47No9xypM6juG/Q3bRosD+qj0HddWQCrwORnI2hu5O2SD99bo/xfPK3Wbu/p4DoAip/W7hKtG+mqCdUAvcUBR1fl1bGVWheEDHBtciWyYkOOwusmzHoD+UITyym1elOy8XS/sBpFNaHbOAklNxckC7n8Z70tocJFWGKiO9jsYawvs8W0M0T17h4TAHJ6W8W8LvhggfdzT8axekclLi8fceykram3+QqwzRiTAJLzFaqTcej6uU2mukkpfiFOy4VEnBQ== Received: from BN6PR1701CA0008.namprd17.prod.outlook.com (2603:10b6:405:15::18) by BY5PR12MB5013.namprd12.prod.outlook.com (2603:10b6:a03:1dc::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24; Mon, 10 May 2021 16:04:06 +0000 Received: from BN8NAM11FT014.eop-nam11.prod.protection.outlook.com (2603:10b6:405:15:cafe::7e) by BN6PR1701CA0008.outlook.office365.com (2603:10b6:405:15::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4108.24 via Frontend Transport; Mon, 10 May 2021 16:04:06 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT014.mail.protection.outlook.com (10.13.177.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4108.25 via Frontend Transport; Mon, 10 May 2021 16:04:05 +0000 Received: from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 10 May 2021 16:04:03 +0000 From: Xueming Li To: Dekel Peled CC: Luca Boccassi , Viacheslav Ovsiienko , dpdk stable Date: Mon, 10 May 2021 23:59:18 +0800 Message-ID: <20210510160258.30982-9-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210510160258.30982-1-xuemingl@nvidia.com> References: <20210510160258.30982-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.145.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f31f723c-66ac-42b0-4df1-08d913cd3ce5 X-MS-TrafficTypeDiagnostic: BY5PR12MB5013: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Uzp+nnofq5/KkJ2sh31oZRgofLiGZZyS74JJxKrX4q38jE15HzjKbUKQN4Z+8CfMUTk+AcWTHuJ24zYALhuodQiFymrv9orhmj5iZpfAQf4aSrZCfh81nancYez3Cy2Z9U4CmzzoBVCPMdJ/yo1XEoc2wsp1k92c3Dha+KgdXV8NQPlOGE0EhYD2BDe4ol/b1DChhK6VKKjhAe7JGkyEl/GL7B+wPVYStJ9yHi8U+Dt7RjeRSCCAQZ4+HJys7VW5TSaP5PHwiGQzxZ5ugfN0RlbCv5e+qWgq78D9pmLVeaIbiHd67z+C/XzHw0dBXBBNlmOmE65GbEugrS2MK6IkvEvrkDb7JKfuWHs6pejIQIp2n67B4byRlyJ2OJkdxDw2zJOHp2OlAaThhqCbAeIn8XWD9W5tptc/yI3Upgrikt3/kc0igMpejDbl+p5kdzelykAQ7W/4CS89J2RKJMiLu4HMp3YcyKewySdlNtVzkKaXnk6xwy22/JxjrpmuXHc3sxCfJ/FBOgRRgtxZz9Te7Gnijpr0E0v0mb/Zlb0YCEDwDV12eG36MUVl3CPR1sbB+kY7SHFE67XtyVzUBeMGCuw8H9WN9Sy1GEvqqi5ooXUwRUJ0CMGEXCQpuYARSuwAsH8tslGbm3mTAp1BGsQWmHtu3B0vZH/KHL9rNCujdToxXaSp673Naw5EWGDNVZaVwRxEEgEozNhZrnrTjaXeaSw+1z6ryymU1yyTPDr9m7p//eZdGgfgC0Cm/sJ8Aj3/0x6z2eu9yHkRxzUyHqKhlg== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(376002)(396003)(346002)(136003)(39860400002)(36840700001)(46966006)(5660300002)(55016002)(6636002)(70586007)(70206006)(54906003)(356005)(478600001)(6286002)(82740400003)(82310400003)(186003)(16526019)(26005)(316002)(86362001)(4326008)(36906005)(6862004)(36756003)(2906002)(7636003)(8676002)(37006003)(8936002)(966005)(47076005)(2616005)(7696005)(1076003)(36860700001)(336012)(83380400001)(426003)(6666004)(53546011); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2021 16:04:05.8680 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f31f723c-66ac-42b0-4df1-08d913cd3ce5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT014.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB5013 Subject: [dpdk-stable] patch 'common/mlx5: fix DevX read output buffer size' has been queued to stable release 20.11.2 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 Sender: "stable" Hi, FYI, your patch has been queued to stable release 20.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 05/12/21. 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://github.com/steevenlee/dpdk This queued commit can be viewed at: https://github.com/steevenlee/dpdk/commit/8d2066d2ec530f74951f54f53b7b48847117681e Thanks. Xueming Li --- >From 8d2066d2ec530f74951f54f53b7b48847117681e Mon Sep 17 00:00:00 2001 From: Dekel Peled Date: Thu, 18 Feb 2021 18:18:05 +0200 Subject: [PATCH] common/mlx5: fix DevX read output buffer size Cc: Luca Boccassi [ upstream commit dd9e9d5491858bee49914c4fa574cc8e15640905 ] Previous patch included a glue function call, with wrong size calculation for an output buffer. This patch fixes the issue, using the correct size calculation. Fixes: bb7ef9a96281 ("common/mlx5: add register access DevX routine") Signed-off-by: Dekel Peled Acked-by: Viacheslav Ovsiienko --- drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c index eafee65f22..4485a9cd5e 100644 --- a/drivers/common/mlx5/mlx5_devx_cmds.c +++ b/drivers/common/mlx5/mlx5_devx_cmds.c @@ -53,8 +53,8 @@ mlx5_devx_cmd_register_read(void *ctx, uint16_t reg_id, uint32_t arg, MLX5_SET(access_register_in, in, register_id, reg_id); MLX5_SET(access_register_in, in, argument, arg); rc = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out, - MLX5_ST_SZ_DW(access_register_out) * - sizeof(uint32_t) + dw_cnt); + MLX5_ST_SZ_BYTES(access_register_out) + + sizeof(uint32_t) * dw_cnt); if (rc) goto error; status = MLX5_GET(access_register_out, out, status); -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2021-05-10 23:59:26.964338500 +0800 +++ 0010-common-mlx5-fix-DevX-read-output-buffer-size.patch 2021-05-10 23:59:26.310000000 +0800 @@ -1 +1 @@ -From dd9e9d5491858bee49914c4fa574cc8e15640905 Mon Sep 17 00:00:00 2001 +From 8d2066d2ec530f74951f54f53b7b48847117681e Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Luca Boccassi + +[ upstream commit dd9e9d5491858bee49914c4fa574cc8e15640905 ] @@ -11 +13,0 @@ -Cc: stable@dpdk.org @@ -20 +22 @@ -index cc70c794e7..0185d57036 100644 +index eafee65f22..4485a9cd5e 100644