From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0061.outbound.protection.outlook.com [104.47.32.61]) by dpdk.org (Postfix) with ESMTP id 436F95699 for ; Fri, 14 Jul 2017 10:07:54 +0200 (CEST) Received: from BN6PR03CA0086.namprd03.prod.outlook.com (10.164.122.152) by BN1PR0301MB0596.namprd03.prod.outlook.com (10.160.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.13; Fri, 14 Jul 2017 08:07:52 +0000 Received: from BY2FFO11FD008.protection.gbl (2a01:111:f400:7c0c::112) by BN6PR03CA0086.outlook.office365.com (2603:10b6:405:6f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13 via Frontend Transport; Fri, 14 Jul 2017 08:07:52 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; 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 BY2FFO11FD008.mail.protection.outlook.com (10.1.14.159) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1240.9 via Frontend Transport; Fri, 14 Jul 2017 08:07:51 +0000 Received: from [127.0.0.1] (B10814-12.ap.freescale.net [10.232.133.65]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v6E87fcR007176; Fri, 14 Jul 2017 01:07:47 -0700 To: Santosh Shukla , , References: <20170710114235.18970-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-6-santosh.shukla@caviumnetworks.com> CC: , , , , , , , , From: Hemant Agrawal Message-ID: Date: Fri, 14 Jul 2017 13:37:41 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170711061631.5018-6-santosh.shukla@caviumnetworks.com> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131444932719934409; (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)(39450400003)(39380400002)(39850400002)(39410400002)(39400400002)(39860400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(24454002)(377454003)(9170700003)(50466002)(86362001)(575784001)(356003)(120886001)(68736007)(53546010)(498600001)(7416002)(4001350100001)(54356999)(50986999)(76176999)(31686004)(64126003)(7126002)(8676002)(7246003)(65826007)(83506001)(85426001)(5890100001)(31696002)(81166006)(305945005)(36756003)(230700001)(5660300001)(8936002)(2906002)(23746002)(229853002)(6666003)(106466001)(2950100002)(77096006)(33646002)(2201001)(104016004)(626005)(65806001)(65956001)(47776003)(54906002)(4326008)(105606002)(189998001)(38730400002)(8656002)(6246003)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0596; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD008; 1:KVfrFMubaPyphNCMTpzRqENMY84+XHEwAuoIp5sTXGcdlf77M+hCI19eNchgWI1gYQ5LU9MxAVlAAL2GWxl4RHU/80q57GvJLpznW5y4nXbmLexu3BOD3gj6mO2OlMsdux18osu6dv/QLiVCMkoFNbB+YhwY14Mq057Rxl5u6mZog5pfwI6myVyBnNkaRS/wrobG+CUR56JNAkBFkUdtuT8S9SF28igq42C9bghpVf/6pqEkGVPIbt01kqi7sipZuYYLTSNfZ6FJqcWZiWEyQPDhoJPKKc/DWM5lvXCMw7Nr1wx2HsE9ehx9T1X/I+ctYSV/H81sv9lBOl3PW5xgG4tSpvxt3TuEEYZhSRni4btxeMRXBj7qoW/lXZTNn0BUX5sN2lxFgjxpGLe6qenjhczq9Yn6LV+zyaO9w0n9yuBI5T3rylN5uUuTRRwgf258FZkjiXVih84VMSfnW6HG4Sf+/BbP3Ty0np25la/lfj3Rpnc3bl6V0VGj+htmiBchlQkXzqLA3Vj5nPah4z2LF+RslCNT0sekGiNFIQTLxJ47rKC12rah6G89eqd0IhSYhtvjifX+LpRAYSOUqzZURi1xjUMeaLfnkY8DiIDiwjaufx4EWEzD7W1wn6CoYNuoTcBva/IkKgTkvAHRxyftacz3lS6leWSy8AIIKBfrKsyq4C4H6egvuj6a+OX2eG64d7FF5MTSb+lZGCLvVe/VTF5d6KV5uosHGiYHxjqShyiOygP3kN8Rr4OsPuFb6lWRd6WyCJ/D/oyZ7xfEjp5TUAB11sDyh1z7kU1uarNdPuDRRcGNQxcfOBc0pv0W8h+omAGREExRcHSyURt/+qYX6HH+pVKOTd8NjHoGo2XalpcbCkpWEnBhVJLzdXjHdP4uNTlghWEqWKr35uPNXj5Eiy8PKv7jwNllNQNMls7aY48= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d50c39b5-8991-4014-5222-08d4ca8f6cb2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN1PR0301MB0596; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0596; 3:j/Na0Oq1EJ2bTjhA4gKHi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3v4dttTHWYZ0vMGy/G6AmnglOL4odfEhgkPc/kPicqkvSUy6fq8wuAz1W74lOJIK5cTRPyrCh9IRxAVjGqoIl0DyZqWa6wzySF42jCy2BpbyEMxsh0oBPaQV+0f9gOTGCvRPpRhwifqEdTp15PzrihN7AeS3qjVZVzsstG0QtzhQo6UcB4dRHQrtuztJKAWLgPUdr1CA7RRu74HmwSAmQxk9GGrP4cFm28KwqCrfWsdByUDwF5zroZGa1ClPouZuJlbGz7a33AxFs+FxwKBw/5DZ+F7U83wZsfNVISe2LDJd25kinUPKJ9XkabSWGGJVLdkG16CivB1JINGGxdL5kYLX3igK1UJGX8GvLy7RbE6Czz1I88x8UTqbZUXAWd0KoEp9jcetl8EfpdHGpLlc0pqZFofqa0vlQYKt185QbkUukPN6tc2FKqqZadA+3zOpeS22E/j2Vroc/L5Nbkyur4EajbLfGFE51ataiGGVvIh6fxKgLFgKWIiX1/xhU4pMF3XSur29Ng== X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(2017060910075)(13018025)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123559100)(20161123565025)(20161123561025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR0301MB0596; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR0301MB0596; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN1PR0301MB0596; 4:fzljcd4F2rpWFlzQId3STuVonEuJsFKZLEkl?= =?Windows-1252?Q?3jFwps0+t1Botl5c68xpvmpq1+Di2XL1LCmIMXT1r1CzGw0VF/Y5CO1/?= =?Windows-1252?Q?l1oB0+g7M8Wnty9sRf4bfEl0B/7cSyWAvZXl+ca+XV5f8yJYi1r+0E+e?= =?Windows-1252?Q?Lqw1INbOIjkPanZNRZYWHBb2yrM8hl4E/4xUR2+sKJyeTLvrkXCS2byx?= =?Windows-1252?Q?hJeu8Zyy/lIa7hB07ki6hRPEQ456LMbkt56yrlln6B03AgZUbBZKGrMV?= =?Windows-1252?Q?7ZLYuERANYM5cLggBxJu0ErOC5P4p2p4Z/kPQXlo9MPQ3TIAYkCiEaK7?= =?Windows-1252?Q?XydY7hnEWaNmKHcHaz4Ql5HMRXZQvEVPPGeMNIda+dkSrXM23sI8UKjD?= =?Windows-1252?Q?OMOVKV03gKxkL8DxTiRiCYIfzooq0I3AlqckD4SlmUY+27QiaK+3a4Fw?= =?Windows-1252?Q?0aMdvx0QCN1hVZKgScK4vov9z67+KPBw5ySAKGyq+e5nPvFDLsuMGetj?= =?Windows-1252?Q?a5z3NKljp95in0bOWfUe+y6nljRu2Dg8RxPBupyvFtCfHtP84fLsukAZ?= =?Windows-1252?Q?81s6xeCsH/exwYS0QuimmxAaajsRxr7eAad4/77JANLKIlJVUke+ldUt?= =?Windows-1252?Q?GDyMk7abQDXao4vghBfsaNhPC8ZNuWQ4vVafsSD5wUgCHEu77TFXYAHk?= =?Windows-1252?Q?eRoU37mZ3x4SNSaJPvZ1LPqRw9EeS5dGNF80si5Gs4ia6A7ApoxBGo3Z?= =?Windows-1252?Q?5pTmryxesGKLeZTcP2VPWIoMaxUPBbJbpCEL2sUlSMR0H9arnRbQT+PY?= =?Windows-1252?Q?IruCxlTZ2A0fBYbDrhwwseXkOC21NVi6+q5r5lba2e6SpCSezfRc1s7w?= =?Windows-1252?Q?Ipoh6RBH6CTg5OQwKlqDFJmAafeaaF9OqjpbY/Ga8k4Fss7qtqe6UDtd?= =?Windows-1252?Q?3UkUqlW1xnNka69/CWXAjKkv1XFlwydqSwsKxS+NWwrx+nPvolAUmkk5?= =?Windows-1252?Q?ybYZbKJwtmmR4lpXSDTw4nYegw82GVxXXgUjYceqbDqcq4Q7yHH+/ruj?= =?Windows-1252?Q?XoPQr73RtiFju63IzZmUtcAUcoY7bQv80as/eZ4QK0/RkhDu9oiVM858?= =?Windows-1252?Q?mUbd2j2A8n1Hml3Oih+1VvYCV8zh9wCOUk9nXK1M8gF1i4EpzALpgb9D?= =?Windows-1252?Q?+cB7Hwo2x9kh9C7SMWrHbR1PciKBiZvt7YTuCfIvr1NMFr4Ch98uLA7g?= =?Windows-1252?Q?b8idXvTs9zDdP4xTP6G14qnI2tQMJVKM1XSepGPjqg1jhJRnIIGiJHLd?= =?Windows-1252?Q?hpDTnnDa8WWukK7I2vm6S5bLpN7alXX9gJkJ7Xoxz9b/EYK+gQVBpAnQ?= =?Windows-1252?Q?ohAP+b9y4o096cdkczkWXEelCrcSS9/2XdZon5CMKkHxi7eawYOzIfyy?= =?Windows-1252?Q?AxmpkdMQaUuC7oEHvwTK?= X-Forefront-PRVS: 0368E78B5B X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN1PR0301MB0596; 23:lguGm0Lvtl3c3sgeAPZuPI1qERMwuaaAo2/?= =?Windows-1252?Q?fO1R+q61I6r/96Ewm7PvlZvEWmodEGjMUjh8eXp7S1umzw/RSKAfm2Fn?= =?Windows-1252?Q?20wd3VKDirouaxxQcDfrdxRfa8uY995H8Liecn3Uj49Jftj1Ew1MPZmG?= =?Windows-1252?Q?IyvoOaASsJvTqAnaSF4aFtMnxtT9a5Z36eXV49PlaCg5ClJkuS315jEH?= =?Windows-1252?Q?l0V8XIDRGeQaTVuhCRFyx4W0Bp61i0l21989QCC1l6lOca9HsWu+a7jx?= =?Windows-1252?Q?fyKupD+TzjZM2JOaPBUd2awozXW4sPA7+ZT5LABndmQ/zlO7bvPbPvkK?= =?Windows-1252?Q?jQFMjn5mi6yVjVXTVMX6s8rSNwnZy4H7pHv42JcfddzzMG4Lo0+I1pFb?= =?Windows-1252?Q?pQYNJyVWFfcqYwpZVBul+RqTzAR8+kNOu48HyTYfgjNhsDZHok6FpLsS?= =?Windows-1252?Q?8IlrZShodzWsztClo/942cNWt77Q9+j6sDGfSHzGurFs/HCbUIV9Xuzm?= =?Windows-1252?Q?K+EWMbLJtYJuoP4gZAZuSfCdr69detM5bEJ3BlPWFljYXjEpKW0YYCGk?= =?Windows-1252?Q?HD5+kbeOeofmRU/MJ4/2eqschgKThMglIAQkulEVt/FnkOJqS2Q/1CRy?= =?Windows-1252?Q?RxC1CgZ2m9n/hKtILngX7ab6c3T8JxM6SDJZ7TMrjsyzS+Xrt3SNdYay?= =?Windows-1252?Q?JBMExWRSeDDyoUw4DAC/tkSrlDcVL/wP2+4zK/3gugrc4Yhyk1PcXyaw?= =?Windows-1252?Q?8nZQZ5BOlUxjAxVcrBPVC24VqBOIyYYXmgwIpC0JRHGxYdA4w8jB6Hrt?= =?Windows-1252?Q?bY70e7qnLU3nuggLvhPYTX5klkDpBtSTksIftSccj2FEyfaHOw3boNAB?= =?Windows-1252?Q?T99GcV8dbQDch7+4Vi0i588wYQ2J335AopwZ/U3D9mx4/KDKClaPDJ4I?= =?Windows-1252?Q?EkoiWH6fRgtng9twPZTtgtos+eM5lej/TU45wLcGJvtUD3411F0ZpVlE?= =?Windows-1252?Q?vl0FrToULOzdTVluNb4wL/gSWfsZT+T+4nXw4IIYvCemS5T7Pla11KRV?= =?Windows-1252?Q?HfJ06DCOxBlIkAMOMBd5gfirjC/Q0GlBfIeRWqleXuYmKsBpWHWVpY9Z?= =?Windows-1252?Q?ZxDFeydWV0VpnAfR5+SUQl0MjFWTfpfJbJ8l64G6rrEEQE7Bd7ST0FOL?= =?Windows-1252?Q?aPCKDowAuMDweX83ZFz5Hb7FtF7qn3HXvN4MsHj/9FJ1k2OK2tCEhI9A?= =?Windows-1252?Q?OIXSLtosPguxPblu4+ff0Qu7VDovE+AKj517vJMTPqC2bxBzZMPrCgsu?= =?Windows-1252?Q?dp8k2EPNcypngItAdYHShqAR7HqASVfzL60XPurkd7StHf/K+yqI2uf9?= =?Windows-1252?Q?BeKYOsAVAssBnCXnNAL1SaNbhogKd+VcLGVvBGGWIgWnsbE9ffJUR2aX?= =?Windows-1252?Q?aj04HorA5lKebnrnfleZFmFeFooiqf5cgzWtNlJB3N1dPRnoRCAynX1Q?= =?Windows-1252?Q?bInK/ayRduzaiOk4lU2SzBLvX8aQjQCSlA10ZOD/UtohLdwbnxbF8CqS?= =?Windows-1252?Q?X97lzYHrA+/EwLluE0p1Msnjie6KqSuuWesoeo8KhDaqQ7a9YD2198xg?= =?Windows-1252?Q?qhUc4sWT+ZC5ppfNVO/nRWQaTA5tYWQrCJ2hw6I2EHv9PYOrXGihp0w0?= =?Windows-1252?Q?C004XUv8kFa9psK9x5szpZR2haBLjGF0yXyFmb6/bo4VaG33dA9/qdu1?= =?Windows-1252?Q?TXlHi2GPHHP6hHAAP5Ef8CD1VR/8OfENltVkLQ82GPAjuX2ovJti42eM?= =?Windows-1252?Q?PAsbP?= X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN1PR0301MB0596; 6:9acJ4iHCUhO5JnfUlYV2eFr4KCSCOgfN7DJ7?= =?Windows-1252?Q?Col6YARp3M3oCuOoJ+QuhHgsqL8N5EerytivoBzCE3omuS2hbFAU29/5?= =?Windows-1252?Q?QyodeJEkc9uUjSGrNx/nPvRtsm2SoMJXBiQl+TBwNtyyoIgvqyg1fmJi?= =?Windows-1252?Q?b9RPRmBu85paYoIz9n/sHwuM1HuQyGe9LSpbADVcOqSsxwEwhqYONL97?= =?Windows-1252?Q?9Y+TjEBk/WJw1zqYTB+MwajS+SSkTljfAoJSYdJ+ewCfPzdeRTrY3ejV?= =?Windows-1252?Q?Sht+qaWwiD2v6nW50V/SkGZ1N7NemY/0Nj0d0FnPdf4jDG/oy5eelsV9?= =?Windows-1252?Q?EP4WR3vTdkTnQe65AF4XyBskwJ60dehLTSz5qaEJHVV5licGf43E5ujY?= =?Windows-1252?Q?xFo/q8mGi9v4w8cItXQ/nbi8KMudBrHDHXXp7jCQUdxTCUCb7/VNRjQt?= =?Windows-1252?Q?uC8YhbjT8WO1wSnHr+/OBdU7NZ6KVKbLPTjH9jXH7WhvCnqg1rERFO/a?= =?Windows-1252?Q?0ADn82lVa8MiMDma0zZJq4r/eWyS4mw4xfdx7urtwSeD/dgYRYHoyhis?= =?Windows-1252?Q?51MsvnwYEFFbUTyz3neo4BH+l39PJ8L45YUrKEWAQM4ZEV8aYoA+9uUW?= =?Windows-1252?Q?igRev8tfCyji8I24YmnUmkXlC0bL5frZFUm0T9MnIxtOd1an3vHY9d8C?= =?Windows-1252?Q?n/FgUAk5TwVrJ3jvUrrLt4vVJpfsdlZKhjqQUjv1IRM0APx6dbAmeFmf?= =?Windows-1252?Q?1Ww67zTbOD0q4vThSjYbb8t/wGS2LQemKhaNgSHZ1m+u8gcxX3sUtsuE?= =?Windows-1252?Q?CNbsBGnITcGtKoeZnF0btK6FHpzkkDWCnoiGwqUJ3uR1OzFx0Cq9DD64?= =?Windows-1252?Q?1rf9LXTWmaehGcggBbzRC9bNna469vygF+qrdju+3anmCCmVCrYN7MXS?= =?Windows-1252?Q?yv86Ir4OQG9YqGHh4+JQr0jbeqWiRol3go3z4wE7C+g+3ySqC4d7Q1/M?= =?Windows-1252?Q?/vbVT5ywCeDvpEXNTluJEVAIHb+dL2J8rU7uMyNvdfz+GsJWlg=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0596; 5:DOI34q2SNChLc3dLAbMbWj0mBxojj9H6paPUk3XnwxJQnt0AWqSwE2JwiUqqeIAsRh4Gnp80iDOn+m1Cxfu0FqIKuObpBa84chWki8ZKZYzDBHVoVglzB8JSlB/BKRSrhdruYLnY+2rxgYnVjJHxpkIL/+wPn9SO2ExQE8f3qKGDxmlnqJb9UcY1szWosNBJ6DTkPPTtcTxFE7jh4jWRh23fHX+57ICAD1wrd/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tIDwIhz8ymW1bDLSHpovADexOHuYPUpYe/gSPHx/Rz0tK8Zxr0JEQRRc73227K+e8KInPZIS/Yx0WFY5UOuHXVpR7nMSmmtpOqd5eSxSpeWUxOIxFBi6zk2Ud1HGMNZ1yXmDOYA9sfNzDtlAgkiL890pthAEB2WjtJiuxiLJt2MhVK+s2wKLgFEkyEX6mNN6Zsa3ybHGTOG7In1LqFJeaYb7Uoakfk9w/rCLIR4DYgc133s= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2017 08:07:51.6346 (UTC) 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: BN1PR0301MB0596 Subject: Re: [dpdk-dev] [PATCH v3 05/11] bus: 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: Fri, 14 Jul 2017 08:07:54 -0000 On 7/11/2017 11:46 AM, Santosh Shukla wrote: > API(rte_bus_get_iommu_class) helps to automatically detect and select > appropriate iova mapping scheme for iommu capable device on that bus. > > Algorithm for iova scheme selection for bus: > 0. Iterate through bus_list. > 1. Collect each bus iova mode value and update into 'mode' var. > 2. Here value '1' is _pa and value '2' is _va mode. > So mode selection scheme is like: > if mode == 2 then iova mode is _va. > if mode == 1 then iova mode is _pa > if mode == 3 then iova mode ia _pa. > > So mode !=2 will be default iova mode. > > Signed-off-by: Santosh Shukla > Signed-off-by: Jerin Jacob > --- > lib/librte_eal/bsdapp/eal/rte_eal_version.map | 1 + > lib/librte_eal/common/eal_common_bus.c | 23 +++++++++++++++++++++++ > lib/librte_eal/common/eal_common_pci.c | 1 + > lib/librte_eal/common/include/rte_bus.h | 22 ++++++++++++++++++++++ > lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + > 5 files changed, 48 insertions(+) > > diff --git a/lib/librte_eal/bsdapp/eal/rte_eal_version.map b/lib/librte_eal/bsdapp/eal/rte_eal_version.map > index 33c2c32c0..a2dd65a33 100644 > --- a/lib/librte_eal/bsdapp/eal/rte_eal_version.map > +++ b/lib/librte_eal/bsdapp/eal/rte_eal_version.map > @@ -202,6 +202,7 @@ DPDK_17.08 { > rte_bus_find_by_name; > rte_pci_match; > rte_pci_get_iommu_class; > + rte_bus_get_iommu_class; > > } DPDK_17.05; > > diff --git a/lib/librte_eal/common/eal_common_bus.c b/lib/librte_eal/common/eal_common_bus.c > index 08bec2d93..5d5753ac9 100644 > --- a/lib/librte_eal/common/eal_common_bus.c > +++ b/lib/librte_eal/common/eal_common_bus.c > @@ -222,3 +222,26 @@ rte_bus_find_by_device_name(const char *str) > c[0] = '\0'; > return rte_bus_find(NULL, bus_can_parse, name); > } > + > + > +/* > + * Get iommu class of devices on the bus. > + */ > +enum rte_iova_mode > +rte_bus_get_iommu_class(void) > +{ > + int mode = 0; > + struct rte_bus *bus; > + > + TAILQ_FOREACH(bus, &rte_bus_list, next) { > + > + if (bus->get_iommu_class) > + mode |= bus->get_iommu_class(); > + } > + If you change the default return as '0' for buses. This code will work. e.g. PCI will return '0' - when no device is probed. FSL MC will return VA. the default mode will be 'VA' if fslmc is not present. The default mode will be PA. > + if (mode != RTE_IOVA_VA) { > + /* Use default IOVA mode */ > + mode = RTE_IOVA_PA; > + } > + return mode; > +} > diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c > index 8b6ecebd6..bdf2e7c3a 100644 > --- a/lib/librte_eal/common/eal_common_pci.c > +++ b/lib/librte_eal/common/eal_common_pci.c > @@ -552,6 +552,7 @@ struct rte_pci_bus rte_pci_bus = { > .plug = pci_plug, > .unplug = pci_unplug, > .parse = pci_parse, > + .get_iommu_class = rte_pci_get_iommu_class, > }, > .device_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.device_list), > .driver_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.driver_list), > diff --git a/lib/librte_eal/common/include/rte_bus.h b/lib/librte_eal/common/include/rte_bus.h > index 7a0cfb165..8b2805b7f 100644 > --- a/lib/librte_eal/common/include/rte_bus.h > +++ b/lib/librte_eal/common/include/rte_bus.h > @@ -181,6 +181,17 @@ struct rte_bus_conf { > enum rte_bus_scan_mode scan_mode; /**< Scan policy. */ > }; > > + > +/** > + * Get iommu class of devices on the bus. > + * Check that those devices are attached to iommu driver. > + * > + * @return > + * enum rte_iova_mode value. > + */ > +typedef enum rte_iova_mode (*rte_bus_get_iommu_class_t)(void); > + > + > /** > * A structure describing a generic bus. > */ > @@ -194,6 +205,7 @@ struct rte_bus { > rte_bus_unplug_t unplug; /**< Remove single device from driver */ > rte_bus_parse_t parse; /**< Parse a device name */ > struct rte_bus_conf conf; /**< Bus configuration */ > + rte_bus_get_iommu_class_t get_iommu_class; /**< Get iommu class */ > }; > > /** > @@ -293,6 +305,16 @@ struct rte_bus *rte_bus_find_by_device(const struct rte_device *dev); > */ > struct rte_bus *rte_bus_find_by_name(const char *busname); > > + > +/** > + * Get iommu class of devices on the bus. > + * Check that those devices are attached to iommu driver. > + * > + * @return > + * enum rte_iova_mode value. > + */ > +enum rte_iova_mode rte_bus_get_iommu_class(void); > + > /** > * Helper for Bus registration. > * The constructor has higher priority than PMD constructors. > diff --git a/lib/librte_eal/linuxapp/eal/rte_eal_version.map b/lib/librte_eal/linuxapp/eal/rte_eal_version.map > index 044f89c7c..186c7b0fd 100644 > --- a/lib/librte_eal/linuxapp/eal/rte_eal_version.map > +++ b/lib/librte_eal/linuxapp/eal/rte_eal_version.map > @@ -207,6 +207,7 @@ DPDK_17.08 { > rte_bus_find_by_name; > rte_pci_match; > rte_pci_get_iommu_class; > + rte_bus_get_iommu_class; > > } DPDK_17.05; > >