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 403FDA0C47; Tue, 6 Jul 2021 11:34:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3263C41263; Tue, 6 Jul 2021 11:34:52 +0200 (CEST) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2065.outbound.protection.outlook.com [40.107.92.65]) by mails.dpdk.org (Postfix) with ESMTP id 558C74120E for ; Tue, 6 Jul 2021 11:34:51 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=avDqtXySLmsSAHyZgKw14HLFCDqOLt7XCcU1bwjZUImTeGR15p45KlfqrkT1Fz9kw8/rzWZpqceQTrpt0aRTr5tdNQCPrxJCspqvb3V+N4qS0H32blqU4x2llG13iN2xYNTZbJ8BZipaWfCrYQGo+EtaaDpKZbcKSg2m218/FZLREt8eknIGh80iyqomXWyAOcHPgQ8QOrmPcNnEYofsXPuZOemw7liRdL8MDAq1LGvEZTebXU6+eSle8hko3bBGve5l4cEIu7jEHAAksyA6gfVkpFa7Wsmc1vATnwiXUhALMSxWW6GZIoibsxsVj87O2uo3qm//DHSljpBurNqWbQ== 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=bq4TVUn3bYsedWj8oRRTyFGLUiC1uaF2rVbkRkXeIXk=; b=OJpCn9vUU+7bU+7/rsKSrzC8wmhuB3fiATWyrOi0bNRze/qVW4rq3sJ1oKFsQMF5ug5qTVm2jUVywqUYGqB+9Zef6U0wAjYL/U6jMGi90iuH1n2tP+Bi6gYXT5xKy+oiPWvv2R88UB+FuvP6m5Hk1RA593zMAUTRvr05wmJMZD0U+1pyrE5z0VwmZWjaNtPryWL0VuCAzkNhYj67hIeNPwacSRYqZ8ujk3fXGg6UeQA24tI64DBTWGBBMqF5hwfEI2xHq8Wgq8xfcVCGX7OxYHQ3B9YqMfatUNvnPsVoKVK/XzmAxSvEAj11FRNXpgpYUc9EcfHvuDEQH/eoMnlWTg== 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=bq4TVUn3bYsedWj8oRRTyFGLUiC1uaF2rVbkRkXeIXk=; b=mVr+mfAVRQSO0c2UkTpPITb6bHMnpRPTmGuq+DafTkWXo4aquiF20haiZYMVt7/87wqFj815DP3FPPmgjSqQB+C1CrAYkFrSoDIeN+SJ5tw3YfhIO9JsjxHQIjcQPJLKKPtqavNs4vbsOMM+86z8MdDCCzjqwWMrnmqMchj3eK7+0grvga5GYoprx/fRLL6AFlyYdktJgOPYqBGhYuziyuYUXh5f0WSIDRavIVwLJigvNswTgRLTS1choICW8dgS1uo6PU//trTTT8/1ApVWKqFffBmfseILtPFz6dFneWrym7C5sDWbckKTqX0o8YdgDC5Ge+FCDmyLb67NXQuAMg== Received: from DM4PR12MB5054.namprd12.prod.outlook.com (2603:10b6:5:389::24) by DM8PR12MB5477.namprd12.prod.outlook.com (2603:10b6:8:35::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.32; Tue, 6 Jul 2021 09:34:46 +0000 Received: from DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a]) by DM4PR12MB5054.namprd12.prod.outlook.com ([fe80::584f:2720:1100:666a%4]) with mapi id 15.20.4287.033; Tue, 6 Jul 2021 09:34:46 +0000 From: Raslan Darawsheh To: Feifei Wang , Matan Azrad , Shahaf Shuler , Slava Ovsiienko CC: "dev@dpdk.org" , "nd@arm.com" , Shahaf Shuler , "stable@dpdk.org" , Ruifeng Wang Thread-Topic: [dpdk-dev] [PATCH] net/mlx5: fix incorrect r/w lock usage in DMA unmap Thread-Index: AQHXUt1vvCr9lJOTAkiHRo6XNUuDBKs17nkw Date: Tue, 6 Jul 2021 09:34:46 +0000 Message-ID: References: <20210527094806.1383353-1-feifei.wang2@arm.com> In-Reply-To: <20210527094806.1383353-1-feifei.wang2@arm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [188.161.229.97] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b613e4a5-6f03-46d0-db9a-08d940614af8 x-ms-traffictypediagnostic: DM8PR12MB5477: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2803; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: vlcXIL8odjhuakEqbHAsO1YIpLa4uoglPRVg5pEAXI9zaNtj9+X5sEfvKLPy/KoIhaaMKYUt2V/Je7HcgKBqSywoo6Kf/82juQQbCjDDMAm+RWSRcZfai4PcdFKm2GK+WEqVjAfqKdsqe6QyS7YLvQslNdhf95aW5fLKwTtW+xdTRYVN1wAwuuAv0MuDAoE94oH3XCqrjh+seVZ3fK+ItiMkYL0Xswci56yErLuJJKwwC9FdPvQ3o0xryX9l2rfHUTR6ShTBQw5GpWIYiebQiFr+m/SykuqdU+7jQM7Yas4SMriZLsWggCxW6KwSg4bY8fURNx55s6yMLNWU89ZqXZslfU7xBLTvPRc5pqbPZtFQMOIh6NZ/u35TmBZI0y5oQNCX9StWUThRg5qujxW/8CeKhQnCOtaeatxNqRS+G84lben71YRRpj+ndxajJNKTIRvxk58f9/B2x8hi8gkqJAz+G18Ze8tjyAmKzavUOaMkVLC0wpVmLiLxWhplbZJaLSQdotfoNFmKw4J1+59LvopyBxG8v580ZMPetW+E6xTqC0790ZHJ4vCP6zMcaH9zplKKCUixLWsqejSLQJHIou3rZskf76b7CkYZNZ0ALH7qhKxKHm86hMPiibpbZDH2CCvNolhTp4VRoKHnaEDpHg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5054.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(396003)(376002)(346002)(366004)(136003)(66946007)(53546011)(186003)(9686003)(4744005)(5660300002)(76116006)(8936002)(478600001)(66556008)(8676002)(4326008)(66446008)(66476007)(7696005)(54906003)(83380400001)(110136005)(64756008)(6506007)(316002)(52536014)(86362001)(122000001)(38100700002)(6636002)(71200400001)(26005)(2906002)(55016002)(33656002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?UFCKG6fMP8E3Dn/5SN9rprIG1DTbBxl85L6GALs4NBm/j0FtzsFnTuIcIt6L?= =?us-ascii?Q?UakW4AZERZ9TZ8YuPlpHZpODrPwgiaZ1LK45t5VMyN2Q/1dnzjD17DZjr8hw?= =?us-ascii?Q?nBKENeXoiuQsrso9jYVlIW1HR+8fnsoOOqK3rbUBnixdfobj2Awio0T3pKpG?= =?us-ascii?Q?b3tVfTaHm1ShqqNT+AUOX+XyzE6mXG6gJ5gBbadUyoFsvRsH5rKZ35rN6w6+?= =?us-ascii?Q?XdejnNC1V2/E1PeZqD98cdRE02V+3shFuDkQXpOP30Zn/kgLsJRH5Oj1t6cb?= =?us-ascii?Q?MvZ3v7Rk/HcogN0Kmu3x2eMokQyBHaOY4Qxizl+mIQlA2xu4d3k1hWxlwK/G?= =?us-ascii?Q?IcuPPq1fX+KVMJlHjExAsX/GkN0ByDdCDtU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?eBQGQC8OImicbkS7pDYvSMKky59sfSR6idOH7yNIIgoovLI9722x+jiyTkk8?= =?us-ascii?Q?6Bj+BMSsSYnNtCy1uiV8sRv7?= 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: DM4PR12MB5054.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b613e4a5-6f03-46d0-db9a-08d940614af8 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Jul 2021 09:34:46.2787 (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: V9ZssHIZKby7TbnRzRDrwDT/45rRgtLEMpBHGVYQwQIQB+TdL3JDPgrI20iqsnv3gspBSN8BgImf/waH+C7lcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR12MB5477 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix incorrect r/w lock usage in DMA unmap X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, > -----Original Message----- > From: dev On Behalf Of Feifei Wang > Sent: Thursday, May 27, 2021 12:48 PM > To: Matan Azrad ; Shahaf Shuler > ; Slava Ovsiienko > Cc: dev@dpdk.org; nd@arm.com; Feifei Wang ; > Shahaf Shuler ; stable@dpdk.org; Ruifeng Wang > > Subject: [dpdk-dev] [PATCH] net/mlx5: fix incorrect r/w lock usage in DMA > unmap >=20 > For mlx5 DMA unmap, write lock should be used for rebuilding memory > region cache table rather than read lock. >=20 > Fixes: 989e999d9305 ("net/mlx5: support PCI device DMA map and unmap") > Cc: shahafs@mellanox.com > Cc: stable@dpdk.org >=20 > Signed-off-by: Feifei Wang > Reviewed-by: Ruifeng Wang Patch rebased and applied to next-net-mlx, Kindest regards, Raslan Darawsheh