From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0047.outbound.protection.outlook.com [104.47.41.47]) by dpdk.org (Postfix) with ESMTP id 3E5471B616 for ; Tue, 7 Nov 2017 13:15:59 +0100 (CET) Received: from CY4PR03CA0100.namprd03.prod.outlook.com (10.171.242.169) by BN3PR03MB2354.namprd03.prod.outlook.com (10.166.74.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.6; Tue, 7 Nov 2017 12:15:58 +0000 Received: from BL2FFO11FD028.protection.gbl (2a01:111:f400:7c09::188) by CY4PR03CA0100.outlook.office365.com (2603:10b6:910:4d::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.197.13 via Frontend Transport; Tue, 7 Nov 2017 12:15:57 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD028.mail.protection.outlook.com (10.173.161.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Tue, 7 Nov 2017 12:15:57 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vA7CFqAi027032; Tue, 7 Nov 2017 05:15:55 -0700 From: Hemant Agrawal To: CC: , Date: Tue, 7 Nov 2017 17:45:07 +0530 Message-ID: <1510056908-8372-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1510056908-8372-1-git-send-email-hemant.agrawal@nxp.com> References: <1510056908-8372-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131545305575978007; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7966004)(336005)(346002)(376002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50226002)(77096006)(356003)(104016004)(48376002)(76176999)(85426001)(53936002)(97736004)(50986999)(36756003)(5003940100001)(4326008)(47776003)(189998001)(6916009)(54906003)(498600001)(2950100002)(106466001)(105606002)(305945005)(50466002)(81156014)(86362001)(8676002)(6666003)(81166006)(68736007)(2351001)(8936002)(316002)(2906002)(16586007)(33646002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2354; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD028; 1:Az6bfoXw3igWs3Vv9C2tIa+rmsHnsUZKb/xDX1Oxd5lGySpmYEo2oUIpO+hAeXH0wv47lgZTdU6PzkWoMsUSRUjEc8ONkndLGz0ff6SBVGVcSyKxrZXTtIVV7qsnpZfZ MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40ed4036-ac52-4949-f417-08d525d94d30 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:BN3PR03MB2354; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 3:1+S6oz73aiP2NQ9tZjGqvqBu2Ou0o5VX5K+V1OWAt5ELXhC8+oDOsxatHmzlxwKWcfXzm25WF+YFKQvCCx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nP2zk/v+3FSc026OPrjRc5RNRTNYVk5slJtxqzK1XoGtOhXvgDqIn39Bd63W74X/uohf/yOXKvDLm558WC+mZuqO4AENqS2FpIIBGMEMBCjjYGXBxXDDf3obhxJ7XgvcoIyECs8EkmgiBUV8/ZmDUIpehytuPe9cj9qgIqcJdnIQaO+n0cBhcno X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231021)(100000703101)(100105400095)(3002001)(6055026)(2017110403001)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123561025)(20161123563025)(20161123559100)(20161123565025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2354; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2354; X-Forefront-PRVS: 0484063412 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2354; 23:2aaXV4KS9sWMtDtFRJvi8AMLWHJsZFOkpMNyxudZP?= =?us-ascii?Q?mBhKbViVwpzzPEYGEI8IFKR0znw5i/UXJly/7Qf2ecnYHyOChrdRiUGA+3YU?= =?us-ascii?Q?YN5ygXEitLWBl57bDDS8p+d8oGPzA/TpHCjfzocybW17Wvu+s23YAtCjIFZy?= =?us-ascii?Q?dkDfDnXVJ7ANYFSWstDj7bifd0Z4gR6uSlssjykk2UCyNzA9v1D93JOhIC7f?= =?us-ascii?Q?bOIBDo3TaMOGu9A1nYBUI8GAtq/Cc8Qr4Yq082sidep3Uo9yo3MWRclu/h/k?= =?us-ascii?Q?3l1/iVFuQEiptrSt5OcJ2kMw6byX1y7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X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2354; 6:Jn2T3bnrnU8rg7fhUpiNLbdgxsqFZt04/1c2UbFiuuPbYEL1PrwklceeBwtX+gVdBb8/Q0CnbVap7xgLwVGljkNjdRokGM0HmUaIhIW7FgDcGSxDFzMQglgWu7pdOkpM+f7FC1TWmUXN+475sL6U7ndlvli5BzBwXDmde0HMznFANP4VSDFoKPVikc+v0Nt7huiYvKtiRDO9Z0Cqqmw+P53PffI/I3Z4m0aTGCXI5xvq97Z1N9ZBoJdQxiUC7km0Q6cjUdB6PwZU3Rdgl6MSSNwyVVtjuv5gZwmwtWNrBwBcPdDUpk0ncCWkFL0XchCauus3GWc/q1cv4QcjXUaIsStAWyMkMNcHfPdYqRacw4Q=; 5:V6/t/vgwV9Atsv3oeQDM3il80O0LNdj2/maNWXH6uugwStgH/q0OSmCugUyS9mCdoKWAXobVzQ3kaoi+nGdOFnQYCnBmmCwCDQEpln5lN1eNV0dHKCw4d09e5zmEqRmt6gUXssNiwnX+eMp6SEsuzk0RkIVdRNw6JM1XqLvc7rM=; 24:5TLMvDrhNeWCdJSPEDVSyhZ0vl81R2mcmRuP4+rihB2kigudH85O+DoXbQriupH3iJrkSsmekcghh573J8QUeGn3D7TMobL/gD3Wwu3Xojs=; 7:GHdMxYzE6DfRqr4cA3HSCQu7S1iQetIzv9r3iFScrfe1wWo3pSMBElogg8gcU/yyvv4SYaaO6RSjHhEiHCGkPZ/M91F8KuhmrW6BWkiRFnREH2euJVWS1W/JikvNQXBxQ5x3xpt/fxJcVdTwxFP5d9ydqf0bYbJA9Psv0dAnGRIgz5MP9SwbFpzCPbmD+7S5RFQriETjT6QmGh/GnZ/jE2TBgoh+aJEhv268SPqCKx5losbYVSRoQpAMhrDaPjwM SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 12:15:57.4261 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 40ed4036-ac52-4949-f417-08d525d94d30 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2354 Subject: [dpdk-dev] [PATCH] bus/dpaa: setting the iova mode as physical 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, 07 Nov 2017 12:16:00 -0000 Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index dc58e17..1cc8c89 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -484,11 +484,21 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, return NULL; } +/* + * Get iommu class of DPAA2 devices on the bus. + */ +static enum rte_iova_mode +rte_dpaa_get_iommu_class(void) +{ + return RTE_IOVA_PA; +} + struct rte_dpaa_bus rte_dpaa_bus = { .bus = { .scan = rte_dpaa_bus_scan, .probe = rte_dpaa_bus_probe, .find_device = rte_dpaa_find_device, + .get_iommu_class = rte_dpaa_get_iommu_class, }, .device_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.device_list), .driver_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.driver_list), -- 2.7.4