From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id DE14D6904; Thu, 7 Mar 2019 22:09:44 +0100 (CET) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x27KxTe0011214; Thu, 7 Mar 2019 13:09:44 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=onpeIdA/NCdClGcHkKOs7S/2Dd4b3p1PaCvHUQko6NA=; b=TRoadhXBond5uwSEblZRRInCHNgNqilkGMxZG/GV0r4EHqaHYD58YJgEazxftBZ0RiqC XLT0ou6w9pHDYFTt8TSECHsljZvNMMWoyJfNKHHc0pRjHVF2lztycrOWfNFuBB9fhFqP tRMMopFFWv8breQMhg29zlJuXNFmfVcGu2/dSqQAvjRjObo2tJvvOuDY2jUUESHpwJzJ yS5ezxq36CdU6mne3JR7Bv+gaPSwPCnPK/4j7ysLbTzySfrK13gyJsnuSDV6vlgdiRJ1 Injy2Koq7edRrnjoFrliUC/YuZ1IXHTKgNsum8fD6YAgLs7vCp2cUz3YYQct13Miv6FY SQ== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0b-0016f401.pphosted.com with ESMTP id 2r3abbg4eq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2019 13:09:43 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 7 Mar 2019 13:09:41 -0800 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (104.47.45.50) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 7 Mar 2019 13:09:41 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=onpeIdA/NCdClGcHkKOs7S/2Dd4b3p1PaCvHUQko6NA=; b=c/GtDV8Hail1GrUx7hasUt+bJSmArN83d/nwRzlqxoythYSavEXyeE/WuExOIz9KGE1FPKlU6UVv7kDftN9RUpffx19+NDRPspGh38Lm+rBbZkoii1/tT5T8gjKkVsonr1eGS9ao6HtYPkXeNyBMewN/3s5AkvE30ihqD/145Ts= Received: from BYAPR18MB2838.namprd18.prod.outlook.com (20.179.58.18) by BYAPR18MB2551.namprd18.prod.outlook.com (20.179.93.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Thu, 7 Mar 2019 21:09:40 +0000 Received: from BYAPR18MB2838.namprd18.prod.outlook.com ([fe80::a9e1:1b71:88f7:8908]) by BYAPR18MB2838.namprd18.prod.outlook.com ([fe80::a9e1:1b71:88f7:8908%5]) with mapi id 15.20.1665.020; Thu, 7 Mar 2019 21:09:40 +0000 From: Rasesh Mody To: Kevin Traynor , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [EXT] [PATCH] net/qede: support IOVA VA mode Thread-Index: AQHU1RUY+WiyqYPwRkmDATot7jo9gKYAqM7Q Date: Thu, 7 Mar 2019 21:09:40 +0000 Message-ID: References: <20190307183903.10779-1-ktraynor@redhat.com> In-Reply-To: <20190307183903.10779-1-ktraynor@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [199.233.58.37] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a173989b-89e7-4fd8-7409-08d6a34136af x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2551; x-ms-traffictypediagnostic: BYAPR18MB2551: x-microsoft-exchange-diagnostics: =?us-ascii?Q?1; BYAPR18MB2551; 23:3DAIYzWUZBGexaPSdJeiVrlvibVQlotVkvKvWTBgJ?= =?us-ascii?Q?cUOna8QFpGL+QobYETZ5w9I8/Oid12I7MyMQB4CA/LRbyUPoLMNQIGEVOlSb?= =?us-ascii?Q?KOy540zyd3xeQsH7WvnFRKWM/7HGzpz7622jf4iwR1e/I58qCyozYUm382vL?= =?us-ascii?Q?Ou2OrSoW95FHKxyon/aS3CEMBQYJwmNOhACPuf2Y90w4SysO6CjjQTKZcjgG?= =?us-ascii?Q?iiBjNq4sN4w9+Xktem20WUukskwhC//8ofOZmh52h8qYOX4/Uqa29Gf+y/wt?= =?us-ascii?Q?NGfjmLWmjNiAkE1DYzX5XfzFUVJNkKeif3ncWhw4wgTkQmi/bW2djIet29S4?= =?us-ascii?Q?dw4vAif/bp/OA3JXYJEcwL3iT5IOSxXtt5OFuXNqeHadgJzfLccf98/SvZMp?= =?us-ascii?Q?NB9hsWq0I46PJDl/W66+Mp75OpeMz20xMDQMaQmnUTEFw6Xz/roWfi7gLsZ9?= =?us-ascii?Q?YzDUfALfpRGjR6O2SJVNKP2j2n/RNb0jPhFOuzm7+FTWLvhiXaY/m6nMKzR1?= =?us-ascii?Q?mCRHFUbDwxF9ed3hMV8zW6UQOoErq1d5uTpTNtlJAAt5K7rYdoWOwNz0FfQm?= =?us-ascii?Q?eSLLZZQbXMtqR33+PJyCGuNBX6nYVDVfPx/kpx6etjJxdZUhQOz8TNQvm8Oh?= =?us-ascii?Q?oafk5OgGi6ArRbBf8i2KMC3MKSlP5Zc5OIYvhSN/6tNt0tyQobEZh6s5CcRJ?= =?us-ascii?Q?ENZMfL9EwY4fCCAmWSy9dd9J7ZQB4uWQtWOXgp1NfZ31WzNGsXJA/7xjHxZo?= =?us-ascii?Q?teBxA2booIBvdE9oXi2ECHLypAiDMgC5ej4s8CsektEl5UaY6J9jwamJ4oFw?= =?us-ascii?Q?x1nuFruUaxp8EcWWPARfF0isKOmlinytgRlvH3KSVCrNlsRsJc6hsDkVEoTo?= =?us-ascii?Q?59vXK5gER+sfoO3GqNpfFyWL0nNupt9E8/XAV83JOpG6F5ofm6POOfel0vfV?= =?us-ascii?Q?Q6VuzEoSLez6NehwLAnEeRM4xXgweWPuIITRP+jFVoaSTb2O1T6zO+RB+sdi?= =?us-ascii?Q?1NNEYC9Ya0ErzAXkv9itVW88qTckZ1sUOaHdyEGVk18xfBzNymnyy1Mtz+au?= =?us-ascii?Q?V1sknITXmKCeM8v7gacXsWzwD6NZ/ZmZTzpa1gB3gz1k4Nx1O5dswDXSLHxp?= =?us-ascii?Q?Ev9tgDsnnHg3bDwmOtNziOJe27hnbI8p2IfE0T4dLLPMnDS0TiGiPl1Kz0BN?= =?us-ascii?Q?hygcKS+gBeCqTypiMTT/UBUBtDdt5i0gUhE?= x-microsoft-antispam-prvs: x-forefront-prvs: 096943F07A x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(366004)(346002)(376002)(396003)(136003)(199004)(189003)(486006)(446003)(11346002)(66066001)(71200400001)(316002)(476003)(110136005)(6506007)(186003)(2906002)(7736002)(305945005)(81156014)(81166006)(8936002)(8676002)(52536013)(74316002)(14454004)(6246003)(71190400001)(5660300002)(25786009)(4326008)(53936002)(478600001)(55016002)(9686003)(86362001)(68736007)(6116002)(33656002)(3846002)(229853002)(256004)(26005)(2501003)(97736004)(6436002)(99286004)(7696005)(76176011)(102836004)(106356001)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2551; H:BYAPR18MB2838.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: yDYEd+i8QiKA+0Y54tzarwcQll6Yo1d0bWP/qP8GLpikF1SsMvDwmxu5hI7Q9+4L24UIzDGzfhYELkq2WkEI81F8xd42Igca103fD7ljCzqgqHPEt4cc6MMRkW1naWI9K3OTZrHRkoPKV9JC1U0MTPpFr07zBQPCrT4UNNwiE2hjRXNu4zvswDB2mpuJvVD4QFskYSBhBo4tR9gdZz5v1GPS0LSl+pB6Ylbi+01JfLD/BGmmXESoPruJGWEVLlfA9IKe9ISu41fHAeTzW0TKQvJSOKKhkWheUCdL3+jfs/AensXE7UQYwddf401L6tW1Ll2Wz/wSUOMMa3kxyxzp3iwOnbmcC3xEPahuJl4owFFRhB13jZVNQbDunFlyAbNNal3kuujKN45be7F52rMMSq2nQ9qRbCNMus/csKBzXy0= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: a173989b-89e7-4fd8-7409-08d6a34136af X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2019 21:09:40.3502 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2551 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-07_12:, , signatures=0 X-Mailman-Approved-At: Fri, 08 Mar 2019 11:51:12 +0100 Subject: Re: [dpdk-dev] [EXT] [PATCH] net/qede: 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: , X-List-Received-Date: Thu, 07 Mar 2019 21:09:45 -0000 >From: Kevin Traynor >Sent: Thursday, March 07, 2019 10:39 AM > >---------------------------------------------------------------------- >Set RTE_PCI_DRV_IOVA_AS_VA in drv_flags. This allows initializing qede PMD >as non-root also on Linux v4.x, where /proc/self/pagemap can't be acccesse= d >without CAP_SYS_ADMIN privileges. > >The flag was introduced generically but not in pmds in commit: >815c7deaed2d ("pci: get IOMMU class on Linux") > >Cc: stable@dpdk.org > >Signed-off-by: Kevin Traynor >--- Acked-by: Rasesh Mody > > drivers/net/qede/qede_ethdev.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/drivers/net/qede/qede_ethdev.c >b/drivers/net/qede/qede_ethdev.c index 518673dce..6b330c2b2 100644 >--- a/drivers/net/qede/qede_ethdev.c >+++ b/drivers/net/qede/qede_ethdev.c >@@ -2736,5 +2736,6 @@ static int qedevf_eth_dev_pci_remove(struct >rte_pci_device *pci_dev) static struct rte_pci_driver rte_qedevf_pmd =3D = { > .id_table =3D pci_id_qedevf_map, >- .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING | >RTE_PCI_DRV_INTR_LSC, >+ .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING >|RTE_PCI_DRV_INTR_LSC | >+ RTE_PCI_DRV_IOVA_AS_VA, > .probe =3D qedevf_eth_dev_pci_probe, > .remove =3D qedevf_eth_dev_pci_remove, >@@ -2755,5 +2756,6 @@ static int qede_eth_dev_pci_remove(struct >rte_pci_device *pci_dev) static struct rte_pci_driver rte_qede_pmd =3D { > .id_table =3D pci_id_qede_map, >- .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING | >RTE_PCI_DRV_INTR_LSC, >+ .drv_flags =3D RTE_PCI_DRV_NEED_MAPPING | >RTE_PCI_DRV_INTR_LSC | >+ RTE_PCI_DRV_IOVA_AS_VA, > .probe =3D qede_eth_dev_pci_probe, > .remove =3D qede_eth_dev_pci_remove, >-- >2.20.1