From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id AD794A046B for ; Thu, 25 Jul 2019 11:56:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 70E971C2EA; Thu, 25 Jul 2019 11:56:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id DD6C21C2E4 for ; Thu, 25 Jul 2019 11:56:29 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6P9oLEQ003732; Thu, 25 Jul 2019 02:56:29 -0700 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=eJzTEC9Js3DLkPT5fBkJz/jIYugX/i16uKw31vLZvk4=; b=CO00HFrOEdxD5knsH8aQATjMoh9O3LLIiEZ4WLVqF5COaWLNfl2riJxlrOCg3E6tIZpF 6hR1WdsBnHNjfILK85VPphsLFPRtQULAXK9MicICvfNHRpGfRlY8kYMhnj5lpJWNtBFe Q1pzj9PAj+WrlVAG77IBnkzEVbK0RcjnuRdfdxc9k2aKrmoNasudeZoPH6VM02gHJWHn jkFIM31XEI7Di1rdwngOMiIYCz/KfNoJMByp5jwEEDx3fmgzCZmK+mA4mVSHb+mr9rj7 IezN17lMP9l5l8B0AwZ+512Jj+mOrQtKPY4zOWmVc8uswUhnFYD+qQaABs9rTaNOnjkg UQ== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0b-0016f401.pphosted.com with ESMTP id 2tx6250ptp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 25 Jul 2019 02:56:28 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Thu, 25 Jul 2019 02:56:27 -0700 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.52) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Thu, 25 Jul 2019 02:56:27 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mSre24WrIRRdH+bLlUSxwTZLkFLpG3zLaiLKbd99q4p4ME2kFXMIDaqZP/+UI8L653XOZxZU/w1W5Ex5YRat/QVElzie0eFd41bwt/yF5GteD0d9+AxiQ08vlwc70xmcpeQ4DOspE85J4MpuPB6qDBAJTzxukwgByykkAbWZVODTRy2vRnFQoQdNI4xmDyuqjKMbYNnKwh76Qt0mk2wVgSRaWu5frajZRh29OfqcNg+jDAK6Lab6oAZM5KQPjfIjiaXxBTbL1E7j6T55Iqxem1P/SJ/yD0giut0IpBa+jWUo1NiDSkE1s0b+BHWV0SIyXmTnaZSVaIar4RrsTvca5g== 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=eJzTEC9Js3DLkPT5fBkJz/jIYugX/i16uKw31vLZvk4=; b=Sw2fN/xW/DrCJfptamhqA2V5q5xF2GYxs/l4+ALzjBSZ3jTU9Lpc2oP7UpypfJtW6v3/4vYTKWF0g9elkDIEjjW33VgIRINhiRJjcppTZNV+pPxw8UFKpg2wCJagh1vqRTG19N29VdZr/SX2MMhlKgmBE0aySXdRPcIMQ39XGee4jqfNsriShKm8iiRk+h6JQt/wd0VS0JDay9lHnwBzx9TVUDmwAMcxlD4aXO67wrJXJ7AzZTdapCCXD/L3EObKc4uWFTSNRmeDBicaE7efqHWj9KZiQAnsk/sUGtyDZaJ/b3f4KmQZqJqzFWqg41giki/sNjEFGhHrfXZFLyoREQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eJzTEC9Js3DLkPT5fBkJz/jIYugX/i16uKw31vLZvk4=; b=VlGYBgxiWkf7hkl1mu7Q5bayoOp85/iBHDnISe3JQDebm6wZwvAP9kRvh8iBc25fw2py4xyE+pWIzCw0MwRfi9H/dfW4jekHe4rQsz5V5YydTHghn9qgvuV0yyWw9nZ1OPwBhD5UfW/PvuSaUL1XIJkSFB/1ji6P8upF35R7XSo= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2536.namprd18.prod.outlook.com (20.179.93.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Thu, 25 Jul 2019 09:56:25 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862%4]) with mapi id 15.20.2094.013; Thu, 25 Jul 2019 09:56:25 +0000 From: Jerin Jacob Kollanukkaran To: Anatoly Burakov , "dev@dpdk.org" CC: "david.marchand@redhat.com" , "thomas@monjalon.net" Thread-Topic: [EXT] [PATCH v2] eal: pick IOVA as PA if IOMMU is not available Thread-Index: AQHVQs6t1+iJ+6I3q0yRVQGsRmitXKbbGJ1g Date: Thu, 25 Jul 2019 09:56:25 +0000 Message-ID: References: <5d8f83fb7dd574d83a044c6a01e2613798f256c3.1563986790.git.anatoly.burakov@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.200.248.176] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 09d304bd-ac47-4264-0a23-08d710e65b39 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2536; x-ms-traffictypediagnostic: BYAPR18MB2536: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0109D382B0 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(346002)(39860400002)(366004)(396003)(13464003)(189003)(199004)(99286004)(7736002)(6116002)(11346002)(478600001)(3846002)(186003)(14444005)(256004)(476003)(446003)(305945005)(81166006)(8676002)(4744005)(81156014)(8936002)(229853002)(66066001)(5660300002)(54906003)(68736007)(316002)(2906002)(71190400001)(7696005)(110136005)(25786009)(486006)(64756008)(66446008)(66946007)(74316002)(9686003)(66476007)(71200400001)(52536014)(2501003)(76176011)(6246003)(55016002)(86362001)(66556008)(14454004)(102836004)(53546011)(33656002)(76116006)(53936002)(4326008)(26005)(6506007)(6436002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2536; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: BiYZBQu+D1NBvqqxD2q3EXEC2KdTtSys0wDDcY7O2C8OeoT8W1LpvkuulrBsvcQz1YfuYnVq7AUY2ekYgL1zR442CMgWROiEdwAONNw6Uhy9FXMk0aJb/FZfcSk1ul1C6DIhIELCADNNn2AzhqHs+ZbX3s1heuJfwVxNweZ710/Xlc4QftCTthULE9hEM4CSdrzLsNEbQUZSKdQxm557/+AdVIW6EFZMO5hQ0Y3HV9ckRMllwj4QzUu4KU7EbZpRezdtBtyHsfVIS2Lk0AAspazdy1f7ILKDVkEMWEaxLCdzVy0rtgyAcL4OGCFqsjQiGJshN0KSWml+2r+YgG1emGV72sxE9E3Q9YltErm98NCuI9DrXhWJF7f73AiibXPxZRbvDH43BPO8phAWRrGPOZCsYZxzZ/A+HMTk5WuSyvU= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 09d304bd-ac47-4264-0a23-08d710e65b39 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Jul 2019 09:56:25.2203 (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-CrossTenant-userprincipalname: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2536 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-25_04:2019-07-25,2019-07-25 signatures=0 Subject: Re: [dpdk-dev] [EXT] [PATCH v2] eal: pick IOVA as PA if IOMMU is not available 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" > -----Original Message----- > From: Anatoly Burakov > Sent: Thursday, July 25, 2019 3:22 PM > To: dev@dpdk.org > Cc: david.marchand@redhat.com; Jerin Jacob Kollanukkaran > ; thomas@monjalon.net > Subject: [EXT] [PATCH v2] eal: pick IOVA as PA if IOMMU is not available > When IOMMU is not available, /sys/kernel/iommu_groups will not be > populated. This is happening since at least 3.6 when VFIO support was add= ed. If > the directory is empty, EAL should not pick IOVA as VA as the default IOV= A > mode. >=20 > Signed-off-by: Anatoly Burakov > --- >=20 > Notes: > v2: > - Decouple IOMMU from VFIO > - Add a check for physical addresses availability >=20 > lib/librte_eal/linux/eal/eal.c | 21 ++++++++++++++++++-- > lib/librte_eal/linux/eal/eal_vfio.c | 30 +++++++++++++++++++++++++++++ > lib/librte_eal/linux/eal/eal_vfio.h | 2 ++ Please update the documentation as well.