From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0077.outbound.protection.outlook.com [104.47.0.77]) by dpdk.org (Postfix) with ESMTP id 2A7385F35 for ; Sat, 13 Oct 2018 14:22:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hbOglYcPbdiViDmNeNdGxeIhMK+MwVUJT7rR2kv4Lbw=; b=oTWHxyRZNaDjCr4VO0Mg/V/nltDJvuvQ0q35iwhHulfuC/7A6unjqx+3CsM6RtpU1h1WlRWFY5lYgYwajWHD29wkY3fyJ0rWXEvyldXxdIFx0P2gtGd/peCynwpCq1iuDTpj5wCFapO22C/09/e3wM7S41Nmf8bDO9/cKoKZpYo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by VI1PR04MB4686.eurprd04.prod.outlook.com (2603:10a6:803:71::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1207.27; Sat, 13 Oct 2018 12:22:13 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com, thomas@monjalon.net Cc: anatoly.burakov@intel.com, pbhagavatula@caviumnetworks.com, dev@dpdk.org, Shreyansh Jain , hemant.agrawal@nxp.com Date: Sat, 13 Oct 2018 17:51:26 +0530 Message-Id: <20181013122130.22588-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181013122130.22588-1-shreyansh.jain@nxp.com> References: <20181009112548.7025-1-shreyansh.jain@nxp.com> <20181013122130.22588-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0046.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::32) To VI1PR04MB4686.eurprd04.prod.outlook.com (2603:10a6:803:71::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d2e8b76-bd89-43af-1759-08d631068293 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4686; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4686; 3:Dm15GoacNvC1uEpNae/rwJXtb+/QtemI/XsUCVu5vbNvjr7hVQjpfRRoW2h0VA4kvBD8H+1zCGRbSNHWmQXpGBa/Vm/MBKePnQTeACWKyKAqIfO+GHluxbh5UCSwMkYGpp2nfOPAVv9iPUsGDPZ8ipT/dRxQDMJCgYfhzFj+yBtsANQOnyT/fpeEbiQmqIs9+YW+cPblfamBlP48qFDSpu5Vxn3aNJtW4ZHVPSeGtFDgi0KODRt5qv3THM0JReii; 25:SwaY3uD+6a3STmjTlXT5lWBSXXaoFEEhsiXTn21vadHmGPsRIJqC5L+lc0jFoC9tONVKif+kByotmUOLpSwO1lgATK+XUI48vZi6eW2kPr/LDLAZ21h9ccJSpOb7zImXI7rz5rdaYnrH66wXMz9w91yjMs/n1wb4xItPOEmZeqXjCIZdS/ap4aT+6I17QOmI8mRKkSAg8H2QMUUSCYU7BngI5dN96MgGA/W2TWG8JjbTLFAmhjd0nCEl7esEvt9qehIYaj7cBXLSLrhzG8elyLE7+wkuKsIdex78rj8ccbU/wRs0DqWDiSmQ0lWjMkh0j3surlAsrAD7SYHIQBZXhQ==; 31:AqrCZFTC8asRzXU5ZlkZ6SP3rkwedIkWwZGgbTUmFAdnjaR5TGDNQffFS/gxKeey98zh78SdLYHEcC/kDOJ0TWp+kPCDsPbEdmQPWKfZb17NXOBLxwhD65mlBL2qhGtXSuKZPO9QtK1QRCZVs2ZT38yaggJy/OiwknS18qTEI94DtuWv5PjfJhfY87lJTulNdNJrIUID+laltXjVRQ2dLWsESNQGPOWJ4mn8BIjq5c8= X-MS-TrafficTypeDiagnostic: VI1PR04MB4686: X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4686; 20:cpaZDXJxL12Z1N8ua32KMlfxZ6SHGHBy0YPfz+1dC4VxDHgpOCL0WFt3OMQDAe/cAT+a7ljSu6IuT93NLOgNG4VlqXTE9mBQEsIRmupUhZos9eYr/jLVl9OdDG7w1U+GMNethY9iLtp3RnmyiV8MiALOdzmSrGuI2kytMstYf+gGst7jn/leCKjctgzhdite8IYHVcka29GK6N0RSmLdIlVmjAgrVmjaaw5kKlYAJvMADL4KJeOjjir0fXRJPNLAFE3Klok/0rYlE7zMtw8nJkGtpIp/JmW9bol1Uo1R3WlzsYZZd5w9ZG7PbIL3GJMwR3E1krouv2CJ8KnFR76IA4Fs7Mkxi1tpRWentGXgaonanHTkiVYNA7p8wt+oEtoCdn33rJCrOdyyKRsoIN0qrncXh42DUtQ8NEsUpgXlMAFf5UOcmdQ7NRCT2g0lWD/NYD4MlHkjXJq8X1/2biArqq/f9Io1onai0TnwzPl2RYWeDY7u4f2vi6jvBzc/ZwAX; 4:alMjxxzqB2huXvMRt3Cz9R3EMhmxuFO5J5pLFi/3LLi5OX+Bq4nbap6zH8GEfR0lCRj2oCgRLyB+bLHIadujAW3iCquAWDtxeIDlWPZYAUR6jzYJQqTG9Wd/fSyXLwdQGBbgbaYQet3SmzB87WO06pFfgnFkTn+7YvocVX32q412JixDWBInS9z/+ueFrGJaJTQD0mMKK5se1Ur57RqtA4bwbk20FCkc66Qq2uaN5Wz7abDZe0a+9L47xUcJSCBkeFvgnGihG7lnYczHV29aKQLmmMrq0CYM2BUeMSIzhZOiRRq0OrtaqdCAIHZwJHee X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231355)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(201708071742011)(7699051); SRVR:VI1PR04MB4686; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4686; X-Forefront-PRVS: 082465FB26 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(396003)(346002)(376002)(366004)(199004)(189003)(6666004)(36756003)(486006)(47776003)(11346002)(44832011)(476003)(956004)(6116002)(446003)(2616005)(106356001)(66066001)(1076002)(3846002)(16586007)(5660300001)(316002)(2906002)(1006002)(97736004)(478600001)(50226002)(25786009)(26005)(16526019)(186003)(6486002)(6512007)(8676002)(55236004)(4326008)(6506007)(8936002)(48376002)(50466002)(53936002)(68736007)(386003)(76176011)(52116002)(7736002)(105586002)(305945005)(86362001)(81166006)(81156014)(51416003)(78486010)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4686; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB4686; 23:HEbUHMQ2qPyxC7SVc2TR1OEw6+HizCQ6H6P1UMCZj?= =?us-ascii?Q?hpAA+MrNAv3VfvTWgNp/wZaaWBjGguawbkFCDgNhF9MwfidkjDQdFYYERqUB?= =?us-ascii?Q?UneRLion6vLgnNlR3lx05oBvV880yf6aUam4wx8EOzdPXSk1V92O/IThIk0e?= =?us-ascii?Q?F0LgkOThVVZh0Q0srdF3ZPGRPX2s8V0WPGRvJpq+UQfEu8RJ+Qgz5POrAEV9?= =?us-ascii?Q?CuFks3zkKpwI7NeclBe4geKkT0HSB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?kQal8A2dCQ9A8ycv1ybppAGgntisPOsLxEscztaD3VQ6gpszOkh3yKm+Jsgz?= =?us-ascii?Q?QUgyczUGTjPgFOJym1vKCGxVRWJ/6DaIJbBv8tuT1W5blQ3b27b99UefYb0/?= =?us-ascii?Q?E/xfWkxRGrRrHQEcVehNRK/AvoOol9TUiWfo5MH?= X-Microsoft-Antispam-Message-Info: 6BVxOPxju+0lhYgezewGqPZddOd3lsttb2JLoww4blPeQcgFLs/Do55zOpgzIKesvWDrYsNGESsgsZmZY8Cwtegblbk7jhjNI5hM/i1OgYI4ZclT4EdPawKwdYUZrRIqXW+BJQOKnz5ID4Kaa8aX0/oWJbqO1YFzj8PEKOkkG+Jqp1zazuDBm5waq+ga9PKx7pwc7VoKJK3o/0Jq+1N2KdBw50W9LrfujtnhyyUcg8Tqyx3jE6gVNe7tJNS7mIKDw5O9xjIBJw/pqwl79KC5viu4QYP8jwa9tyFL2SFYfCN78tnyWxZaRscfhuZ0Dg0wBU4bMphbgcYSSJKUM2XkvfwAyqaMTDevmlwT+3qdFoo= X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4686; 6:AKvyBreA3WdZplSjlybOZeta/zgJtLV+ybK4SGuK7mH93wXNAPiGknpUfzBbph44sJ6369lCRYqnd/DYFBBaZDevZ7GzGxvadHUuqU549vArbbGiNieG08R7xLw/GSjbjZaQbDfxPhUCq7UYIuO0EfjFOvbgpvQYNzZMOT70PfvUegDj2lMMms8GXqp42ZjMNSwn3JvFOqDKbrqEZheuByL3sKYEzMsniy3pGWNY79yg/hKlCUDlia9enWyr69yf0//0HQqyoQX8M61c95mVhd7EY87eZxHYa8A6Mir38vKw75DP0N7bLNw09OUlnCZJvPWD85NE6PslvYv+BiAS+hR5fxCOUXbqECDftyoSZyu+rLhhQ+r8YafMfgAvAe5sN5Tlhy0QnbTrM+2ODQPFcs9kd48cXIKBj5mwCKovKOJigKHxnzqvJDcXx3E+vEBMPKLTanXYCfIDp/IqyJOs8w==; 5:o37pfKLp1UJE9ZxalqeJaTt1ndcADNGoI8C30um69Q9yeYT/RplVjho8nT5IO///RNi1G/gE1AT9fB8a7k7VkqWW2kfU21P8HEzbZqk/U04NBLdbz4JjsYBX1ywHTiWgdIDPFfG+lu3IQHGASKTxBxpJB/Jc5desZ+QIvp44cZU=; 7:+eMrhA/EaXhA0J6v2jqKrLz0SOAaL1Hi3KuLiI2hQT9AHBf2PiOsdgwl+O2vGHMEsqLazlAZSmovqEdKTrvPop/WlZLDzlZp/8KbwDVejeLHUobZLLhsP5DK9f9SUHYwZSybWM+0wHpXPCyrNfrIZGEAkjJmMPUlwrLDvaq2wDWOFpw4+AefCZnrb+0T7euSNVI/mvHdL1pc2H8mJ67H79ERVlVfZicQ0yKNhA58t08a7IpnnzUznuGkFYewcMp5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Oct 2018 12:22:13.5116 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d2e8b76-bd89-43af-1759-08d631068293 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4686 Subject: [dpdk-dev] [PATCH v3 1/5] bus/fslmc: fix physical addressing check 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: Sat, 13 Oct 2018 12:22:16 -0000 In case RTE_LIBRTE_DPAA2_USE_PHYS_IOVA is enabled, only supported class is RTE_IOVA_PA. Fixes: f7768afac101 ("bus/fslmc: support dynamic IOVA") Cc: hemant.agrawal@nxp.com Signed-off-by: Shreyansh Jain --- drivers/bus/fslmc/fslmc_bus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 960f55071..19e33caf1 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -493,6 +493,10 @@ rte_dpaa2_get_iommu_class(void) bool is_vfio_noiommu_enabled = 1; bool has_iova_va; +#ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA + return RTE_IOVA_PA; +#endif + if (TAILQ_EMPTY(&rte_fslmc_bus.device_list)) return RTE_IOVA_DC; -- 2.17.1