From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80048.outbound.protection.outlook.com [40.107.8.48]) by dpdk.org (Postfix) with ESMTP id 44D891B136 for ; Tue, 25 Sep 2018 14:55:18 +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=ZsFdZIVsT81q5eP1N+2C8SPRtaIt2udfDCMQKg+afoI=; b=xmOHhz4rozTlkxiAIveIfD35cMLusHyXLtXX9Z/tElB189vzT1n/0a+RKp5r8VSh+dMxz6igSUZmX+W0mF5Qpbb5eLsIJehOuqhfrIBB/vr9DUXcRCYKjYAcFXp0UEdKKUpw7lS1pBaL6yRgcDs88PRZF1GQSWO4V93396MCwJc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Tue, 25 Sep 2018 12:55:14 +0000 From: Shreyansh Jain To: ferruh.yigit@intel.com Cc: dev@dpdk.org, anatoly.burakov@intel.com, Shreyansh Jain , hemant.agrawal@nxp.com Date: Tue, 25 Sep 2018 18:24:19 +0530 Message-Id: <20180925125423.7505-2-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180925125423.7505-1-shreyansh.jain@nxp.com> References: <20180925125423.7505-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: TYAPR01CA0123.jpnprd01.prod.outlook.com (2603:1096:404:2d::15) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ea27677-d70c-4a4b-73cd-08d622e624a2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:QDuxRGOyrFQXMmRX6QtQDH17NeNQh9TPc4g7QIR1tmwNKxcBeEo/cTE3wEEXdnB9tu/N5nTbFTmShy3J4aCGI2tdM6LILCoQR4or2eMKzKPeWUUrMLPwTv0cmRSJumO4MOY63mxoyvZCbLCf3AlvQtCxmP06+f24ZdEd24JtfK4iyw6827MBR1xyFkVmVTEXL/WvACdAWjBjPJVDU5i20xmZjYG/eVrtmdDVtn/y+UBRg0Z6pm93crGZ9yCtuBcV; 25:AJ2+41+tXkLkjMV2wEt2d1BFOAQR75bHc/W4dOAHAlQVYuKACOnpcWZghS89FGAPVLb4YHJP8R7bSbbcSGq+E+iNaQQ+Z9HKvCQXNAw1Mu3ZAxgF/prXsjzaWsiCRAyX3KlXAuFF7V42zJJIMW4AWtyRY6wOd4ns9MJZ4JbscEQMAo3zNIXFSWTO+IWgbB2AMr5Dn6Q19KtvsgHaym4ky6lNaGjXvJm1Gdsd96Zcpqddqu97lAHnzhGwv670zTf7LTlEliGejXl1fq/Ya59JAW4d7Jxx8HBrCrhZ8+cGSxAKCCCrufGghfkIFX+S11s0BRc7w4Y81Rl9wKvtCKEkzA==; 31:WPjDYwtfbwP6ZyvpPLUm3ovAssooxLYFj80f6LkAAByxVk+vLrhiqI68pr0yswVFhChfyW6dObQfuib8sC+goVYii67zus3KZFsy3qTl/JT+4PpSm6jap4B5qv4kV8i1D1FpcXUiWOZdsv1S1SrwZ13dg0YF03MN9rfldKU8/9TT/LIEtL2vvfr4coj2b2BHyCem/suo0WfhsQxp9dWWqmf0rrpjgHN2dOEs3fzgEcI= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:53qxlwLrPB2hWiKg54k0Rvyy+TWd2caSov30wCScPHajHqIvhHN+DIKnnUsEb8Sdf9jqTTTBBnXUTVyJwp0XUOvkzirHOpnj7EyBIuAC44z+M2cJr9H77AGtf5QOld7q+GKL3Z8DCN+vKfvcNOJR/wTMRun4+YxPsixq5rnNltYfVog6h8Z+hp6O1GcJ8Y42j16dG/gLWYUeXZ/CjNYeKzsa1ko4UMoEnWD/VymCHzfqE8T+fhebx6i1Bej9KYC7Nz/5jjmQXVxudWf/wwZHPUpIqvNUCLpJJwuy8x6vEqef0cfBueuUiwbozW0Ibg7eZ7e4r3s1nKUTEvVe9Wn8uuVPZ/WBZkvJwMbeP7KBIGLE6xbnxLKA9oHbI09FiQwMFsJKeXbnqR62yY+TPvTq93WSd9q0yseuBDFuds1qPvmZBGTYCJSWzVukvnZksnR1MA2qDOAgGYsa4O2ZDm2NSMBl72V/c/aIRXNCZD76WRyUUkOhHObi37+aGbNIxbNb; 4:dHnJKR9r0r4vzKHjFHTqvcPveMdskjAn96odPP2qHLVEoCGf+4C8suD1gl5OxdZZly/ALyNpr2jmgP1HMU883gXaMS0mBuLuWRwfm8oj4RK6ftJ5L9Sodl0fvdS9fQ/5FiWs+5v6nthUaN8imKuVwyDvGAeZOlAO38laP0lDUSzoJvwuT0nxDuoRZKS1Owvr6y9SQzfUSCKLWupjHReN00JLznpl7PubtLLOrCA3ouonFhwFjFXUWCCbC/0nRI1ypIwEhRIz/DInK3pYFU4Ksap7f+GnPwIcC48ro71yAauby6rO/7exzzohTKTofNqR 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)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150027)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 08062C429B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(136003)(346002)(39860400002)(396003)(189003)(199004)(2616005)(5660300001)(48376002)(478600001)(8676002)(11346002)(186003)(86362001)(66066001)(25786009)(16526019)(36756003)(2361001)(7736002)(97736004)(6916009)(26005)(34290500001)(305945005)(106356001)(486006)(105586002)(53936002)(476003)(956004)(6512007)(5009440100003)(386003)(8936002)(68736007)(51416003)(50226002)(76176011)(3846002)(1076002)(6506007)(316002)(6116002)(47776003)(16586007)(2906002)(6486002)(2351001)(81156014)(44832011)(81166006)(446003)(52116002)(50466002)(4326008)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4676; 23:DoLHdzLOI+5O1ZEx1NV4zv1rv8QMLaHBbpyoxOHlg?= =?us-ascii?Q?YZkrS3lhhY0TGNJ76uHqvmaFCeOgReZRtlzQAYCl/j9cytgiQEKtM9VkY7aD?= =?us-ascii?Q?b3uAFFvbznIq9YU//kTZ+vKcolp01qPh/MPmRbrZTzX5tqJMC8pCH16hay6x?= =?us-ascii?Q?1A835jrc4jsZUxAUDvECUKwTgQPNk3Im4P3dupK0jt+HFMDzvtNkHSxYQT4G?= =?us-ascii?Q?0Zymq+eEp2RpDVnblvPLlODz4oA7Di1l5iin5+VN7w0WjxnKrfTNZVcyi2w8?= =?us-ascii?Q?JCEmMGjT00b38wV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Ij8v1w==; 5:pbaaRv4nadIJOyx6Fi+KkupLRR9G0izcafrdx9Q3KfybiVXbxqHVfiJ9T7dTfSLCH1xEamSgVX4gq6VGvaYlsxkb882VqT0m7lxcSjCdRz2IeYFEBjf/HhiYaU8LqHIPYdMpY5cva6zkClLGVqy7cv8ALCACXyW0GbNQhUzQm0c=; 7:DbYpwQeY68pgChb6uBnDkt3x1GKBLqQyr9cCG/s5cQbf5DRR7y3VCd8JxWO5r4ZPTsVhWsPaH22uFqLxeRHUoyyLRDo4WmHnIjctg3uBZ39Qa+MtX1yPZDPcGPlobyCRoCjySvFV6YWVIZ6NAC6jSe3fujSO4yI4HRjUXzVgzuZlP+WJFwCmBRwJaIJy5NRmVRhNZgKi/Ko11k+yesCnc9fMJgd9A8altFwxD7E2DqiV+iDyXvZ7RlD3o7v/xRGZ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2018 12:55:14.5844 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ea27677-d70c-4a4b-73cd-08d622e624a2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH 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: Tue, 25 Sep 2018 12:55:18 -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 d2900edc5..f5135e538 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -487,6 +487,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