From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0075.outbound.protection.outlook.com [104.47.37.75]) by dpdk.org (Postfix) with ESMTP id 9AF801B69F for ; Tue, 6 Feb 2018 18:23:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=gXeFtHjunWzCwogcUTRq+4LMn7Tc4F84i1XSmGtRwIk=; b=aQ3CEBuVBmf7MyWaUlDPdBxhH/K9PFF9ycaBGph6HndAy82w3dz3OrSElorWyO7kjhw2UxTuBshKT4lj7tuYAOy9AAmW3vSXv+jHxTXkdAYLqN7ahVcUDnnSPvmuaDoy35Y55G80wf28joZHn8a1IW85txiMPJaWj3D0/T0Cn64= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from localhost.localdomain (103.16.71.47) by BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Tue, 6 Feb 2018 17:23:33 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, hemant.agrawal@nxp.com, thomas@monjalon.net, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 6 Feb 2018 22:52:48 +0530 Message-Id: <20180206172248.5067-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180206162156.2104-1-pbhagavatula@caviumnetworks.com> References: <20180206162156.2104-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [103.16.71.47] X-ClientProxiedBy: HK2PR04CA0067.apcprd04.prod.outlook.com (10.170.154.139) To BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b9c86059-7c70-42f9-5d8d-08d56d865ac3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR07MB3459; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 3:2kBC+2yc7bxFdKBMqPD/He0UW0j2RXMoxKIrP5iaiyVblESz4AnDdzzCphIxV9KLEwtxwOC+ODkN49Opp6Pidz+2GuW090a/NiiDgeX5V7Fv6Hu9DskvSMsftWT/L/7Y/gpbCnQ5DwfcTV/PXhaM6SrXYgm9/eVqEhjKVXNXfZ3vElGDimKWMGULDKeZ78KSaM1Wo6BwOqENuwGFwuMbyPAjm2bfD2yPMwc0Z2BwxKgk6YVnQclzUrK2t54kwl4o; 25:Mlk58pf8w5QsOARIiPKRYAajYRn9hEw0+YmcVLeo3NOE0CtEgacOW6em1dFo45uBc2Hm/9xywUIq7PYoQlLb6pLkulT0Yru7W6LlDLxE5ZSeOXIqie+xKz+VF+hNxWmvd6a6ykL5SpDjwTM++YICnCoJ5sBARkzG6/w45b1eugNiVtyEjKqnGl3qfYG8aSO/R2CIWE+xyyNe/LuQpv/PWkkMHcdThb7TdcBUiRWcnsH7bnU6dgGghfR/wRRkRhqc5M67+uBwWps6wfXP2s74n2tzIbCxNX/HGVGYMiMbBRBIGdo9JvASt1M2QvPs9FahI/d4lmM6KXqE/4/1G25WfA==; 31:A8hm2S9cht5JxuGEsi5EfJ+c/uhbULqvCJHiiDFMIL7v+l2nDUUnRTazrlV3ZNHm7QwhBa10zK+kR+3CI5CRx9gpIsFHFQ5++tP0uqgbXoNgyN6Ucp4HalvB4Yr4+2shECJZhYTQiafBSPYC8tNjoYI4gpFjwJndRLGdWmACokjaNVzYSWjUDfYp+MMDty+iQtudNC45hxhL9p1iWH8SVVSQ87Wr2DJB6krxhs5X764= X-MS-TrafficTypeDiagnostic: BN6PR07MB3459: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 20:3EqEBRAbjkM2yYZ7Mj5cA18s3xme9vs9JGGu/CohayC+oMt+Rce/0QQ+kxJN0T6Z4u/RiU3MZ+uaRGz2TqOOgObD//W7hFYmuR1k4G99P0ZuJo4vDoOOlLKIUWjU6LcNjma0v9f2nwAPRIqEWh1M/vbwaGLu3w/0AqVrihBkQUWekh80CW7viOw1n938qg/4PHR3pQg6fTh8xQauLt7i3NUx92DrYAo94eth19vEQ5Q2y5U9nfePm3HwEHd4DFvrpU+seVKTMiZ3d7kAYqUvQQRSC3W1Aho16/JQ1UfhRaDWKM/hpnRY/pN699uIO8n6cafU1xz1bCIvUgBELGabQUyNACHpnFYzd+Sk18Pp8C4HLf0lCqM0ikHOAj3Oh0iUjAQ0WZXbsnRcVSvliW5UzfXsTgUYRo3BILdgUpym/lF1LNwvTDceQZMcxlIMM5gaMDSwAnazuMYSWW9qAKa6zHYienNN6yx1GU9Wf7KTr5NmXM5zuLpKq/TwhaGRegha7MYBFtA/ZHsEL35dK86Bn4C2+JMHcXvfrQ4cYyulFJz7sibBv7oy8opCe50l7iJQb3PVT9nVp8BzgosHmnp4ZdFgQ3y7opxyI20F/db8zbQ=; 4:zhFu8dxUJC2FxMVLDL8Qn2q22Gk70s6QfD6Cpfh3HxY/0D/i9ZKLzxUF4WoouzVKMdwMwll1bG+8SGFSKgyCcIispl3+NN6V4NdP+HlNXu3gswODK7iIoXlLRx45X21DPJYM4APhGWaXpaYd+gFJs+oSV0FVVNa/vJQ1nPaACsLppfdnzye4NlssngIS/4EhvJdUsQD40jZgLqq+/tt2ViCfqBbUi2L78FVaHiPgUiiBvDKlMzOnj35WnTKqOvkNIm8jE6E4CD9cmHtPnHuj9Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(3002001)(10201501046)(3231101)(2400082)(944501161)(6041288)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR07MB3459; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3459; X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(39380400002)(346002)(366004)(376002)(39860400002)(189003)(199004)(76176011)(478600001)(53936002)(1857600001)(72206003)(16526019)(105586002)(107886003)(8656006)(6512007)(66066001)(4326008)(47776003)(97736004)(25786009)(6486002)(5660300001)(2950100002)(42882006)(6666003)(52116002)(81156014)(8676002)(51416003)(81166006)(59450400001)(68736007)(8936002)(106356001)(316002)(386003)(16586007)(6506007)(50226002)(36756003)(305945005)(26005)(6116002)(2906002)(50466002)(1076002)(48376002)(7736002)(3846002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3459; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB3459; 23:eGK4o7p8P19gzavpVEnFyWqq5FT11SWeSKLEGueYB?= =?us-ascii?Q?Y0jiXCPNWKDcWAq8TwFCAmAf7KM9VsJs/9rc0PRLQio6MyJJDUEOvkHPGgcg?= =?us-ascii?Q?8naTSRBFjHLyv5ubcfzxt9Qc6XirWt5VbLISHsVFz7O8KGZvKCd9HxRqePaA?= =?us-ascii?Q?PwJKTce0mRoYbz4RZp1AXUREoE6OSJQA0oiNVc9I/qcOLUz3TtokdEuR5Azy?= =?us-ascii?Q?n93kqacQau1qPIxrojwTNOy5rcsk6ocC2IJTVwh3vtmRlXXlJSreEHfGPQ2a?= =?us-ascii?Q?QnjsX2kiB+eNfslwWGIvy1ERemMlcxR2hs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riginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2018 17:23:33.2497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b9c86059-7c70-42f9-5d8d-08d56d865ac3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3459 Subject: [dpdk-dev] [PATCH v2] bus/dpaa: fix dpaa returning IOVA as PA by default 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, 06 Feb 2018 17:23:38 -0000 Fix dpaa bus returning IOVA as PA even when it is not running on dpaa platform. Fixes: 1ee9569576f6 ("config: enable dpaaX drivers for generic ARMv8") Fixes: d5a4e3a00c4a ("bus/dpaa: set IOVA mode as physical") Signed-off-by: Pavan Nikhilesh --- v2 Changes: - redo commit log. Currently all armv8 platforms are broken due to this. drivers/bus/dpaa/dpaa_bus.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 290b967da..f2bb3b158 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -541,6 +541,10 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, static enum rte_iova_mode rte_dpaa_get_iommu_class(void) { + if ((access(DPAA_DEV_PATH1, F_OK) != 0) && + (access(DPAA_DEV_PATH2, F_OK) != 0)) { + return RTE_IOVA_DC; + } return RTE_IOVA_PA; } -- 2.14.1