From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0071.outbound.protection.outlook.com [104.47.33.71]) by dpdk.org (Postfix) with ESMTP id C35F27CAF for ; Mon, 24 Jul 2017 10:42:15 +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=9d7Ojfhn/wLq5/rjHRdZIwY93KdJI6nhGo3pm3eAuVQ=; b=csspDg58hXQrEkQ2GSB9EcOq1PLCztZixkjvMtJGk/Xla4trA4pQ8U+bvprdFbmxEXw2EsOFOcE2GP46ozl2s7F2+ttUjvSTDZzV02ZPjrBYwtjtp9qWs9E39G/z1Zh6hslKgNZcmmqThGu4QEbMbviOYOJiDaZciT6fpdK4ELc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from localhost.localdomain (223.180.24.9) by DM5PR07MB3097.namprd07.prod.outlook.com (10.172.85.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1282.10; Mon, 24 Jul 2017 08:42:10 +0000 From: Santosh Shukla To: thomas@monjalon.net, dev@dpdk.org Cc: hemant.agrawal@nxp.com, bruce.richardson@intel.com, jerin.jacob@caviumnetworks.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: Mon, 24 Jul 2017 14:09:55 +0530 Message-Id: <20170724084004.25542-4-santosh.shukla@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170724084004.25542-1-santosh.shukla@caviumnetworks.com> References: <20170718055950.10208-1-santosh.shukla@caviumnetworks.com> <20170724084004.25542-1-santosh.shukla@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [223.180.24.9] X-ClientProxiedBy: SG2PR06CA0085.apcprd06.prod.outlook.com (10.170.138.11) To DM5PR07MB3097.namprd07.prod.outlook.com (10.172.85.7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09ba8941-e1f1-4064-f232-08d4d26fe2cb 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:DM5PR07MB3097; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3097; 3:DOkO1bKzp/3Ixj5ku7elMLGMNQ1xX9vsr+vdSCt8B2LMAncEJYmXs4s72i5tSr83qgvcSqDE6VNdwnd4y9P6LSsq8o52MjdQT8KSvLh87L9eBwcBn1HpMQ2yrSFwhmx1wmnQB4CdVJ2L9vUaX9N2v/01sL02c+6dsREMaH6dYsgHIPI7ENGBeDiOd7AtTZ3fZm2c5OEXlqVbv1CHQPyE4/Jvd2PHqtanRsJMe19kO+bLkNQS1XaAsPuxvsnX+AXk2T/RmsZ1vwNKr32DgNcPYap/FO8GFKrggegfJJSgSWLn8vTP6BhHXgniizHHt9HZKwyRhnXbA5HlikP0QILozaMWKPRmrh3OI80nkSbt7FHogCv8fIHFhgzPsMnylPO2Bz6BZFCiBTfHYaOVyTYcn9sM68KQ8fofQCs5K+wWd6TACU/rdmx835D7cqaMsZNh0cyalbljejT2sWSELNZsNOOJ3g97rCalzFhyiywCoB8+QqKGsxUnTa5XVjbRL0i1ATXbxkDdEe7imaI4BONtqD91Gy+hrn+aU7pV+QU7lkhozRI5l7UkGxv2IQqVTIIVo07XL8vQpUpItyoaOLTZRpl33D02ZR4cE/KBE1yp4RSv/6Aj5YPv07FstbLboRBChJIKnKHDcGjwPLY0gKM7Wq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xC2rR6BAXLWvJMJ2AxnkMqDsJbxlEEs1E4Pp0RXP1OeWo7KyGqkbnKXOo+DWULs+hCXXkXVYPyqpeu9/ip2yWeWo7KlbebgUhlgMrtgxTlC/DEdheIrYGH2e53rCZM7fdyQteA+LL2BV4ilszZfu6CCyHfOpxblYYDx2qpo3N3WjgM7elF9k5p4DuXrLyJamkVMP/gjcuCtK60dhlnVbwBuKxgMXoDcotbIQy7YMdEhOAol6M6yOBwF2ydm+TugyUUqeGWG7uvyOK4CHLPUv3AjkIsNU15oFLr6vSPZQRf0VI49bDGBh1Q= X-Exchange-Antispam-Report-Test: UriScan:; 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)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3097; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3097; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3097; 4:IHDtKakFSfS93vT63IK1FBjdvPYZdNZVdbe3q1H0Qe?= =?us-ascii?Q?pXaykU5BPy4F1IxxCB9B1TZh9bJ9G8OSqiLZ6OS5tu8iRswPm740S+4WT+X8?= =?us-ascii?Q?3vCuupvQiOb5Z2MSpIgQPpQBxPb9sdao2P9X+dloywxCv+jUmkjw4bXlus6c?= =?us-ascii?Q?+xaqnaXTRt3cfR7QtxlpC8VXAhLQOkT7samQ8PC+AsJEY+WU6oIXZkBR4KeS?= =?us-ascii?Q?E8YJq3aFRqTXVBAt358KkVwabOVO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++oOF9nY=3D?= X-Forefront-PRVS: 0378F1E47A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(6009001)(6069001)(39850400002)(39400400002)(39410400002)(39840400002)(39450400003)(189002)(199003)(47776003)(6116002)(38730400002)(42186005)(2950100002)(72206003)(36756003)(42882006)(5660300001)(6666003)(3846002)(4326008)(68736007)(110136004)(107886003)(2906002)(478600001)(5003940100001)(6486002)(33646002)(81156014)(8676002)(81166006)(97736004)(106356001)(1076002)(5890100001)(8656003)(53936002)(6506006)(66066001)(6512007)(7350300001)(189998001)(101416001)(7736002)(7416002)(50466002)(50986999)(50226002)(76176999)(105586002)(25786009)(305945005)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3097; 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; DM5PR07MB3097; 23:4aEqO4TqgcMamuhPNmXccchTNqT68UJFdkPxOosr8?= =?us-ascii?Q?KrnmZ+4hbueXN5pj4P7ZeC0boOneM6X4F78kI2JlaitF/xo2AmABO4vFNrYE?= =?us-ascii?Q?/0tF4XzP/dW86Sps7cl0EMUDgeoCrhpNwxxzj0BGZQXX9nRi737QpOi+8INh?= =?us-ascii?Q?8lBiNH+hjw6x7njYqrYnCeNT60k6Jmku3SkVaH9pchjLF8ZjNq9mIvXCPECK?= =?us-ascii?Q?5PyXT5NA8sfxcTXlErjRcwBGrjqqJaZn8+yJ9bR6PJHffEKGb7kA/t/0+CeD?= =?us-ascii?Q?7h+QAdSXQMAaz0YYvlA0+Xk5UJ+ketnqzr+Gu7I5oea3lxp666s6mbFoExTq?= =?us-ascii?Q?xXJYlXBJaekZ9pwwA7rAa42L/HBaVWxe8EivfUW9FDMIyn27yPBW6XYvXkFG?= =?us-ascii?Q?82rhsn6HNFKw/nv91E8SwRS40AvDls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?2FI446o0+U0XchadA8+rtneaMkfWC5xmFutFP2xfBca7FC1jcgdozKDk96Cs?= =?us-ascii?Q?pACejeBv/ZSSMu7Uu4gg3zrxlY=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR07MB3097; 6:cK800IfqQ2yp0jl54gITe3g00NqHAVQSCbF/brlr67?= =?us-ascii?Q?ypPk1/s6TSoYmKaYh4mXAnrY49CWr/OJlLHTczib+7P4+r87yPn7suhEof8I?= =?us-ascii?Q?Ru1uy0sNyE8pKLZNn+2lo05UwRAyk3g7moVCw/087L7ZGIHreLaR2lY86g1W?= =?us-ascii?Q?8pNZD8NA/BSOY+VKjZDZujg8lpQKEWd8flOpT7zBYcaq2nJHzrCeDXP84jYE?= =?us-ascii?Q?KPazrjQNxvl38Uz0hfWXMcVSbCwQ4lseDh4WuAM3YOLvFuYciMICFMaCScdw?= =?us-ascii?Q?xc/kObObqLFH3QHTg8CK9PJPFY2E8ZHVW7/2hYJ/622qh3ygQaQqbDAiyNB5?= =?us-ascii?Q?xuC9/c6FyPMTiblCMJJCLkVrNJ9UIsa+pidUGmy4JXQUgoCwaxKKO5u2g2xV?= =?us-ascii?Q?b7GE9thRc5MAwEAT2i87in/xq/VmxnYZIg2HG6ie7qdcJQ2X237mh9WLqh1P?= =?us-ascii?Q?n74Cq26P7PzMKiwRRG6DsBbrBPF3dAKWZh102Ftkm/hJda47m4eb+AwSKwqP?= =?us-ascii?Q?btB0T/opMqObNXQNK7hr8cnTDDzrAGVzlT/aVl/Z0rdyUHKDYOcS+j0C4FAM?= =?us-ascii?Q?TAeae96ty0EJ0DuVhTLkT/qD0lVyW/CAGodBTgiiaBdT814pmCjmrLwRrnue?= =?us-ascii?Q?FNYwQjbPZTRqEFCFvirOHktvp+DtBUOpGtHY1pjbyYttNW5wCAkvtGE7flcT?= =?us-ascii?Q?0gUa4nYCJnFdghLz0WpVg+Dsis4UltW0JJzgNw8DDE7WGElSu5OfPTGBYlEw?= =?us-ascii?Q?a5VfFE6QMZeYMWUyrPDW848qh74+tCZ9Nv3OUvNU1j4YSlQdbdFhSUzXlmjH?= =?us-ascii?Q?LXceQFaktf5S5mNVZlkgslXtTL1yI5o+nSUgpgjmCBwEw0Kedl5VBcN8npjQ?= =?us-ascii?Q?66z2OlXxes7Pq6xpDuHE0XCSE29kki9F5Ard77hh40pnIqTKJav2CVvILaps?= =?us-ascii?Q?bExGZwgrQ39agsz9gXJCLb8fQBS+83I3Rc8KUFdQUIvEdUBdeC751LPu+rkm?= =?us-ascii?Q?Y=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3097; 5:aQd95WynW4Qv8YfRkpc0d+bEusIM5POiEsgME2F10CIyxG/jh819oHK9M5I76S4/KzbEH490Gc6K38LzRCM50v9EK7061awXdixbY5TcnHxJ0thb1mVBjTd0p7vQ1Eh3Qjf0GrOedPEvbShsbLfcdbPzjKNXkClAofisqOjz7hIqgp2tsFQRgPg2Mp8NA4zb8zLumYRQqznA9QnY5vlUkmHDeC4YaF2tz/s3rsNZCeeVD2Ev09Hvrin62G3JtfxA3ijNGy4SBhaAZK5iW1dekRHQdWcH1SPziOf3cHmHfS3dVKf9MjGHmhVV/p/DxJon52kU0564M/ozzDWYFew91MJTaVVq4i9DS60O24diFjPkI7e+ScfdTzp3tJo0r+RNmLVPyzZhwwuhj+Ig7CDdaRtGMg49PNtQ8jRcdLkOO9ip+QC+mxnQBrhNmu5sd5U63lFBneF6FST8e4UXM2V2/fWKRAx028XUeXQ/n4EsrqHMlaBEGS5dGi+tCmSiSxrJ; 24:wJm8xBmqp5UrQvtVBe0v+e05b0av9hgwn0ARkMhaVElgwRM3pJjzaiAC7M+yWt3P2MkuRJS8f1hVfvLUDTmLz9t9YdFEJDwfpYTFywgGCNQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3097; 7:f+GyPgzttfusQl0qOlabA6Qkf5ywEqKTQ0RGqXvmtV45uEpXG13FLgtpyNvi25E2kAyDLpwX4Ckp8e5Hj2JgTQGofN1KHdD+u12TyNjZPUtLPJ8ANv9DfLD9MgJvIwGpaK6E5YxcahEUNNkUE1FHJPl8GaR0k1+T/ROrcs9DPHPNzkpSHO1NUurasI09wzbrMW5DresgGMjBOHXXmu/2+ElaiWfg55AlLzK7DxRxkegrUdmg7xij0iEDa/SBsDIqysn+MsqouE8a4MnQVt5ioCocMb9GO++fh2NzRyN6vsQZLZeOkMWzOqjaVD/GSPdQtKBWx4R9MCHVv6QgIrr//S50x1Ccac8YyT7lF16VGGvAERaQBd9mvcrxxOJKaWsMipzIR0d4jiOFEXYSMH9bMSmQ/smF8UpBJNV64syA3gneZJ7+PSztAQtDSwytqCqfFEoWULxsW5JstocLk383yYYu/YEAgLZV18nkkrwHYxqtfVpJ9Sr0CFYBgoNz07RfJDZYDDF08GVhRPEVipv1VHGhPUcerVESAO4KW33rE7JI430sKw3k1Z2lBseSKjvTfaWjFvNweq+mbMMcAD33UrDN6RTkQUekVbLqfzQUnNLydOFZ1mRhpICh15CP7bf/k+tKoLiSpdO7RG5e3SxEmhDAZNTWX9KhLIk2FGfsAF99wiwMO/0x2MT/mIm07O0KuU8+YmfykZOUU27nxf+HDILhDLmlb65atcsEw2jtTWjgojsfkcgJ2ZGJQ2WqxCg3GLfBFMk7G3KeGi04oNs2+foIDHENrWJuT9RALzx4U2c= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jul 2017 08:42:10.7882 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3097 Subject: [dpdk-dev] [PATCH v5 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: Mon, 24 Jul 2017 08:42:16 -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 Reviewed-by: Maxime Coquelin --- 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 c79368d3c..9e40687e5 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