From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id DD762A0AC5 for ; Thu, 2 May 2019 15:06:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 957005F1F; Thu, 2 May 2019 15:06:42 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30051.outbound.protection.outlook.com [40.107.3.51]) by dpdk.org (Postfix) with ESMTP id 4893D5F16; Thu, 2 May 2019 15:06:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Q3LkfI9oJL693r1ochv9mgbt0ERT3zulXCHrzClEMFQ=; b=AEAutSdHS0Hrid1hlbD/lql0QQiaXxHs331isnZGAvggSeRFncGsUlb2BgefWV/1iDPc7Ke64virfVEo+yx0WJupWBtwmv6ZQdx44D+kYNq6HeZ6KbgZBQ04yY6Kbl2AyJjgRaS8BG8WeGAcy4CdVnCL2DDhxiAEdSM2YbKAaoY= Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com (52.133.45.150) by AM0PR0502MB4034.eurprd05.prod.outlook.com (52.133.41.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.11; Thu, 2 May 2019 13:06:39 +0000 Received: from AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323]) by AM0PR0502MB3795.eurprd05.prod.outlook.com ([fe80::4192:b468:41e1:c323%4]) with mapi id 15.20.1856.008; Thu, 2 May 2019 13:06:39 +0000 From: Shahaf Shuler To: Yongseok Koh , "ferruh.yigit@intel.com" , "anatoly.burakov@intel.com" , Thomas Monjalon CC: "dev@dpdk.org" , "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH v3 2/2] net/mlx: support IOVA VA mode Thread-Index: AQHVAMaSK6sJIniyREu9KJ2QRvlw+6ZXzhlw Date: Thu, 2 May 2019 13:06:39 +0000 Message-ID: References: <20190502014436.40545-1-yskoh@mellanox.com> <20190502090754.36154-1-yskoh@mellanox.com> <20190502090754.36154-2-yskoh@mellanox.com> In-Reply-To: <20190502090754.36154-2-yskoh@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; x-originating-ip: [31.154.10.105] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c01d6f8a-7706-43ae-d68f-08d6ceff03c9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:AM0PR0502MB4034; x-ms-traffictypediagnostic: AM0PR0502MB4034: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:538; x-forefront-prvs: 0025434D2D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(39860400002)(366004)(346002)(376002)(189003)(199004)(2906002)(55016002)(66946007)(6436002)(9686003)(64756008)(66446008)(14454004)(316002)(229853002)(54906003)(110136005)(99286004)(33656002)(66066001)(68736007)(256004)(2501003)(71190400001)(71200400001)(7736002)(52536014)(66556008)(66476007)(73956011)(3846002)(6116002)(76116006)(81166006)(81156014)(8676002)(478600001)(7696005)(6246003)(76176011)(486006)(476003)(446003)(11346002)(86362001)(186003)(305945005)(102836004)(26005)(8936002)(25786009)(74316002)(6506007)(4326008)(2201001)(53936002)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB4034; H:AM0PR0502MB3795.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Fc+9yCKtz7sSrCxLRv0GUJclyHSaDFjR/dgS7bZk7MmT+8+vfZRlsJqWBh4ro8xvCxHzzscH+FXcBsWCxAG5Pud6RY6yZSuYkRcKv6yLjVXSkvtLSKgNs4XZpK+GwxlE2f33ojQZFBnq8Zl1AVuyVd89d5ej3tQT50gsEbVzE7VLQk0+gX+l2o4LLeaX7+HUNkGAjGwRx+DtxTrRfiK2KywRVDJK+LSIpafOnlpvYNKnZe396f3WOGqnUCQ9SabcU3pAXHVzrpHAFIMo9sMBM4AnB5CyG2lRxpeLZBkZdm0/2Ika1jQiCRGkipgZ+xyFuEtDd+l8t5BLDo0HScNGoA43S/alEL/KmVuOc/U5v34OZ7p5HiG0eBSRinWJ6X5MFBZlMYpKSpxJYnPgCTmU5u+HZ/fPvwRd9n91Uyr3rS4= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: c01d6f8a-7706-43ae-d68f-08d6ceff03c9 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2019 13:06:39.3284 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB4034 Subject: Re: [dpdk-dev] [PATCH v3 2/2] net/mlx: support IOVA VA mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Message-ID: <20190502130639.8n0nryugLeYw9qlJqWHp3Cbyw4FBfNJfC7nxo8D7vqs@z> Thursday, May 2, 2019 12:08 PM, Yongseok Koh: > Subject: [dpdk-dev] [PATCH v3 2/2] net/mlx: support IOVA VA mode >=20 > Set RTE_PCI_DRV_IOVA_AS_VA to driver's drv_flags as device's IOMMU > takes virtual address. >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Yongseok Koh Acked-by: Shahaf Shuler > --- >=20 > v3: > * no change >=20 > v2: > * add RTE_KDRV_NIC_MLX >=20 > drivers/net/mlx4/mlx4.c | 4 ++-- > drivers/net/mlx5/mlx5.c | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c index > fe559c0407..eccb77b410 100644 > --- a/drivers/net/mlx4/mlx4.c > +++ b/drivers/net/mlx4/mlx4.c > @@ -1133,8 +1133,8 @@ static struct rte_pci_driver mlx4_driver =3D { > }, > .id_table =3D mlx4_pci_id_map, > .probe =3D mlx4_pci_probe, > - .drv_flags =3D RTE_PCI_DRV_INTR_LSC | > - RTE_PCI_DRV_INTR_RMV, > + .drv_flags =3D RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_INTR_RMV | > + RTE_PCI_DRV_IOVA_AS_VA, > }; >=20 > #ifdef RTE_IBVERBS_LINK_DLOPEN > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index > de85e85300..ecab7f899f 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -2101,8 +2101,8 @@ static struct rte_pci_driver mlx5_driver =3D { > .remove =3D mlx5_pci_remove, > .dma_map =3D mlx5_dma_map, > .dma_unmap =3D mlx5_dma_unmap, > - .drv_flags =3D (RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_INTR_RMV | > - RTE_PCI_DRV_PROBE_AGAIN), > + .drv_flags =3D RTE_PCI_DRV_INTR_LSC | RTE_PCI_DRV_INTR_RMV | > + RTE_PCI_DRV_PROBE_AGAIN | > RTE_PCI_DRV_IOVA_AS_VA, > }; >=20 > #ifdef RTE_IBVERBS_LINK_DLOPEN > -- > 2.11.0