From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0079.outbound.protection.outlook.com [104.47.33.79]) by dpdk.org (Postfix) with ESMTP id 1F52D7CA9 for ; Tue, 18 Jul 2017 08:00:49 +0200 (CEST) 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=GA5OKeet9FTGVSDlwXtlsP9P6PNlwdRIRvdp1Cg54hI=; b=JU07nfkt/axc4DXgK90zyniIm9UteYxMfiFzqRFmpQZBh+57kOhcFKyvHzOuumJlvzqoSq1TawVUfZf1yrSdTXbAlYrHWko5sk742axqpEgB0ljkKWFAtCqS1SxzykVZNZeVtFPGuRm6ylMhtwANp3nn12AGCWg5N8hWyfUu25g= Authentication-Results: monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (14.140.2.178) by CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Tue, 18 Jul 2017 06:00:42 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org Cc: bruce.richardson@intel.com, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, sergio.gonzalez.monroy@intel.com, anatoly.burakov@intel.com, stephen@networkplumber.org, maxime.coquelin@redhat.com, olivier.matz@6wind.com, Santosh Shukla Date: Tue, 18 Jul 2017 11:29:41 +0530 Message-Id: <20170718055950.10208-4-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> References: <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: SG2PR01CA0029.apcprd01.prod.exchangelabs.com (10.165.9.167) To CY4PR07MB3096.namprd07.prod.outlook.com (10.172.115.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 64f506b2-a0ec-4b3d-5957-08d4cda2556a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 3:EA37a0bhmXCsXAJdctgyMQLQNJ+tqU/3gAshdpJZSElhyCYvYi0rSvo4BNpAngr3zVK3mQmIferV4RmALjLLU5KDEsgZjNwBCn+BcZZ5k+DL+VQDPXuG5HKZbxWNfbKzrrvT0a8FUdBETFtBT/lfGcTmV1ZdcsCfuW3T1LLDj1ib/ZRrQ75FwpfuoKog7MzUTRgf1Fzt//jhUFbFF8+VSLlMmVsxKNmaqWLWhwU9pjoHIiy1k1fHeNopVPngfozfeqWn/lcTnYisqyZGClykgfI+E9CTeYHp8K4e/czLHJ3cqAYQVTtoyYrJNcPTfx5MPl7aPEA3epmqLiCVhSxSeJmlCTydOUwoShpbb/APxd2UAw2HzXOLX2fBXSBTlAbB7IZHttx2P2vecuvcqijUXllVbljaqumOVUvyPF1om2IjpUgw8Fm+zCLOL9kjEvvWLH2sgbVGriyo9kfltiLrVJrzQFMp5NMOrGVh2jWNh20KGiq+Qq4AfdFc2T/afl4XbEyYRz8VLtlRjgEW/CffzySoILsLEFiDJjmoU0n7hvTwv1zZKcSzmtI4Fc3WQ8aBPYvgusiPp5TDtBjSPbke+aDvT8SUuSmg1I5daQXd7pL3cDQymoXoAjXZGjWeLs0OHFBfW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/8As+Lf/bN+pUsBMBZgU07+1WjFx/erDYN4MWjhVnCxT0jh2jLYq9y53eLFszqQW8eU3FaGz/WC7E/S5HMspc3KlljFyiWEQXukIMEvWPyIj8WgwmJSYZI0vH4jFy48WxHMUYcnFw6RSVBaJ0+/OU+cQpYPFqnHpgUhtLr3aepeKKSg09BpDKZdB+ioR1cY7/Xa0A0lQIVjgKxWbI2GFeCJzOaQpIei4k3h+oA+3yQ0pf9NiSDGgHsoDipOgTmwpAnvCJyQu6edZKZtevGiKguSY1sVbBskxyPzDagq72aUj5Vn2bU+u7hGdzaDBAKIZvYLkFDhWnd5jhV6Ctzo73XMpO8o= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(2017060910075)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3096; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3096; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 4:cLf9FsanrJ23tj4vAC4FmZ1bmktRV54r5h2Xv/Gwzu?= =?us-ascii?Q?Dg8tOXM8oKwbg08KgIUQ+1D7nR0mkJtktOrrIP/HM/TphJJltI6s2ODIO4MZ?= =?us-ascii?Q?/Q/rQjm6eqAA9H3vZiNsJh27V4Ft/6qt2hZCs9Z6u9eHiK5mMe3hB0KjXIWG?= =?us-ascii?Q?wrI9UMzfxZVIWEtf3PjgXpo9f8KAXhFGWFtnHdBoz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3xBaBdK9BgDklEE7NwTL8EzlwJnnxA/xS+kAeG?= =?us-ascii?Q?IIsTZBvRnMPXrxVxnMG1yEuAty8HRvBzObaoP9da9eTWeA9kWkt/p+B0r/SV?= =?us-ascii?Q?FJwqpM8oeaXdjk+08w2smQg6YwRoGoLdZz?= X-Forefront-PRVS: 037291602B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(39860400002)(48376002)(25786009)(66066001)(42186005)(50226002)(81166006)(189998001)(8676002)(6486002)(110136004)(2906002)(107886003)(38730400002)(7416002)(36756003)(5660300001)(7736002)(47776003)(1076002)(76176999)(50986999)(5003940100001)(305945005)(6512007)(478600001)(4326008)(72206003)(53936002)(5890100001)(575784001)(7350300001)(3846002)(6506006)(33646002)(2950100002)(5009440100003)(50466002)(6116002)(8656003)(42882006)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3096; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 23:JTk4B2eUiR/8Smnr9Ddo8QO4Le65xeadhiuUTXJIN?= =?us-ascii?Q?LdlVjesdVEC5RvlyAKBR+Q0QMoTXt2DsO1wdtl/ecLE6GgvWDXsstq7dtwrV?= =?us-ascii?Q?w/aDcTJGSxBSnufN/PHiCkX/lyV+MtE0Q8J2JAk8lWCiq8/L+64C3topwf5k?= =?us-ascii?Q?tG5t/VkGgCG4pNGgnh4pN0LzmSJCIatr+k+cl2PBIy91gjp+DXySXOiKgZD3?= =?us-ascii?Q?BYr4omz1/68JKPlBjBCalZqRPn1OKy1yxyTrXyPlawFKNkhOpELYHk7lCzHV?= =?us-ascii?Q?m859s5RXwPWcj9f9CB91sniKbP8bIU8Y531zBg3rxyUhx6gYUNWDWoEDp1uN?= =?us-ascii?Q?gUZ4t6yEjLdpCqBzSqyw/uENi96w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us-ascii?Q?PkTyvldCFmLnNT2nz5ZWko8H65SSUvYH/ZPFAyWg1tc3En5hiMK5h0dr28x2?= =?us-ascii?B?dz09?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR07MB3096; 6:b17SBPHhUIlpvov681Zf4hBrhmCP51DH9I+SXrPmf1?= =?us-ascii?Q?6BRDI6jD3ZhgRHiiJC3u5iFng6laqwqjBjGRuT31n/77RXm44Q7/45T7Y9UB?= =?us-ascii?Q?RwELquCWpa3QNmddxRVWEGfVig/EHH2lzMTW+sE/0kkUbe6l+LjBruc/bPGr?= =?us-ascii?Q?KJyD23glCjLl3ol8r1RfRbwWzj26/c0UTPGWNMoDBGWH4oBCqW4hSEnaZylx?= =?us-ascii?Q?I/yx5pdP3/MhhppeywkOP8H2KzHFScn1W0RndZAfowV8CuYTme4fLWfIjhfx?= =?us-ascii?Q?UCjgiW8BXdaOdjMs5JePPX2tPp0DnzulplWhvjVMS99rKz3ZR4QddCUhz3h4?= =?us-ascii?Q?3c8Vdvaa+msWb+p7jf4PvVih4G28clylm3v4vDVZLEW6GkoBa5C3M7p47rAY?= =?us-ascii?Q?y6LYrZBdgBlO9F8+6ZZ85Vkn0+eOaE53ul1RXIp32/LoDiKIHPmHGXRjQw+6?= =?us-ascii?Q?vkQoRCx8FHQ48bBo4qB/1tWlOkC8GCSKUM/pJEyrEdUfwlNp2sbGLv4GGz0J?= =?us-ascii?Q?Si+MH0IUhw21M773T1q8/P5abdcsPdv9L2LYyTVNxK6fMsfka+LV+cEZBlTq?= =?us-ascii?Q?HjNaZOdMVzbuoyKNd3YYKBgrcJ6PWcWwy2OP/c5r+OeFNLF/0aMGKeWG8E/B?= =?us-ascii?Q?QRyVSTinfsEniLs3W1K12Z6PsmXcx8x7BE0RbKHloevKv94EQSqG02VP1KvK?= =?us-ascii?Q?pCPvIlaNxMzah4ky74Qs0ccwURczruUx8zU/gFUBgcew99y9EYWgmtHxn/ni?= =?us-ascii?Q?FpHzXeVKj3Gx9aHiZcIVCa7A3g4QGgwPPIwr/V67xahHthi3Zlg9giN5PHEG?= =?us-ascii?Q?QaEqF1/M45gXTKkE2840AHC240ja+scsekWNUhQ/m81ipxbYzgDm3sqES+QA?= =?us-ascii?Q?/IquML+KodbggSllCFkl7+/IZwtdUTA+IBsjyhYatgoSEVz2THbYUhhe5QlL?= =?us-ascii?Q?RgrZuhfCpX/HSl39BaDkq5ioLGbuK12hrDltsUxFTxQZ0WfprdXRJE+ksHAJ?= =?us-ascii?Q?0=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 5:Z+abz1udKHyTaOi4f2mnptum1YyfitZb4JTqjlelXdl30x5/jxZy1HJ/M4D+jZ8qAExLSIuUabl5WSLZcMFA9yiaHeJAos/pIs/PZ/pJYl2crfo+6jRpVDIyOVIR8Nz7NRCctl9O3CIHlYbrwCLiHYe8UEiDxgl7JYeioTEZGVqLnyMmU1TZ5gSEtlTg3NbetU9lk570e6CIYNW69SQ/rxpCZ/ycOGKD9G3THk20Ia6joBzEipXDHV48muZqVU5XnVMnpME2VN5A5lvvaiWq2QeQprwJ6zqT55YmMf6W7iD3yfmCEqkutOEKUhGwqGQ6RG+IYJct8OWPV5rTE4ZldAkps6et7VjI0Ftxu+JIa7FU6ob5Q6AZdepq4udPnphWeierBuimvUcNIGiprckwV+3XnKihjYorAIBCPGapwF7XFsoAlfMvOlUwb9Wb5ID0jipqYUrC5jyJadYSVI7BxLSM3EiWLzSg96wBUjKZX+GRFth96Cp8/bGUx0+kScGl; 24:mg9lGzym4Q6cCDDOqskckoHeZxC5obUG6d7SlL8ROy0nBAZBkqtRbQuu2ogqqxOJ6aFBdozGPyn3GLmPj3FvipTNO/X3DeXLtCiKOWNwgfA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3096; 7:d8xPKFNUt2a7Z/IWoZ7zK3TolKhzoX+LwG8tcOVqFemaGOogLJ1mOfkjVSfRjxdQ/RDDYCM1obiV3iXeKrt6L1/AWNcWN4MrVTa6CUTIe+0rBWW0ARQcmu1r20mt1IuljL8BmOupRoQNR3+f6x60vrvTmQ9dDSTev/rDgpmJHGGYA7w7MeGjTLTnCZzE1JJZtoDZCqTBFMEcfdVrOwBxSQSrsw/VmX5IMJOXVvZnzE6LihIPtAqwEklXtIMDXz6L5b2hoF3T5/+rJq983FImmA8yBt5M/eYCL0oJGPzavpW0T/YQWARL1bMzCTFgtumreAuDc/dERIR7IeV4fLMZffNy0leGzdmaVJOOb8RRpsyfcipFd4jkVLZuKJEmoE/urpBHMjTZ3q8C/0mB7VJCgB4FNkP8hWO9smGcLHTQFQi7GbZIPrYXPg6jjL63qGy8KVUMsPJ7xCqxePpZ6h+qtOGRWvpTWXApUvSK2SNqAgBUIvumABfDcnGgpjZbs29++wRTlO5S8HGrXhvPGecXDDc/9H21KNJOB00eueA1Jc4B65VI43de1hzwvinJrKdCvf3fATmknDMaj8XB3BYPKXLq/Itti2WHaj3BCssiUKFzqAp/nxvJSJNHJvKEuJURD5ckoGB8wekKBj3nEpgbFdFM4TU5zNMtwyEn/LfesenYV1AojOD1aVt4zCG9GYg6L2d5GoZbMwZx7f8D8WVqVHyMO+ma/nLX2Ttnu4shrfgZG3Q34GK3MqXWQCNfDCyXkeqRHzwa/aQ9MAxGRchTTRuk81Hy7MVQbJuYJhkPFRs= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jul 2017 06:00:42.2355 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3096 Subject: [dpdk-dev] [PATCH v4 03/12] eal/pci: get iommu class 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, 18 Jul 2017 06:00:49 -0000 Introducing rte_pci_get_iommu_class API which helps to get iommu class of PCI device on the bus and returns preferred iova mapping mode for PCI bus. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob --- v3 --> v4: - Created a separate patch per suggestion from Maxime. Initially thought to squash patch into [01/12] but then [01/12] will have more context so decided to keep it as separate patch. lib/librte_eal/common/include/rte_bus.h | 10 ++++++++++ lib/librte_eal/common/include/rte_pci.h | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h index af9f0e13f..e06084253 100644 --- a/lib/librte_eal/common/include/rte_bus.h +++ b/lib/librte_eal/common/include/rte_bus.h @@ -55,6 +55,16 @@ extern "C" { /** Double linked list of buses */ TAILQ_HEAD(rte_bus_list, rte_bus); + +/** + * IOVA mapping mode. + */ +enum rte_iova_mode { + RTE_IOVA_DC = 0, /* Don't care mode */ + RTE_IOVA_PA = (1 << 0), + RTE_IOVA_VA = (1 << 1) +}; + /** * Bus specific scan for devices attached on the bus. * For each bus object, the scan would be responsible for finding devices and diff --git a/lib/librte_eal/common/include/rte_pci.h b/lib/librte_eal/common/include/rte_pci.h index 47f0532e4..a67d77f22 100644 --- a/lib/librte_eal/common/include/rte_pci.h +++ b/lib/librte_eal/common/include/rte_pci.h @@ -383,6 +383,17 @@ int rte_pci_match(const struct rte_pci_driver *pci_drv, const struct rte_pci_device *pci_dev); + +/** + * Get iommu class of PCI devices on the bus. + * And return their preferred iova mapping mode. + * + * @return + * - enum rte_iova_mode. + */ +enum rte_iova_mode +rte_pci_get_iommu_class(void); + /** * Map the PCI device resources in user space virtual memory address * -- 2.11.0