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 9A34AA0507 for ; Tue, 12 Apr 2022 10:08:45 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9278F427FB; Tue, 12 Apr 2022 10:08:45 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2086.outbound.protection.outlook.com [40.107.212.86]) by mails.dpdk.org (Postfix) with ESMTP id 0F65B410E1; Tue, 12 Apr 2022 10:08:44 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z9QguUtC++oT8wssNh2CkicBcd1v+YqVcK5CuRCKZspef5JtyYbfEc8/hgyeL562JHWHKH9vxw62af8yrad/IygSti4wny5xFcjQHPreZo/yxQQFO0/9mKw10KwSZ31/H3hSg+GJ8JUMubS+3DAszyx0xlrvK43oG+Lr1f1azNQnP+7tccoSI/T07WgGoZViVwNHWwJLzMJSUMcnMH7fZCivmPgj3SFJgV8PVxXMgHWW5eLiEzN2TtZvORM2EP8oEBkT2EsvIybB46G3Fvm5Xqj+pe1oFplI/nuOkiju4mRUuiHdhf6AidL+HAqfR1ElvhTW4ksML0xkp4+y8FmPiw== 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=212QRTQLz3U0U+Vm03xqFIYmr9HX7CIGs7OsUPkpR7Y=; b=Q6v5i//bg9XbqsJQS2ZtdXUkRrD1FMEW7AyCLlF5g9NH6WogYvpungGWMUKvjafwh5KVcSK7hIcKV9EJrOLpzgEprYIBZKQrwSdQ60IvbhajyNybiu8iNNd/nCGkMjQBx8H4dxnoY6TpPF60yJwhgoRwxiBANg6mpTJHybyD27rgn4cjc5Wh1Jzprb+U0O28ItE8Qa2MQxeUY3kyRo7TyDvqF4YM6hkoawe6Vlf/oIjMDawvNyxY1jqjdJUl2XrviCllQufwu5/+qMoe6spk/xnRVYn+vut8auH/DboHs2dg3B6mnJN1PlRQFE+5rWPBksKN5KxPQr+CCKWvPTqx+Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=212QRTQLz3U0U+Vm03xqFIYmr9HX7CIGs7OsUPkpR7Y=; b=NtQxV7QHC6JDwx2o5dYeCMevoo1a1RCa2o2pe9SuUsket9wkuCejz+ejX6iPtpaMmTRfuAxnt0+QImltd1fxFvEoH5xJqTMoSXO8TU/PmqQeON8olDXo6WGO9Pq74A0I67QieQv1TlbzSfp9+pZt+XYkyQbFs6Jia2hBrxx9MtZLpxjrstha0pPeIGKOynlCjUvaV9kXwR4E1MMzEvB+faWfbO2KIRZEMO/04tl6lbNY5kHjFXXYi7daXIJhVk+MCWz8b9nHssaXLLqdO4rTGcuREM+H0XotoC6LlT5ChYD6iBwEJH1CMyyX/8JnLX0PVIVfjFUZiUmCSGGMFZcQgA== Received: from BYAPR12MB3078.namprd12.prod.outlook.com (2603:10b6:a03:a8::31) by CY4PR1201MB0248.namprd12.prod.outlook.com (2603:10b6:910:18::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5144.29; Tue, 12 Apr 2022 08:08:42 +0000 Received: from BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::19f:27df:64c5:3d7c]) by BYAPR12MB3078.namprd12.prod.outlook.com ([fe80::19f:27df:64c5:3d7c%5]) with mapi id 15.20.5144.030; Tue, 12 Apr 2022 08:08:41 +0000 From: Raslan Darawsheh To: Dmitry Kozlyuk , "dev@dpdk.org" CC: "stable@dpdk.org" , Matan Azrad , Slava Ovsiienko Subject: RE: [PATCH] common/mlx5: fix MR range calculation Thread-Topic: [PATCH] common/mlx5: fix MR range calculation Thread-Index: AQHYRQxNJfGKTWMsykmVVY7/elzjEazr/uHA Date: Tue, 12 Apr 2022 08:08:41 +0000 Message-ID: References: <20220331143316.3343802-1-dkozlyuk@nvidia.com> In-Reply-To: <20220331143316.3343802-1-dkozlyuk@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: e02fcace-39b6-4188-7a59-08da1c5ba862 x-ms-traffictypediagnostic: CY4PR1201MB0248:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4yfZd/g9cRS82gZ2WB8wqCN/DWpv2hK0Bm8MY52xQTFs6BmWndueQcAcli6+zZUaWX4ZKHtpNOriOM7ibdLOFsJWFMw5gTDIP0Ylem4Rx+6nCqpm2BKdXXXbFa9UCBW+AFuAottSSvaY/dzKbRW80qYrsSmnsG7W7pyIq8OVTtE+AYq//ZdGdIA0ea5Ug1zk6os192kXxGaDvBsq+ewQ8dxT87fV9/pJ6FEGRHbg1XoKIQ5674xk/5MJkxfwZ9iZMAgRWkqi2gXjrN0zB2n/thcX4rByErfH8h7CCU/4ktI7957utvbi7vEBXb6I996XLUdH3xFLy14s3iqcQ2/xkwS/wVtrqrYUFy7TiqACL5LEZ2vpzZybHtlxs74ooqGmQK3QxxA9qX1D5L7u5et93s6/BlqwZ998ndcXBZ5gxx3U/6iSApXgEEXOgRrRJDg8qS1jENrmh0hazYCchmVVJRrLMvoSEH/VnoH+7JXqLd4ZACzzbNNFD/T994XdIDJ1pkpODexOsT+TjmWXriIrauBC+eumh3LgVaMik9O26RqR8OPCet97c6kayzkef96rXHQfcm6+Eg04G1OtPWGbapkc7JR+u+5OfE2kt5EcapsZJFghE6y3ViP/S3sG2jmCMK5pPOYdN3EGRB4jzOTVO42DusHmQ+x4qx06D/zdLM5H2Em1YlSqKcfqBOI+s8CXN4lH6OZP+/1V5UQiH1I/Xg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR12MB3078.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(8936002)(52536014)(54906003)(110136005)(33656002)(2906002)(122000001)(9686003)(5660300002)(316002)(38070700005)(53546011)(66476007)(26005)(7696005)(6506007)(86362001)(38100700002)(107886003)(186003)(71200400001)(55016003)(508600001)(66446008)(66556008)(64756008)(66946007)(76116006)(4326008)(8676002)(83380400001)(4744005)(450100002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nxBEjE5g0KPUnNxOybo0PK3D9zEs7rFjjhn8yudYcRIgaQLd78axzULkQ3SF?= =?us-ascii?Q?L/wQigk7qqEsvu4e6PrlNLiX30loI0epuEkKDWZqOuKmrIzWECy9+0p0VH1g?= =?us-ascii?Q?BgWIjgy335R9PeKh27xLpUQkJcV/sAVHu9N2Ze/pIMc+EWRqw536Je9OS4Xy?= =?us-ascii?Q?0cDzOgGHfwu9OZ6gWAApLcEBtUWUWVcddmRSKDrbG+j/Fv7tOy23NCFQcDXB?= =?us-ascii?Q?kFwKIjxS8E1F6QRCQFgzEym4M+toc+6SSNpfv90c2ewvevIZVHLFcHds3RAi?= =?us-ascii?Q?5xNx0aRLP0sdxalb1JGpVt0UvF1IISiQ0oMxt/5F0ebWaZA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LFPzy79Z6m6I4GsQunFAGAz6aUx0e+Fks8gpshqJAobIpmPopkDNH?= =?us-ascii?Q?RnK8x3MjPkwpdobP2NMWNpyAyLKMwandEmnH4vzRYHc0xm8nTGbuNjwYNxKN?= =?us-ascii?Q?/yFRh6GK+sgFJTpzK+4SeHwZaOxu0+aobsWW8vJhQlZs8ldhiwq5vK4QCFV+?= =?us-ascii?Q?A3Ij/FmBinpnDS4HRlMEWwDmiuBrnDoQpslg4LDugfybDzlOrC499dEC6Emz?= =?us-ascii?Q?AEDhb3esYEVWLQI+73nIssyeECY0xQM5tW5t6on7WBzLOlDZSzlhhYhM8Iwl?= =?us-ascii?Q?6N9MRhr2K+L1ArzvYPV7dx5P4x+aOGnW3unKnlWw/nGlx1upBZUxPv3W4NVP?= =?us-ascii?Q?5w/dzUMmPC1eczpV0t4G5pAYTaLwXtFNd2XP1lZ9p3lsoD6S5o2SdlYMkVmK?= =?us-ascii?Q?HO8YoPuWrIqqov5xHCGzcY9eqfqSgKNr3GSJBvNO7aDfOEVb7SQdA+0yRzQ9?= =?us-ascii?Q?6iON9Szc5jlDFJU0u91/oNbVBFQtq4uXz3vOadS/AX1v9WTPD0bVp0cJNdpD?= =?us-ascii?Q?XOpuGpuVTA=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR12MB3078.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e02fcace-39b6-4188-7a59-08da1c5ba862 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2022 08:08:41.7880 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8LEsdsGs7Y7u1STyyOD62+Eocfe8wADXLqtTa+th4Xc3twCOnLR6rNdp1SWgUhei5V8OXtK+2+7p0PVDe+w5xw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1201MB0248 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, > -----Original Message----- > From: Dmitry Kozlyuk > Sent: Thursday, March 31, 2022 5:33 PM > To: dev@dpdk.org > Cc: stable@dpdk.org; Matan Azrad ; Slava Ovsiienko > > Subject: [PATCH] common/mlx5: fix MR range calculation >=20 > MR end for a mempool chunk may be calculated incorrectly. > For example, for chunk with addr=3D1.5M and len=3D1M with 2M page size th= e > range would be [0, 2M), while the proper result is [0, 4M). > Fix the calculation. >=20 > Fixes: 690b2a88c2f7 ("common/mlx5: add mempool registration facilities") > Cc: stable@dpdk.org >=20 > Signed-off-by: Dmitry Kozlyuk > Acked-by: Matan Azrad Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh