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 61D8DA0AC5 for ; Thu, 2 May 2019 09:31:42 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 240312986; Thu, 2 May 2019 09:31:41 +0200 (CEST) Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60052.outbound.protection.outlook.com [40.107.6.52]) by dpdk.org (Postfix) with ESMTP id 34535A49; Thu, 2 May 2019 09:31:40 +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=iLKUDPkTm8Gq9h7nmsxDgQ2dKzO/m8IX8MRdOMyAtg8=; b=k9W1imS4G//ExWtyKUqh05Eb4NemF+VKN2SsSd+k6L/9JnVzloN9I+M6oxBeFM6OZ1YTK5AY8K83330rnZ/U/cEkgG8S33FBsfPNbNv+vyJJjchQwNeerCKntMTWOcKtzufkSYqfE+dNnAKsxOcURO27UTsNJXVNnaNyjcJysFI= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB3945.eurprd05.prod.outlook.com (52.134.65.155) 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 07:31:39 +0000 Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::e8d5:4aff:902d:6e98]) by DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::e8d5:4aff:902d:6e98%5]) with mapi id 15.20.1856.008; Thu, 2 May 2019 07:31:39 +0000 From: Yongseok Koh To: Shahaf Shuler CC: dev , dpdk stable , Davide Caratti Thread-Topic: [PATCH] net/mlx: support IOVA VA mode Thread-Index: AQHVAIieADM9WunwcESKYoTs2zkKHqZXcRWA Date: Thu, 2 May 2019 07:31:38 +0000 Message-ID: <670CAD35-EFB3-4977-B66E-E19FD0431C94@mellanox.com> References: <20190502014436.40545-1-yskoh@mellanox.com> In-Reply-To: <20190502014436.40545-1-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=yskoh@mellanox.com; x-originating-ip: [69.181.245.183] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 257c8575-d701-432c-a52b-08d6ced036f5 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:DB3PR0502MB3945; x-ms-traffictypediagnostic: DB3PR0502MB3945: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:913; x-forefront-prvs: 0025434D2D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(346002)(366004)(396003)(39860400002)(189003)(199004)(25786009)(91956017)(76116006)(446003)(11346002)(6246003)(33656002)(6862004)(66946007)(4326008)(66476007)(71190400001)(3846002)(71200400001)(53936002)(476003)(2616005)(66066001)(73956011)(68736007)(64756008)(2906002)(66446008)(6116002)(37006003)(186003)(66556008)(486006)(82746002)(99286004)(26005)(53546011)(256004)(316002)(6486002)(76176011)(14454004)(8936002)(6506007)(81156014)(8676002)(36756003)(81166006)(83716004)(305945005)(6512007)(6436002)(6636002)(5660300002)(478600001)(229853002)(7736002)(86362001)(102836004)(54906003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3945; H:DB3PR0502MB3980.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: jefUye6PRsq/q19ACdM08rYXpfGEOLu/ZXJAHJUaqETpheJNXWI/RLmsOhByM+9kEsz2kAmWfT/X7+tCrB/dmv/Hgd0d21hp2RmsY3kb/AUBLmIsSjgWaJ2whdA3JHKpsrAtmW4+ToKShKHcuIJNyzAXsQ/ReWfGR7LARUEklos6uk+7YYZNi/KubMmpJsPy3G3jVVBmhDKFVdkyg7C3VAqV7TDROPHUf63uSWuHFEFKTuEAfZTuo4SwDAnE0wW8tjLPIJyf2ZEH8iNbpSHrxsxKMBGK7Cl629O2TbQRic8a/+gTItnV7ZZHVdmvQeiyBeTJxwhzQBpdAfCHlI3sjUaLFZNbVWpQDVrL6qVTscXpq1MSWYgM43gY6AsXoOYJwB8ICGvc+bjlLKyWxoOmCQC9KVl35MGEFKn+7RoEUOU= Content-Type: text/plain; charset="UTF-8" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 257c8575-d701-432c-a52b-08d6ced036f5 X-MS-Exchange-CrossTenant-originalarrivaltime: 02 May 2019 07:31:38.8450 (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: DB3PR0502MB3945 Subject: Re: [dpdk-dev] [PATCH] 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: <20190502073138.wRc6evmACeMixS5Fks1Xb-Ivfk3NeIeJzvmKvZQmxLI@z> > On May 1, 2019, at 6:44 PM, Yongseok Koh wrote: >=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 > Cc: Davide Caratti >=20 > Signed-off-by: Yongseok Koh > --- Self nack. pci_one_device_has_iova_va() checks RTE_KDRV_VFIO. Will send out v2 with adding RTE_KDRV_NIC_MLX. > 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 > --=20 > 2.11.0 >=20