From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10067.outbound.protection.outlook.com [40.107.1.67]) by dpdk.org (Postfix) with ESMTP id F14A72F4F for ; Mon, 15 Oct 2018 08:44:14 +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=2qdtcVXHz0p2Powi3KwN9sVuvw3ZaGvndV+he94tGa0=; b=d6bXKfWKM9VYuYE1riC76lAhFQc5IeJaITiwxJ1PiKdC7fjnBYm8WcwIEfpJOCOvewLx4oBdGpQ2OVALVsLA/NroleAX0zJboFfytrAeDS/3KrgXTGo6z6CSbtDEeZMZ7Qe+7mO093VGQ9wm4UUP3kTthv1Cbwq9E09axjJfUDI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4677.eurprd04.prod.outlook.com (2603:10a6:20b:1b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.24; Mon, 15 Oct 2018 06:44:10 +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: Mon, 15 Oct 2018 12:11:58 +0530 Message-Id: <20181015064202.20802-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181015064202.20802-1-shreyansh.jain@nxp.com> References: <20181013122130.22588-1-shreyansh.jain@nxp.com> <20181015064202.20802-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: OSAPR01CA0083.jpnprd01.prod.outlook.com (2603:1096:604:b::23) To AM6PR04MB4677.eurprd04.prod.outlook.com (2603:10a6:20b:1b::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b4f4e2ff-ca74-43fb-03c9-08d632699f05 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4677; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4677; 3:SLGxdiP6l6UmgW9xqxca7iGKBICA1el4ImLh9iUvFZg40aEMHvNLs700HVjljmRdA1M4njDTRAnu3RBw2OC5yEm6gRkbxe+SgtbqDDZqFOHmNc+3ysZapsOdjKVh9S/IdGIRluZ9eTFwQ2dTS6Zj+Kr9CKEn1XFIy/yjjXh84ewgjahhJET9OQdrk6jdey5RgKf9WLiUw5W0p1RlkMs2kMzKLBDUCH/v9wEhnxYd6SDYs+9E8549NM1vRG3cDSye; 25:AIh2AhZ8hdYary3Y6Nn7n0drST75INRoATUrT22/cnF3MGc5v0/hkaWBNXAsa9ftEvtWy66XQJP2DK3QVv7ntGdi5wZNblWzgxoJ+bqL7SXb3PCKXxvgO3na4SSGqo9e0wD/3aQIotl2BhMaf+ZRn9rLVf4STkTjv+KGqWlVW+H/iaUejt4Qc/vSlimVGS6hTD/Nt6lxN8VlZL45kzHL4EbNuTGQKm6Fj3F6rYlCiHWW0zCjIaDbOsSho2sXGZistDCaa3d47lNpgrJZJ7yl5c4zGStCcWQFeTj4MKan53S5mcBCUiWUNLyXyK310qt1P84Bo/DvCqnoLJtWq25nfg==; 31:QP8QDyr4RzKbqjti0LpgSanEt78PRFVvRc57PDtvFfucUTvTKNYuhvgkavALfUeYGwgmpckqWlc5MfnFmBUW5fbmlTSx/QDtc1XrvYiSExCrJXaDhrjTw4+fqTk4GLOYHAnJZ+OD+hu69dPtXT9qTevCABHn9Gh2Q7XAPEtGIWZU7GfPHvQdcMJYnM01vQNhM3XbohwV7xjn89Mqawn8CYo3XkoxXeGLMso7v0frVt4= X-MS-TrafficTypeDiagnostic: AM6PR04MB4677: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4677; 20:75TXhvaF+fj+sOn6uhgOGtSTWg91tUOAfuZWVjPiCqzf0G3WglBS0QXLfGjHvR/Cyd1iNa1XJqICCd163fMMH1bWkeuHwgJV7A0E/fDtuNIp9Gh1shOaN+FnCzY+mWZCYkycnFmFDny1vY1hrlfpfe0QdxHRS+8v5+yHjUR2tkbxuk8bBa2XfmIVw3tI1FWJVtndur5XfYtYvYJw/liyZ/7Oaz5u/dICbuV/DM0PFiBrhZ/ruTO/om7Zx/3GNc2dv8yAt/ddjVg9y8TnN7mYOY3H3kcNA1R3Q8isPgV+wxRgyFT7wCXbxahE1lMnaa7NL9YiZZpzvho2Ds58XilH/DrpgX9F80ljpK1YMem5j40AwWP9d260G6INN+KlBe5ro/rKyU5n0vlebE8ToJbqaUx1/NEKQkbYlx8i4o0ymAbRnOp1rzUZyy18pVSDmYiDQnEtw13uegh4D8tW1K58dEcdAZwxpGEg/FWtgzNpfIxf0du1kMpoyDRC6q3xCJ2+; 4:v0dLer6svn6hIvr9Y8w7fAsC2xp5nmkBBlR9x0ygqlKPjM/j0geFw8xz7MaoRXXse+AN/QUFOIW58my0helMtx5x60bi3F8hSEN5p2Uo+lEN//MdNDj5CINUtKZph5h2KnCYMI0/FAOJmACH9NdTut71BmMFf5cqDsRBCJPUy2Ov65mMt0qzZ2vriokTx4QRTOow0N9x1f76tySewD8p0aX1KZ7w+bOPCJJkHD/O/wuPORKrNsGC8iFxbhvVPIGIySUgGrqrU6h6ajo0856vhy9OXHTI6VKfIVP5asfHGTkXn+7afvLRiyIq2b/YqLPK 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)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201708071742011)(7699051)(76991067); SRVR:AM6PR04MB4677; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4677; X-Forefront-PRVS: 0826B2F01B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(366004)(199004)(189003)(3846002)(68736007)(50466002)(6116002)(478600001)(4326008)(2616005)(476003)(446003)(1076002)(486006)(6512007)(53936002)(50226002)(186003)(5660300001)(956004)(11346002)(78486010)(16586007)(55236004)(6666004)(2906002)(16526019)(1006002)(52116002)(81156014)(6506007)(81166006)(316002)(386003)(44832011)(48376002)(76176011)(8936002)(51416003)(8676002)(86362001)(7736002)(305945005)(26005)(6486002)(47776003)(66066001)(105586002)(106356001)(97736004)(25786009)(36756003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4677; 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; AM6PR04MB4677; 23:Jxkf27483pjRXkEifMxnE60w/CJZXCZuI78O1x9vJ?= =?us-ascii?Q?5CFI2317uIFun8daVmvI8baL4lFltyhSInRgOkgwo1TIBhDvbAlE5H6k4gsT?= =?us-ascii?Q?TIIKHFj3KUGmsJ9rzUYycKMZBlc+sHjdVReoi3DuYxUszvDk1mHUOJVoFWhF?= =?us-ascii?Q?H+w7sDQcyoTQ+Hc3/6iMnENKT+WWVmy7Jx4ulHIdc0mttogQoyQN0JFIGqle?= =?us-ascii?Q?StGn9m4xXmzUJuwvuzdOrRb7uBs2axV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qBF?= =?us-ascii?Q?ZBuTo0jcHcbEgjBMPobTLvihxxujrwcxkajw+XynYYVEoAvNT0qD11AXvT4/?= =?us-ascii?Q?3uzl8RVgy/sVtpcDGxoOlW2nHKDHIwqqw7VVEMhbUaJez/oL2cHTYkftrJyn?= =?us-ascii?Q?bO6VnT02hAeBhXBSXmfMApUYFopXQzH+Y6PmA26?= X-Microsoft-Antispam-Message-Info: B/4nJIjlT1PnkL4582KACuva5BvOy8yYNV3W5jGx+Qutj4+hZHhuqoWlkpvvsF+P/nnrbbOLJ46kR3BMODLwb6fTsXVITggNae34mocMj2hGiXZndIowJVt94ay9Tvf2dR7lS2twNd0soSYq4XvRNXiX3H4naC6NX1zDd9/o5FEVabAe/koG+N9GLXoloMkouKBr710SJ7hxG/au5veel/QKyIAAzOTE+ZZM494hh4o2ItM+N6or9M7LV7hBztpy7E001d1M/gCPocMYmlgZXCcuQx+UT4Hb2gnLG0KOiDG/LULbGGHuxRg03lFM3t3piMnat/cUUEqsT7kpvgvxyywDT+qGSOtIVdqw0tfyJM4= X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4677; 6:1YcR/ltJJ94mmO/DP645xtwTnWzE0XLxV+FQHy5smW8kg9k+baPmlSbWmTRR/ANdRj/DOKalKZNvT9BPMajyARUv8zmFGpVqVAhmJIjqlORZr4TzctM5w2Q7XpHIsA2iZ04sHhGcZcF3XV8Pp29nCLgDhEIPMjN0S56K30V3v7IshkxPaDH4GB5DL8K7O03jddRwWtKonDxueVtbjUA2mSX5HxuIEXKezMFoMU+nLBW9NXjawmQr/c1YdUZAuuVw4ZK0NrHhatlspIU1vT16B592eIO0mu0v1fLNag0c2KCbZ3MNMnClPh1snRM+r1a1D6B3fS6bkmcOXuAiPvHY8LjTJw12gi4Rovxb0c/kf5KuUWqYChli06h2etowce31V2TfSbvEuTFyxiLVqDquGPzCBjsVKWPTZsCOpJsWWy+/H28xjUsX17tp32JFfX4gvV0d2gDeoMcO6tBLuOKZVA==; 5:/9YX1Vnwcto1jnb1hxqQJizPYOlfzc8NYyTxO+SGfds22rlq+S5aQVCQJotEh2sowFtVUavqJGNDcr3PqIvA2MAZjehHbwIkh5P7Jf1jErd3sjGfZQ4P4p2d4gRZeIqq/AamkSiPRXbf5woYIxvdVwYT2ZqWZEpGEOSciBYv1Qg=; 7:jCTieS7a+Q2q+/qhWISGSAhBo2mdwcRnz3XqD98NAp6X7hOMA1ovuvt6UQPCvgCKQuMHGcxUa004+a1OfSAHR70TPPZjEo2uw9Vlvo0iySmFtcT7auYrvBG+XzPmpbLHWKAGYnWoiYaSRbHwHpxyoaqMhLEXWiS+nRKgqhxEARvF7S0kD161iK1Sl3hgT/cO1FmMVJ6nlvKuWb6uO7t+XBpC9ZfWlzQELlMJn7JM6By3UT/LbrQn4E1Cgd40pAYC SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2018 06:44:10.5676 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b4f4e2ff-ca74-43fb-03c9-08d632699f05 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4677 Subject: [dpdk-dev] [PATCH v4 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: Mon, 15 Oct 2018 06:44:15 -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..2bc9457bc 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -496,6 +496,10 @@ rte_dpaa2_get_iommu_class(void) if (TAILQ_EMPTY(&rte_fslmc_bus.device_list)) return RTE_IOVA_DC; +#ifdef RTE_LIBRTE_DPAA2_USE_PHYS_IOVA + return RTE_IOVA_PA; +#endif + /* check if all devices on the bus support Virtual addressing or not */ has_iova_va = fslmc_all_device_support_iova(); -- 2.17.1