From patchwork Tue Nov 7 12:15:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 118155 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3901325qgn; Tue, 7 Nov 2017 04:16:01 -0800 (PST) X-Google-Smtp-Source: ABhQp+TK/JKMfD/8+Gh7+b2YVJ7NHeEQRQDn+1V9Ut4uEdNYpnVW2ppx+R2i0hrHtV4JnKPAhR7c X-Received: by 10.223.139.221 with SMTP id w29mr14487982wra.43.1510056961038; Tue, 07 Nov 2017 04:16:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510056961; cv=none; d=google.com; s=arc-20160816; b=a7DVSoFtLMzqTT/eljnhXdqY+xk4gaS4O1Mve4vl5BGtKqKD/3fuJZ/wVqsvubLLWK a5GugJ2dQ9PPcW9MwQWIGwhz9zE1S7Qh9yGxqU45hiOnGhoDzbamP5elZ5ihA6uGAoBO QRKZZOGH/TmVBV+zr8EdmJR90uPrF9uRwIBYENhSkdIWQzYqpXXTj5BSDOluXZ5OJE+F 9fRQvFNG8WpMZhnT95pvD41QVzNskMFz0M3WAFr89pTMANVOECcY/QfgrTF6Q3uxhsho bzCnT/Yj0Hs4eIKbDJp4C642++ifYnZDh+Sp4q0NRfPNXIz2BLsjfWHiBFAJ1QQ9paVZ 6Urw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:cc:to:from :arc-authentication-results; bh=rJK3Wz6n4pE1zxABevi65VCvpCOOc7XzkF1tCK0kLHQ=; b=hdK8T1img149pck8q1BV7Qev1cpKWukElVVWY7Vuf/0vlGJm5F2cA/Slx1ZM0UbXYn 1Ls4+6h6XJqeQeEkLEkOjClacl960EKH4s9NZzfCYMovW0h56maaL8XaIF6QmwSDXBR2 TszP6ubsaYINkADsnHTSLi9AIw2ogM1dIZy5J56sLJfXiyzf3GtrisqtoZeK4LoXXl4v hAf2FLkersfI129qnfQw+Don1/LsatwS28hfoZC2T+ix/UDjm0n5w49xWI4Aafqd/4hx 6CA7lhW+hgjXRQyVRhzf6z+DhzsrznkC2woGpc2D6n0OtNs7cSHdugKXNxvO/Nlq4RUG c9Fg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id j9si1016817wrg.99.2017.11.07.04.16.00; Tue, 07 Nov 2017 04:16:01 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A6B721B5F1; Tue, 7 Nov 2017 13:15:59 +0100 (CET) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0078.outbound.protection.outlook.com [104.47.37.78]) by dpdk.org (Postfix) with ESMTP id E219D1B5E3 for ; Tue, 7 Nov 2017 13:15:57 +0100 (CET) Received: from MWHPR03CA0006.namprd03.prod.outlook.com (10.175.133.144) by CO2PR03MB2359.namprd03.prod.outlook.com (10.166.93.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Tue, 7 Nov 2017 12:15:56 +0000 Received: from BL2FFO11OLC016.protection.gbl (2a01:111:f400:7c09::153) by MWHPR03CA0006.outlook.office365.com (2603:10b6:300:117::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Tue, 7 Nov 2017 12:15:56 +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 BL2FFO11OLC016.mail.protection.outlook.com (10.173.160.82) 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:55 +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 vA7CFqAh027032; Tue, 7 Nov 2017 05:15:53 -0700 From: Hemant Agrawal To: CC: , Date: Tue, 7 Nov 2017 17:45:06 +0530 Message-ID: <1510056908-8372-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131545305559514313; (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)(336005)(7966004)(39380400002)(346002)(39860400002)(376002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(50986999)(2351001)(104016004)(189998001)(105606002)(106466001)(4326008)(5003940100001)(77096006)(33646002)(53936002)(97736004)(2906002)(50466002)(50226002)(48376002)(47776003)(8676002)(6916009)(6666003)(81156014)(81166006)(8936002)(356003)(5660300001)(305945005)(498600001)(86362001)(85426001)(16586007)(316002)(54906003)(36756003)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2359; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC016; 1:uu38+qq+FrOn6dE69L1TS2Fv9HOYDukb6TCwNu65aHwF0q4WKYIXNXikzEX+e3k5zNKOsJ571nOdeAQQbT2Xo/7uISGKy5ujhZBnpdAWyzqltsjziokY+dV+qlyh7ToY MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fe2a3550-273c-42c9-5b6c-08d525d94c33 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:CO2PR03MB2359; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2359; 3:UbLmY+ZWP+kE5VEPAdWcAq4eraqhDNNWrjDWixebLIltZCZc9ezQ2N7Fv0/75W2GZOJMs1fG6gSBruc7SGNImY4g897sE/+FNoHjfzVVEHbgqVOqHcI74EO/EvkU6M4m4ffLddeFNHD8jiXy44XIsItBNZrHF5VFAOTPA10Xx3I4p9GAOPyjNnV1zzEDvhZv26gFToKXeHYNMBdS7oqJTtWMdOxUCmRXnhUDlcqMj642B5tph/llqqOQZY6FIG1DWkRqjFS3f6bg6GFKhKFi6C2Wjw6fIEht2uH7QwzCNKdwYXz4fRnLUwIgw6bEJ81obtauMxKKRpVriedobO+DdlZiGBqjoe0MnvCbXERCteY=; 25:czpMjR/kBHwCXkRIpOypMKq1gAERZ5TGyVjZjXDWbrrjV4Z8xplFh/EZzQtc71zk3+xZgZsx4mYsRGQl2d7P8XUzFU4+ihAGmZeWJtI56A055t8nqzxK2QyG7IoaVcUTD/oVXUL8VrVn7wc7jYmcv751ooI6ZRu6OciAls7/Pm+Oo/S3PzEYEuVgIXYFBB3rf/LkkOcN/dqXreBnbSHYOHdch5EmPARcIEDuRBdYcAX1zmOzhROcjtXXr29sYzB1dmZEElRCwNOlvyOKBfieTF4umziaurm9iSjYSbVebimOf/AqIHxEYqj9yJSIMh3FgzVRWKL/lTb4ecM2XeN9BQ== X-MS-TrafficTypeDiagnostic: CO2PR03MB2359: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2359; 31:Oa6D0PYJ6qb40p1d25dAjRZ1M+BELvgyKbFj51dZx0vBsd03r6ZUZ6/J3mjkMUje298i5UMHAZAcQHFEaZEVejfCF8nXgIVbzBUWfIs5woeQKJgiN+5DlsBbIXrzQVji4r1PM4gqLyCxjRGJ0r0++HKuNMeR3w9VzHPgWNgfBz+iGn+tJlZSKAYGxR7uFcZc5bRWFmcPjvuDsIh0P7E6bT0d3IKaRcN1rhctRcpBgNw=; 4:6H3FWbRkeEinGgjqHJLbB7OduixYkUNTOgyDTZDAlBlFJXBig2Ymhg0qy7bSGrmWrx4Gq7hKl8OSCCyUKjo5+baRDnPMzLycZwhxB9p8A0I+HthOa50RGhTuaj1MnhVEz16Gty30HG+KBjPfbZI8VINf/ZVSYIK0vp/dgSiDOBb5psvV9BzL/uMlStRjgK1ANY1JsizqCI4f5ZzucR8Y1UHmic6ijPPShjS6AJjAOeaiFUB1A08HIroSZorv2+SFe/lAWce+SzmUO1qVMwDYFvUiRtnTn0kWfGtG6hccsk3hCWfyR2o+jDJWIFwxtYlg 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)(3002001)(3231021)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123565025)(20161123561025)(20161123563025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR03MB2359; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR03MB2359; X-Forefront-PRVS: 0484063412 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2359; 23:FPRHHMpoS/oTJfYuFDEparISHn0EAZyVeDj5U4LsB?= kSgYh/yFwQRsaWHdBNvIVNQFLvWVZmEbxx9GLx5I1j1nSBspgTy0EyOBm1usPSNR/vMl3mQRiZ95oTQgNfZsiOu2LjejeWCsOlzap54bOKybr1UzCw6lrKGTFiLisach4F0mMRJWzX2XpiENHg0aNtZNL6DJ/ltR8+Bi//RWgOisAt8vdVGB7rDJvHkHpMHbHXWexe/v8/A+NtWoVV5VZN4Jk0R1fXq7j9DT/Ujaki2fzViyAYx0wm69lfUHldKt1HGcYfjFe5uatdZU75xJZagwbkWFzO/amNmKNhpEmqLXifhn/9mXJp1h0KkfW2UwdNvPKG/YQWpDQqIGemDdXHKJIuFejqTVSeEFMqXFmn4t0fHIBuBhS8cQUYGWAAYeKPVh7Nc/SbO22kNs9D1bkikOrxb/3mxZk6SYWN4dibNDUAKnaV6WjTyYugm0Vdnh2w7IejJ8x9EQl5/Nqpi2vGZ2R+l6rWfwQAECeUC44V81F7yrcNCZBkapjhapsz9Vum8+VpFaxzqoh2gyoIdas18aOF3OotHcFuaOqbZ2OdSaTJfdU0+mVPlH34cIbgV5Y4xfGBARXGkEGfyPDlYG6wab/3tmhxVL8HEuP6jtfqy9I8lPCUPSmEZqJn7yXsHYFmQJqbVfOUWeCMDR260vlNc6dA9XooJ1s3vjTQbofwgi4W57zn/bjWzQmJjk15LKiQUuJ3T8c7en9mR3RggcqoR3RQWXbQTA6DEn5bYc944cnBKxV8kT9dLvb6xf9t31bqrqxZGTvXHxvCOYNyUdH3oY7/c29AQCGsrLBw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aSwhIu6++5Yh+SJvqpAoS6SSm1M8YncR/vhe32YognprOE6u93EgpoFB5EAgvFcMTzCslJcfMvXRpeVbRXUghmyBsiyJJ7MTIgTw5WZ03CY4iKBbjkMtQc2wg80UXhCqwv9xJJrqaRcpyJJktg/JBUMEicQOcEMIR5KkR7IOljp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2017 12:15:55.7798 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: fe2a3550-273c-42c9-5b6c-08d525d94c33 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: CO2PR03MB2359 Subject: [dpdk-dev] [PATCH] bus/fslmc: set the bus 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Setting the default iova mode as physical. Signed-off-by: Hemant Agrawal --- Though the DPAA2 can support virtual mode, but that require other changes in the code as well, so setting it as physical for time being. drivers/bus/fslmc/fslmc_bus.c | 10 ++++++++++ 1 file changed, 10 insertions(+) -- 2.7.4 diff --git a/drivers/bus/fslmc/fslmc_bus.c b/drivers/bus/fslmc/fslmc_bus.c index 0a8229f..480857e 100644 --- a/drivers/bus/fslmc/fslmc_bus.c +++ b/drivers/bus/fslmc/fslmc_bus.c @@ -346,11 +346,21 @@ rte_fslmc_driver_unregister(struct rte_dpaa2_driver *driver) driver->fslmc_bus = NULL; } +/* + * Get iommu class of DPAA2 devices on the bus. + */ +static enum rte_iova_mode +rte_dpaa2_get_iommu_class(void) +{ + return RTE_IOVA_PA; +} + struct rte_fslmc_bus rte_fslmc_bus = { .bus = { .scan = rte_fslmc_scan, .probe = rte_fslmc_probe, .find_device = rte_fslmc_find_device, + .get_iommu_class = rte_dpaa2_get_iommu_class, }, .device_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.device_list), .driver_list = TAILQ_HEAD_INITIALIZER(rte_fslmc_bus.driver_list),