From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00066.outbound.protection.outlook.com [40.107.0.66]) by dpdk.org (Postfix) with ESMTP id 53A442BF5 for ; Mon, 15 Oct 2018 14:02:51 +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=OIwgcaQGpxm4Jshwbo9/dUkqW3feoLS2WJ5i0syeAK9M+5Rx/8WlkdLCeX0XxMNRwQKP0QLptMXg+/yGa8jMzmItW6przK4BONvDE0ifI9u9UV4+anvZTR86WaHO2FMQefuTWHUlr1zKllzzut84wuNdZ+hgkQl2B5hBkT0ZHKo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by DB7PR04MB4683.eurprd04.prod.outlook.com (2603:10a6:5:37::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.26; Mon, 15 Oct 2018 12:02:42 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, anatoly.burakov@intel.com, pbhagavatula@caviumnetworks.com, dev@dpdk.org, Shreyansh Jain , hemant.agrawal@nxp.com Date: Mon, 15 Oct 2018 17:31:52 +0530 Message-Id: <20181015120156.27793-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181015120156.27793-1-shreyansh.jain@nxp.com> References: <20181015064202.20802-1-shreyansh.jain@nxp.com> <20181015120156.27793-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::18) To DB7PR04MB4683.eurprd04.prod.outlook.com (2603:10a6:5:37::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9a85e97f-55d5-4f3a-c86b-08d632961d3d 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:DB7PR04MB4683; X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4683; 3:goV/RZv4aJIDYpePLKlBGQTBy8p8rWndoVwXnPa4KAn1TOrLS8ffMkG/+IWoBghwzEy24ObPBPg7U0LPYujKu0E6J82fQMigbfy5CTFIJ/SCd6JBNRJ5CWtKv0kF1ICAY1FXRAJV62dsOL4hRWgJE+/NccsfKiHAbBCFKsARJ9cme6uWycSYKnmnsFAunGYfq9Yn/Wglm+6UbcHr1jMhYdXXCPMeQk961AIiZ6jPL1lB9K3WSmWryXkzTX8klmOt; 25:AotcQc9b1IhfIVUKWPV5ivWAKx39Uh13+qqXKv9+8u2fsYdi3foQjD7BJLPZH9uu9fjFnELKSqDHScwdnxOQ48msRVMUWURd/cjFwKewHOorxuzlefOebiffhafJR7gGoMBPu/KdNx0oIemm4y4QyVV4LnN50o6fe1sYj0C0rUHSM4BwKqyjRA38Z5NsIJSCKBdzzZbDbUrYz/XDyO3wQN5rR0RN3fPzrJJwUu0Bc9+U4arPVexNnGBPTvhPgCWlvzapGLGc9b9S/2jS22q6uaVc/FYWRo8jfFwSzd9W4ihfxHnRtZoz1cGgROs08x+OCNi6D7TNIc+gVAH18NpMhtFeDT57BtSl1J7UG5tPstQ=; 31:gau5PDR2ReT0XVXqVc5aJf4Lap49Vdkcjwc8BUn3HiNop/r7iDcO97602YRGjzjvDWQpd50mqJwvaJjXWRH0k96ZWuBaGR6fG12VVLBh6v1nHT5cuLBEoZJ18Hze/yj+nCH0jpcCcLxIYAavELPqxTsG0K6VOvPmfMih/FHj/rcEC0miUUnaHmgppKNSbm9jmoCfKKv3uQBJ3c+1m9zfX6E6immXevPXndkiFYZYiX0= X-MS-TrafficTypeDiagnostic: DB7PR04MB4683: X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4683; 20:Qhr7YETLPHFpGDpdphdXz34lT8T0eHEOh5sbBLD9SWVtPdzf6vgsIbjkWOi0lxGfaJBFusa2RYYsYStCAXh/5ws6c9P561COnYtAF74nbRB/UwFzLObiOOpm4sz7/O/jUGifeWF0v6/Ae8a43vb7PHJW65+ilMpno6U4R88ESfqVTGX1nlja45jWv9vgGnBeVJhzRN1n9WT7Z1yOI8VltrVOgY4nhYTIw7hXHAEWtIpS8EXdux3wlYTwmYWlZ6HntMYXDdQ/QXeYlc4ZLdD6vM+UDO0wTij3vPyRPrQyTKi4NJx/AnDd+KGn28bBTLxIqMMFZT83ts4Y7EfUyhJdogWZgn5MRvQkZqb6l4Qnb3zEU8whBKAfgfmRHbIEJYotgYchtghdnvBmLKEEd/xFxvUeS23RY8QV4eNKYWkzEoB5DASltWY9YkjyfZ4p+pDIzoEOK/XAnYJNAyd+6r/qfE8kszyNi7DF603X1q7SKtgoOwEu43SbIcs3AutvjOqO; 4:6PPMRjWZPpfRuy5ett9QT0rLTXmIxbvpggXYZE5nX7RHH6fkcE7HzQm99YIPs0U9LY5Y6wqdI7WQa04Tvw72pn3/O7T+jsxpzZk/VzEn1AJdL21ZtD6UI4ovaEgUp8pjcyoMjjOraKommzHxcZKapqkIfcXxdUdJLrrr6K+gIAGfaxu/qV5edHA9ctbues96oirwxjnd2aKStQQxGgUPHKJZHSGyGtn/ACjvxox+4DdRB/ZSNh4urWkfEDxAE+Go5ZuHMi45FMMbBSlm/tsnkEx71bUzIfD7Ru2SCoJDZDF5wQkVLafeF/GIKieGVz88 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(201708071742011)(7699051)(76991067); SRVR:DB7PR04MB4683; BCL:0; PCL:0; RULEID:; SRVR:DB7PR04MB4683; X-Forefront-PRVS: 0826B2F01B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(136003)(39860400002)(376002)(366004)(199004)(189003)(6666004)(68736007)(2361001)(50226002)(186003)(16526019)(26005)(106356001)(47776003)(305945005)(105586002)(316002)(2351001)(66066001)(16586007)(4326008)(2906002)(97736004)(6916009)(36756003)(8676002)(5660300001)(8936002)(78486010)(81166006)(81156014)(1076002)(3846002)(86362001)(6486002)(6116002)(1006002)(2616005)(53936002)(478600001)(51416003)(52116002)(55236004)(6506007)(386003)(76176011)(48376002)(446003)(11346002)(44832011)(956004)(50466002)(25786009)(6512007)(476003)(486006)(7736002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR04MB4683; 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; DB7PR04MB4683; 23:r3B0RLIYZFlnVkDUOCAwDxlq73IbV700/V1S5xhxa?= =?us-ascii?Q?qq/ln9Nee0DFugFByOtMiHl4B+TKtKr1HzRo2WyL5pThHacnFTnmA7iqSBKl?= =?us-ascii?Q?FAd2tckVMuIk8OVq5WYYt1iafbPGESoCtKuQEtfcCEWjlCC7AWsEHVRH/OTo?= =?us-ascii?Q?snjV4iMPBWkufCOoMTIPnEiCWn03tFJgW/mqceC+6hdUw/6fSYuq6dGMRPxa?= =?us-ascii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b35+XKtH8EqJX0tAdhV6q8s?= =?us-ascii?Q?fLMUs6fhokHd0FZSLPZISfjuQHv33qX+mNpcWxQyoXxM6BRwDE0GwhdzQyh9?= =?us-ascii?Q?aenwMP6hJnGc+mkTfOjef7GCIjLdvSZLY5kY32lTOSaRNoluyEAnJBSwijf3?= =?us-ascii?Q?g1jZ1eQfrgkq3I1+CyCck1jh87fdYE4rWfAOpRuQQirhVHYieAnyA3bkom55?= =?us-ascii?Q?A/l1OJpFC3MPFC81gh+SAdWvu9Zf2z+0d35WaGN8/GX?= X-Microsoft-Antispam-Message-Info: xyowvPiN2Bzq6bGUgsnR0OhPxaYGBvAUmTgtR3fWiS1TKM4xKwom/osFpblhx7bwsqQ/D4hnheebht5PrY/dj3Dq0g1lX1+TZuCVmmL59QNCAucgvnNdygYc/ghLnh6EKo31dOAN9pz/f1otf5J3MnaBuCeh1oJ7T6+67u/qXqerRqZgME3ktixKpXAVy7dYEt0bcVValxizBzjznm5DyzmQwWK0FTto0hnzuYNlo8k1UkGxVzbC0yBZftpIVIP+Hf+8G6dqxNyS9Du/g8TDxz75UzIHcak3gvC5mM6qSopJOlijIGBB36QKQWylaC2ljl97wp7IlsuieWrQVtRqy7WGy/0EFl3DecTs2FL6HgE= X-Microsoft-Exchange-Diagnostics: 1; DB7PR04MB4683; 6:gervGPLFsVEZ2FlXiVt2MLhcFDI5+TzSCJC8jVk4i38xmW7Cp8k5AxSj96IuE5IdmsPPppHp1U4IBJF/63/SIP3wJZFChYb+mM8/EG2zORuBbiRAHg+IyVTzY0J7aX3pJcMSX0wB+S2q7kT93a9pMPi2xXISISUvwgFtX6ks3K7ze14LqkFvPhAh/TBEWWP1q0jjStABmJ6vv41eGJhvzsXM9ZXxWZr0nVBv4N2GjRg6Mhe790GNZeLyUnn5yTMEpATbxeLHjSVvg+0354emgdTNZr1UZQFWz+AayZwEtOV4kF1FAP/9pjHZ4ScKJNnYEXA/CKsacUej9duh4Z7s8bctZkh+VDBHk9tBnanDRf+Ka1xlLb07lrM9lmYXtrz+VRPywZToj2deEc25CmFJmzWx2LLh0N6Na+NxOaxyUQOsojgnV11dYGBYI9aPzAOOacgualFLGG9DPob/xB0s9g==; 5:vYAygAAkGo/lG2nwkRq85YztiYfbNJ9CULocgyebdgbmUWYe6GEwHeGfjahMP22bxKiyQTBDKsAsMgx6azYgtmrU5FkFaMo6vWRKRNOE2cd9k1K76oBZKiu5nJm1qsFNXdWM0QT+/h5O/FT19K5wP7yQS5HjnIVVoJiRFdDH53U=; 7:H2XQtqBelYqJjuwRvlapSg+29z6Kozsrd3ndm8/kIxEOtT+2dNa487Bs3Hs1kALpiH0DSDhvu+JTyFHR60///GKlTDstlUMTLeS6cmFG3nUDLTR/yk0VRIzdEpQfAkTzA7yAkxHnZm+D9VWOCnuHeeVi1LCOdH6Z+LcRHdmrjDRPHgkz+/PvSz38bSckYTHnENY52Zx4/DGHt7mOt8ec1NqpI+Tg000yI7HXVEytS4SniqMm6G48sMSgaixkIbnw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2018 12:02:42.1354 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9a85e97f-55d5-4f3a-c86b-08d632961d3d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB4683 Subject: [dpdk-dev] [PATCH v5 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 12:02:51 -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