From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id CBF061B11A; Fri, 8 Mar 2019 06:15:36 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x285Ejne024948; Thu, 7 Mar 2019 21:15:35 -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=Df5TOj0kNwydbIAbaTw3UH+83ltDkhk/s0w0QwSb/6U=; b=RP3yd9SqJsb4ZBd0kw2nWokTbbafEsR/Yp1BRDzzp+O7wIFwfvUwL0WqRI1+0iV+LOQB siEcKC4c+4Mo4qYRztGq/K2LPCPxtPH0z+ZrDvP/wHRtcSJKOsbWB40UkhkZaIq+ZnX3 fXCcDIzpTGy/gXE0xm0tKPQ/eq7RTphCLDdBgJhi221PgqzoPKrYf2kmRRvKkeowRvXm RG4KeFr+XWsex4sV1tNmtdkKdhualxLZ6Kec8X/yBzYqbs+DPundbPKfCSUx4zOsxTw/ 4xpnyB1RBlLCcB0enycldAxEBjERiK4KMFRrHXbe4s1ufAH3V8ufBe3tlTL0mUKT3LTx zA== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2r3cj60wq6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2019 21:15:35 -0800 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 7 Mar 2019 21:15:35 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (104.47.32.57) 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 21:15:34 -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=Df5TOj0kNwydbIAbaTw3UH+83ltDkhk/s0w0QwSb/6U=; b=Zw4uoB4cp/d72dQpWQADzhfINQETc1W6Fb2h64WcCPfEB6GhrQ/2MC29vFZ4AvOIhROdTNLIuabSwpir8GVvqpkhCOUPKYdaCM4a4ZZ62TGe9uVooYt5dLUOxJsEmzuWNu1JVv+L19tDFKWle/cUF4fXtXLfXbGdS7AHF9osfso= Received: from BN8PR18MB2689.namprd18.prod.outlook.com (20.179.72.92) by BN8PR18MB2545.namprd18.prod.outlook.com (20.179.66.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1665.18; Fri, 8 Mar 2019 05:15:30 +0000 Received: from BN8PR18MB2689.namprd18.prod.outlook.com ([fe80::612d:6d86:d895:4997]) by BN8PR18MB2689.namprd18.prod.outlook.com ([fe80::612d:6d86:d895:4997%5]) with mapi id 15.20.1665.021; Fri, 8 Mar 2019 05:15:30 +0000 From: Shahed Shaikh To: Kevin Traynor , Rasesh Mody , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-dev] [PATCH] net/qede: support IOVA VA mode Thread-Index: AQHU1RUajUUxuWq/fE2V5afyku1GbKYBMXpA Date: Fri, 8 Mar 2019 05:15:30 +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: [45.252.72.157] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5715fd6f-66ea-4298-4aa9-08d6a385159e x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BN8PR18MB2545; x-ms-traffictypediagnostic: BN8PR18MB2545: x-microsoft-exchange-diagnostics: =?us-ascii?Q?1; BN8PR18MB2545; 23:mRnfNNHr405V++WikcwcgidJNFKmHPOzDkCeQkNaF?= =?us-ascii?Q?cxTz4ywoGOKM8WVDsa4qSBxaXdfV4O+3n1UdilRj544lauWWQ4eJDvF8RxNy?= =?us-ascii?Q?WESUJ/qPvZvkIKuO58Ocb0qLWxdx7W2yO8Yo/vI3pm5wzk6PVBTeLL/PhJCD?= =?us-ascii?Q?0kzf0BjSYvXbAK9vvvbtwoOwWRYIof4439C6AvfNLC2ellli6XXMYUxTBUyk?= =?us-ascii?Q?B+iKe50VFozZKzVPTOT2KYWWYdh4ttHZAgptILhatFeMFFhbf+7We6lrkFKw?= =?us-ascii?Q?pl7wIfxA/5viL4dGBdusKCqrR3JT5ia2+7luyCEDxiq0Uhnq9G088BEJIUkA?= =?us-ascii?Q?1D4ARYlb/JugyvOWzIC+3wYsJfxq8i/vJllqM6dXOPOCPj8jUpZBg7AKmuWD?= =?us-ascii?Q?PeuPofXWVDLFs1b3CBgSYkOg2TR2pHVVpIWZYDuqHTJEM2zp1iyj9cyVrWmz?= =?us-ascii?Q?OzQ2NBwyV/72gGt24IwcpFcogRpIvA5+vyfluoJJq4MkIUMghid/QOk7jkeh?= =?us-ascii?Q?McCvWEeo4afeCNcyWrquf5Uiwu3HveZ/VrF/IdSyvawsPgQLdehwXD9Q8KhA?= =?us-ascii?Q?StIaYDEGJRpMTAB9sdx6wo6syvlDsPxSkaQXFbPIy7Ty6Xc4JSIQIN218ssZ?= =?us-ascii?Q?TPDHc/bmr6MEM6O/0oWSzzs1/ZPsujMMg0Lwm/g4xfygNJ2m/PmFHtfI5Ryi?= =?us-ascii?Q?ctRTfVQOelo59AvpFRT98lZlEeBdCYuJ0Z7n9CT9czzEEbzixy6PjRWuFiBO?= =?us-ascii?Q?F5gDWTLOPenQFmgCpfzRw+BMJIFO57cDZ/x2ZqL1S4Gn6IWPd0QvLRiFrAmQ?= =?us-ascii?Q?lIKEN91WgbAlzj50p+17zxmwbKkGbM2Pj29OP4nPBHlbK6W14vw++j3ccXuL?= =?us-ascii?Q?8v+X7GTKQxxlNNsusM8+9ZTXYyafqhJd+u1KVz8+sNVQI4gLA2O7YD7I901N?= =?us-ascii?Q?6GlL29xsSEfxMeigcqJpUmT/x1lbldxuvGH1AL5Oe98pm7O+yLMCpQrS+wwz?= =?us-ascii?Q?3OGGuchDQDxZRnbKrBXTrKTB/9a7LlPqX/AKjhA0nHfdfCwypwu8ZYmauz8A?= =?us-ascii?Q?neWFPkw1nJnl4TpXsRXnBIQtUW2jDoS7GPDeAbPZU4M5dX+fbskijar1ZFqB?= =?us-ascii?Q?DTDkol+uzvfhybg0S6TAkU6+zj4EvKACfG23jhBB5rNL0l8YXcGfWgdNCrJz?= =?us-ascii?Q?jtzeAEbOgrhozaUXt5rSrqzVDl/fGz6q9Bk0JgF1qe7K2MFx+Dwdm0exh/8W?= =?us-ascii?Q?2SuNnvHe5DV5dsjdJj3T2TZStR9ibZjvmmiKGyz?= x-microsoft-antispam-prvs: x-forefront-prvs: 0970508454 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(376002)(136003)(346002)(39860400002)(396003)(199004)(189003)(13464003)(14454004)(2906002)(6246003)(110136005)(11346002)(256004)(486006)(4326008)(446003)(476003)(5660300002)(33656002)(2501003)(86362001)(478600001)(53936002)(66066001)(53546011)(71200400001)(3846002)(6116002)(6436002)(8936002)(102836004)(71190400001)(316002)(76176011)(106356001)(7696005)(7736002)(8676002)(81156014)(6506007)(9686003)(99286004)(186003)(97736004)(105586002)(81166006)(52536013)(305945005)(74316002)(6346003)(26005)(55016002)(68736007)(25786009)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN8PR18MB2545; H:BN8PR18MB2689.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: YMgl5YNV0r8TgFWVVQxt0cWGy75t1zF13HPtkaBHI7YRas3oOGeMeISS57uM1qB4VX4qRR/wrVlN5RNA0fb5+BNPAOHPqCy4oZIF25/owACcea4fzL3QSgfyPa1KlKnR9/zm2A80AO9SDqg1e/+K5bhHlxsh6IO2Ih46rMHy357KL1Xi85iZFXGaluDwHu+H2jLxr7TaxIOiqy/1lyfA6SPkOTNOwohJJYt/ICyMsRSlH83F13B7ToOdKj6BbMmiyoHFpW6hKQfL5ibvJ/iIGf5emPFO50noyf262BXcgqlz2L9JWREJ5PnAaGvxVKQQezkbvy2TMJZ0zWlIMRJdetzKb1c+qbKOJeC0zKHBvlhmG0VwvzDx3DteqoYab13CZcj7emNs0mHANLjkaZNy5Q9MdpEgG5HuHePXaPqdutk= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 5715fd6f-66ea-4298-4aa9-08d6a385159e X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Mar 2019 05:15:30.6355 (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: BN8PR18MB2545 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-08_04:, , signatures=0 Subject: Re: [dpdk-dev] [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: Fri, 08 Mar 2019 05:15:37 -0000 > -----Original Message----- > From: dev On Behalf Of Kevin Traynor > Sent: Friday, March 8, 2019 12:09 AM > To: Rasesh Mody ; dev@dpdk.org > Cc: Kevin Traynor ; stable@dpdk.org > Subject: [dpdk-dev] [PATCH] net/qede: support IOVA VA mode >=20 > Set RTE_PCI_DRV_IOVA_AS_VA in drv_flags. This allows initializing qede PM= D as > non-root also on Linux v4.x, where /proc/self/pagemap can't be acccessed > without CAP_SYS_ADMIN privileges. >=20 > The flag was introduced generically but not in pmds in commit: > 815c7deaed2d ("pci: get IOMMU class on Linux") >=20 > Cc: stable@dpdk.org >=20 > Signed-off-by: Kevin Traynor Acked-by: Shahed Shaikh Thanks, Shahed > --- >=20 > drivers/net/qede/qede_ethdev.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/qede/qede_ethdev.c b/drivers/net/qede/qede_ethde= v.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