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 545B4A046B for ; Fri, 26 Jul 2019 17:03:23 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id AE0EB1C483; Fri, 26 Jul 2019 17:03:22 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id D36E11C47D for ; Fri, 26 Jul 2019 17:03:21 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6QF044j019241; Fri, 26 Jul 2019 08:03:21 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=mNQ5WiSWiNkLRZdv2WqEgSv9TA/Q7KP+TQXb/Ee0eWk=; b=WPD8vXRLMWeYlU8baff87QkaTF8Al3NhXI2rAUXMSuNQtxVK6uXkLp+Y9I/5xEtpW5dM siSK/oHc1098KcFcshL89IUKmhOd621R4OpfbSP+6ivnBx7VbZzHTtpZnBtEIlYwm01p CQZgH661pFTTmSv0OK1dF8djouDEA6cztJcttRVuKi0dSmOc9GFz/A8WzmGbUeuH+xez UE03BK9eTFEu9tuYqFjzFQl+oxowL7gY08UzDVuLNlPG2ATKnYOu87r/MM4tK9HthRsi xmRQY0ngU6rzwZ0RlyS5bs2MNr1gAAsEFFwY8bc1H1N6VC3TXpLljzSp1hWK9N2iLQlA rA== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0a-0016f401.pphosted.com with ESMTP id 2tx61rqada-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Fri, 26 Jul 2019 08:03:20 -0700 Received: from SC-EXCH02.marvell.com (10.93.176.82) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Fri, 26 Jul 2019 08:03:19 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (104.47.41.54) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Fri, 26 Jul 2019 08:03:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nMp1YTqz7M/VAnmTh9TbRFb10Cga8xSsTPz4IvNFbYGBG59/iKCh9ReOuyuWZdHWfgI72Up3Dcv2Q/1vyPlKbx4LNmoGcoPDlLYMua8zbQMr8JAKNN8VtvmADoT0DB9vKjZyyULLHLjIHWcuFNm1J/sBCrKPUZD8IFBCCoSkExO5E8v/363tRFmgk0AWNwV6XOBgCPY4zpOVhnWlcWReKaOGeEqxbL2Rf1xHuQSceJ2Py8omxnZeSZW0ytcG+g3fSmQFs/chhpZmT1rI9sUrT75EXloadoded97XoBfLfimQ0nFpv+FpeXdJpGqmBOTUUOBMysEd+swB1v9fHIM8NQ== 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=mNQ5WiSWiNkLRZdv2WqEgSv9TA/Q7KP+TQXb/Ee0eWk=; b=ZqDHkXi7/hFlHlzYvwMQr4Up87NH2DQQjvML2RoJOzT9L1ubVqO7/REPXWh0oPM5xxeOBnZcQ5/4FaIrHbfHsvO6t0BqRfqz/pSJk9toBoT98XQAz9qRZo6bAYY/vc4y27s00FNlND16TRtJUETFtaKxmQ0MppkSp+DSy+heJIn6kMnulAVQJei0OURmbvODh0Rkz3fMEcYBfyOT39vRJpn++h9ej4FThoZL+CgH9BsvU9u+aEWgJyi1oTb2+NndUBh0JcHvzKOO8ddJuzcc367igyTrqleqMn1qG2/HVuqcYBCOwAO3LxvSmGO4t5P5lKKY1CcUdcR2rG5164tjtg== 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=mNQ5WiSWiNkLRZdv2WqEgSv9TA/Q7KP+TQXb/Ee0eWk=; b=L5sEbpuUXbTur5u/+LT9bfwXJpVUY8cMS/hPMiVu5eRRFkh3aJlk74j2JD1pQGJpcJGGotMfe5TAzh24pvw3ul6YPL2318FCAM/3cwVW9Af6FwmG8/WefkeKzAiUKT712QO8v6umGWNwG6+yYjgRxxmuO5YUW7ZXe4KGTVEcyYE= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2517.namprd18.prod.outlook.com (20.179.92.225) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.14; Fri, 26 Jul 2019 15:03:15 +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; Fri, 26 Jul 2019 15:03:15 +0000 From: Jerin Jacob Kollanukkaran To: Anatoly Burakov , "dev@dpdk.org" CC: John McNamara , Marko Kovacevic , "dariusz.stojaczyk@intel.com" , "thomas@monjalon.net" , "david.marchand@redhat.com" Thread-Topic: [PATCH v3] eal: pick IOVA as PA if IOMMU is not available Thread-Index: AdVDwvXB2rf4xD1sSpynoZZnAGj2wQ== Date: Fri, 26 Jul 2019 15:03:14 +0000 Message-ID: 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: c52486b9-005e-46cf-1ef4-08d711da6298 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2517; x-ms-traffictypediagnostic: BYAPR18MB2517: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 01106E96F6 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(366004)(376002)(396003)(39850400004)(346002)(13464003)(189003)(199004)(7736002)(305945005)(53936002)(486006)(110136005)(54906003)(33656002)(68736007)(74316002)(3846002)(6116002)(6246003)(14454004)(14444005)(256004)(99286004)(316002)(53546011)(186003)(7696005)(66946007)(102836004)(66446008)(6506007)(9686003)(86362001)(66476007)(476003)(66556008)(229853002)(26005)(478600001)(55016002)(76116006)(2906002)(71200400001)(8936002)(5660300002)(71190400001)(6436002)(4326008)(66066001)(81166006)(81156014)(52536014)(8676002)(2501003)(25786009)(64756008); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2517; 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: RyCP4aya3CFh94DxIze7+b4e4Jrak1CtrAyeXR/Q8mWoC//FUu0zgGLcyE8/mWKJgHeOAeogBCSEKKLFWsJC2FkRI0Q0PPGeql+g5xMSD+coN7f/sigcy2L5GNaPAnLxrDLnkQsgKjUoNU3R+8N7nURRX8qketzBmumSx5lmcFwtH8ho9fKPtf5EaUFQG9PWJ68ljVYc34R2hiPIyVgajg2Nn8zx1K2WDRV9SDJwBWJoVOzw33/3dFgrFZU9t/DbmlMkZudGKiU0m9GsxTry0BzgGoPHbvlzoF+8M8rW/WjW7rYQm7JNt2nGlU0vJJt87p0qSNkfk66ga/iwGoA+JxSpryeVmnfHPLnLd1nBgpYk9LxrzqTzcD//RV5tTp0dQEkA9laudKvaTXRD+3UPHn2TylitZzkhMkt+R/AuW24= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: c52486b9-005e-46cf-1ef4-08d711da6298 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Jul 2019 15:03:14.9044 (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: BYAPR18MB2517 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-26_10:2019-07-26,2019-07-26 signatures=0 Subject: Re: [dpdk-dev] [PATCH v3] 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 4:36 PM > To: dev@dpdk.org > Cc: John McNamara ; Marko Kovacevic > ; dariusz.stojaczyk@intel.com; > thomas@monjalon.net; david.marchand@redhat.com; Jerin Jacob > Kollanukkaran > Subject: [EXT] [PATCH v3] eal: pick IOVA as PA if IOMMU is not available >=20 > ---------------------------------------------------------------------- > 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 > added. If the directory is empty, EAL should not pick IOVA as VA as the > default IOVA mode. >=20 > Signed-off-by: Anatoly Burakov > --- >=20 > MCS lock provides scalability by spinning on a CPU/thread local variab= le @@ > -436,6 +442,16 @@ Known Issues > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D >=20 >=20 > + * **Unsuitable IOVA mode may be picked as the default** This section is not rendering in HTML page. Remove the first tab to fix it. With above fix: Tested-by: Jerin Jacob Reviewed-by: Jerin Jacob