From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0062.outbound.protection.outlook.com [104.47.33.62]) by dpdk.org (Postfix) with ESMTP id 871522935 for ; Fri, 14 Jul 2017 13:03:37 +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=ymijtHw3Cln21RJ0n2DyRWsn0H6T1kPWrYQrAo3yupc=; b=WdhQN5qyLetArXrNr2wHPdX6gh8kRO6CQ54DKt5IaFDPbv1E26GX/TWw8o3VivaMIce18oyNVJ4qQmQBYvWk9Vj2QyCSZyBcAVOqD7TxRhcpoQfb6YiA48v59Bz9xadSIp1Obl5xWuY5YbmUDuSruDd9H5DDg97KiQb1c9BUkSg= Authentication-Results: 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from [10.89.1.6] (14.140.2.178) by DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Fri, 14 Jul 2017 11:03:30 +0000 To: Hemant Agrawal , thomas@monjalon.net, dev@dpdk.org References: <20170710114235.18970-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-1-santosh.shukla@caviumnetworks.com> <20170711061631.5018-6-santosh.shukla@caviumnetworks.com> <01918fa6-479c-3d86-6f48-dea777ed68d5@caviumnetworks.com> <51084486-9bf1-cc40-4a9c-50d1af281731@nxp.com> Cc: 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 From: santosh Message-ID: <71a2aea0-8d5a-1b49-7ac4-bf83a0bf9b9b@caviumnetworks.com> Date: Fri, 14 Jul 2017 16:33:14 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <51084486-9bf1-cc40-4a9c-50d1af281731@nxp.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: SG2PR04CA0120.apcprd04.prod.outlook.com (10.165.169.174) To DM5PR07MB3098.namprd07.prod.outlook.com (10.172.85.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c4f3919f-3473-4f5a-c2da-08d4caa7f942 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:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: 1; DM5PR07MB3098; 3:BZCajaT1VTV2F0uFwMeE84M0Mu1jsyZ6hmErerPBlRT1VYJZL+m7EP7NFQf4KcLkScyIfEpsKKBMF+cuofw1lIwj6iAShCYyhqv5SFTUPrOddR9Vqa1UvmrU1CnDlYMoXInA6Yy+3cFKvVxfS1nyAC2wIG07eyWpwA1Q91MQfh00keGAjs1ifThaIDRIO5ap9lhq3nIrCgcwySSNBaoJt/Ku0nb9Wto9RAbUte9ypXsd1HzuyKDfzAXj2jyxcwsMP7T/7JixAFVpR0zAToz63/Og2iqFY81/Ajbs3BqAE+3AjU2fMAONxvRkV7BKB9M/16BCYmo8nOID8IjXXmwZQhWAA96kA13Y8I5V4nXhZuFY209OavrnRC6RFCaTXIZVJK93r13mSnWZipDQlaAwhAH27gkzL3u8dyfKcDA510BO3MHNuIL2rjEeRGt65J2xpS59KDbf41dor2oCGoD4b2vzuZcsVNRiQRmsK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3heFfehu422E9uEF5Eyl3jYTdlCqWlyxJiraRW+71iAP+b3Lvx2g1tlzl5p85o3TIlieQyDneuEtBKnB09bwMs9DasGDrScX46gFog3UmSvEdZaycX9GIe/9N5flQLD3+i98ZBtIvPVcX7L4flqf6yuQzK0AvZKBqeeVCvRfGa31C9vpcMSXx2UPf3mCzJ2mOBNeS6mQZQ9iDtDa1eJsJQLeq5OsSfjm0Ijw0UkH9zHeiwx36Z3lcK18U+WiZCmEdxzJ7XdNH3/UUMcqKmbUl2XasCAYWZ6YG+XoFWS83vpRIWXRjjdTRU33kYVxx/zcluYF5uCPLR7MAYMVQrocC+HOaKJ01mp4Jk6/qyezBiWR1/EPlLYFZQuvd4oGlvLs44+3MYWhIupjRdXs68qzT/JDVLfruoKqNDc4s6zZU7Sb0WxuDgfXUkqANPNrW7GwKj9b5j0yaFdkwZJMzH2TVQf2ml2wekzKgeJ2DMSHdYXILDtxDgHBc= X-Exchange-Antispam-Report-Test: UriScan:(133145235818549)(236129657087228)(48057245064654)(167848164394848); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(10201501046)(93006095)(100000703101)(100105400095)(6041248)(20161123560025)(20161123558100)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR07MB3098; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR07MB3098; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR07MB3098; 4:1FmV9bvSfaQT+5qRi3c8nWwiZjptdf6arDoksD?= =?Windows-1252?Q?rHfNdkXQt3EtrBdgdDttmyxNryM1cVG3bUuuoymO8oMZ4DdPaTxlJLrH?= =?Windows-1252?Q?F+t5+v1Zea2o0Biwb1gCOgpgCIgwUJNI6CnuwJ/CfCKo8KYLKV1W5Foi?= =?Windows-1252?Q?dyFtZpBYI8+wacdKh6S1XIirPjAWKPJYG5aMIXiRBeRRkjlwtzr3EApR?= =?Windows-1252?Q?6gaXSLiDotFv5jyEuYmagO8+70W9u1uB+hs9d1hOV71xlz+68eouHHWB?= =?Windows-1252?Q?w4lOnBDIbUUVQMYMid/iCoFNmD6oRWFjVsixhRAvx8pvOBpYlrQKktXD?= =?Windows-1252?Q?TOADtB78mNZn5gqJGkyRz/wJfb743RHjXwqv/roF4cDzhQTeVxjRllEz?= =?Windows-1252?Q?joRbVtWjG/yOT6sTjcncv3+V5Jac+uaiRB83yC9AWtsH8Da8ozy3zHV1?= =?Windows-1252?Q?SVNJojgfFjw9RdUIiyUIUtkAIbkHtKtGMqrRv/n8dYtXc7U5t960Qbk/?= =?Windows-1252?Q?5MrVe/r1NHKVtVVmzK4kKrYJQIq6tAKUeojusR8mx4mm5KcnEa0T3v/D?= =?Windows-1252?Q?58dbBmKx65fRi55+leJgxz4Ih0z5aA4AZ06M7+GKMXk/aKNpwpo6zV7U?= =?Windows-1252?Q?jtdg2opDtXranL2M6MTMlyLYFcMEEqH+hO7D53yVRzIKf9xuXDrvisFr?= =?Windows-1252?Q?Sxft7Xr/Xvdl+z+29ijzNYdNReHFEgP/ZmjOb2oeFKSTBhfEvyqWroQY?= =?Windows-1252?Q?tsaLfg8OpBHvCw/GgxowjyKFbZAwTswhmhx6b+iTI+GebDh+9zKgoMGf?= =?Windows-1252?Q?UQsGLbzxqYUoj6CyhJdbozOaJgKle+P8TNKKdjuMruTGmoXvEVnKjO+d?= =?Windows-1252?Q?J6c4L2ia1mvk5vaoybVhxROEyBZhJw5Qt+0YcEKeoe3bk6B57jtO5f5D?= =?Windows-1252?Q?2AZjXGl/AUDQeL9FC4sqEwDZc84pHZXcJp9NJgFwqq5uBMkElBRwxgbE?= =?Windows-1252?Q?VWRDeBoSK94bkBT1plGPZF4iyD8Y+RzpY5mTg4eKyV8XKYfQx8S/Df5H?= =?Windows-1252?Q?Sj1QdxKGwTTULUqjxVor4NvkuXLoC1aaurJFb4r3OxeM3hXEfYAPLRux?= =?Windows-1252?Q?qEiLDt90EKS8d8uciQeltXdbW5Ue//v5NP0w5LZNv8mASNHAv6NULS85?= =?Windows-1252?Q?5M+OjP4xamRBIJSiTOCAtxmDOiG1TdaSHZQlUv/K2u7VBvm/2KZq7qgV?= =?Windows-1252?Q?7wdrumpneKEcV0XPVH47YzgtgFhUAnNiyhQRBvf+dB9LrE+oLCmn8AcE?= =?Windows-1252?Q?3/1190o4WmBi25buwZsfYGi2g1EDAkdUjxFL/Pez8kWLpWXT/kdValtE?= =?Windows-1252?Q?OAVy8VdI5pUohHDjpV7WYM8etiNW+ey6BcmlARnFQdcee71syE+Mo=3D?= X-Forefront-PRVS: 0368E78B5B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(39860400002)(39840400002)(39850400002)(39450400003)(39410400002)(39400400002)(377454003)(24454002)(33646002)(7416002)(81166006)(7736002)(68736007)(83506001)(23746002)(8676002)(72206003)(305945005)(93886004)(47776003)(66066001)(86152003)(65956001)(8656002)(65806001)(2906002)(5660300001)(36756003)(7350300001)(31696002)(64126003)(53546010)(50466002)(478600001)(189998001)(65826007)(50986999)(54356999)(42186005)(42882006)(4001350100001)(76176999)(53936002)(5009440100003)(31686004)(38730400002)(110136004)(4326008)(6666003)(6246003)(2950100002)(90366009)(229853002)(25786009)(77096006)(3846002)(6486002)(6116002)(230700001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR07MB3098; H:[10.89.1.6]; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR07MB3098; 23:d903FLhjWCUrGsEni5oqLetxWeke2FY4TGsgz?= =?Windows-1252?Q?AIGH4b/K3qz5McWAt/TilbgrkWKBRJ/ruMomB6U+eF97f2ZBJq1Ie7iw?= =?Windows-1252?Q?8T8aEekgk79GCg18GUhcGFLYLm902/ElYCUnZLXN1IOE1erkfILCaKg1?= =?Windows-1252?Q?n70PS5xIVhThi0Mbi9kVnm/HAioehtDl9l+vxhTLmQNp6hzAmX2XwG6O?= =?Windows-1252?Q?OQW5hzum+Mgyga1e6DRhNsWfakyIiE/lOwHEgeshfpfNEF6t5CtIvZxt?= =?Windows-1252?Q?4hMcbbYurO8VpYrRXWCKykCJLXl2cRzt9oQzVCoLWWkAJwJ1laGDl8/x?= =?Windows-1252?Q?XmO1TpRSEVGcQ31mhBhqvYt4FiMlWGVpQHtDrMFpWS3YBDzUbjosfSib?= =?Windows-1252?Q?78dwxtW4Z/U72N8rjOAMx1UB+0nHyBg1rIq6zRGZFQkEUpIpv4BThIs+?= =?Windows-1252?Q?wCkjrEO51rafA/lwkXUi93VR1s1DD1jUNOBFwmRPzccMZHyL4HS5a0E5?= =?Windows-1252?Q?ka7h7dHlwBQDGjvRdpuYyxk7dZf07VINf6mre5PcsOwC7fJV8l/TKlJ8?= =?Windows-1252?Q?CqOhydmgs1EBU5ujAPt7F0NmYkdgIUv+xfSR+WUWBNBaxqFE3p4/h2Cv?= =?Windows-1252?Q?7/5++lDmb9altByJPswQWWvAGbvNtjsIIeD7xJnNHgXTuCLRyeMfGPDH?= =?Windows-1252?Q?57G4l+H/at0hnHHx/zU7Li5X6vUrH5fZHNnUebSkDN4/ZlsZ9Xr/78t+?= =?Windows-1252?Q?ksQkqwKd7eCFyFeiKoYzd3LwqJHZhSpaXbSw/P8oqGgX9ISX/CJn5vdY?= =?Windows-1252?Q?EXFGdE2icetyfbSKLBNv78CzL/uU8nw4kHpp+FMKRhC8Mb8SahumXaE+?= =?Windows-1252?Q?HQHmdBvKiAUPVKHztgrB7vFrOBNoOCgJPJb7HA3HJQd97LHqtLEInJrn?= =?Windows-1252?Q?a4o+AlAV3xdOrgock8M+5iVAjGCfJ2F9VvmmBhehLxxYwr4S7hw/9MVX?= =?Windows-1252?Q?xZRse9q1pkSm0aLVeKpWiNi0rJlgUlXgBnyhi8+4sjtQgUoa5XhiFOqX?= =?Windows-1252?Q?synawh33IDzpVBDSw5dNtPHBS7OZ7aPnVwUILD82TIYcbxXBxMsEbjzu?= =?Windows-1252?Q?FZn7ER3l3me+x3EFI0jkW4CBeWauq+BtDqMB3AWV3H6sfFvjzOh9A2ls?= =?Windows-1252?Q?VUbOI+dcc1lwofwf64AOUO2Xc7xpruGKQ3vAtkkwviqEGrX/TEp46Z/I?= =?Windows-1252?Q?z1bRnyvxCySeKQXFZ91pogYHjLi/bhef32AjzVBvgeOHe9ng35ArA0Zr?= =?Windows-1252?Q?KZiWonpDXhl7EDTYkm3b1jSZ7D7qFIQVKjYINjDK1fQdpyh2Ow6pG+yC?= =?Windows-1252?Q?iNmMK3FnENZe/3iJ4hu59fXNNWBQPYO49QTgr5iNF1K+nbnRJpLxIRQR?= =?Windows-1252?Q?n+xjdDb0EYFctJYOHCaMkqWdlaASc9YMiRngjyVfH3/9ue3OZuFPjUAg?= =?Windows-1252?Q?Lk9y2vusMpg0fDANTtE4AcLVSGaVyEVdRtNuhXWNVpv1MftJlZMWFs05?= =?Windows-1252?Q?yl0uhs47TLjSTy9yheq8MEdu8ewAGRwkPkYtHcX9mUJyJRypuhlQLnkq?= =?Windows-1252?Q?Ddfv+Qtqrs/e1mqJsZGO2lstDr1Fi9Ux+PkxvI6Zz/XwIq7tP8rlhaun?= =?Windows-1252?Q?Hct+AKvt+vyZ6+8UV6p6E7C3qmmuHY=3D?= X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DM5PR07MB3098; 6:HkjYjU3w2wlTo9kgyXvYjCM4GVO0uyjySyrAUn?= =?Windows-1252?Q?YXrEmc3tXqw1dnBeGHk3elh00QAyclQhQWNQuh+M+0V28nk4+z2Op4MT?= =?Windows-1252?Q?Xjl0AW1Ikge9TnhYvz3koQbfZMb3XQrlaTMrX10vcVH+eMWdyqYjhJN1?= =?Windows-1252?Q?b70pHhwGkXfNRU+ZYeWclY6Sl4NJ2HN3K45tDHtZLwWyrUlLibEj7Y76?= =?Windows-1252?Q?jWsgqEgy6oCUydzBEvS6hICjd2RhTO2Y+tzF93y7V1WnbY7pJo0qRfCR?= =?Windows-1252?Q?LRjGh1nZNLIlW76U9OVbg0t2PeF4/to9/QudE0dEGzBOgOQOLndqk9b0?= =?Windows-1252?Q?SMGnLH0qzlAcpx6QKX0ELUa/DfBgd/Rb+3KNa8uXAAZ2GarorBUiY8IM?= =?Windows-1252?Q?qJer4PKjIS48qn2SEh/hHt/G2q8xWYRXYzYM70jnXOiVHbVh3Nbzoz+f?= =?Windows-1252?Q?kAU945fEbKCjhTzOQKUNlvgsgEtlNON1ySkN33dObY1GQvL4Qzx4aqWO?= =?Windows-1252?Q?9WoLzfmmIOeb8GVOTTabAnp0BlMgTVjqIBGFmO5inHNNOd4pW9MlKzuB?= =?Windows-1252?Q?BAXriFjqXWvNqRu/R0XepdBcHfij46Ou4ZQnN7skp5TIwbR89Rhr4AdK?= =?Windows-1252?Q?lyn/pSOwDYrc50plTrvzUJ/UmfMXb+N5oIvqBhmvRZb5jBYRzRPw9FjP?= =?Windows-1252?Q?oFVBpvoJmouoG6wa+c99TqChgWnjZvRjrwOdves+bR1zIxOh2+vehIz7?= =?Windows-1252?Q?+BL34DxG517xi+onCZokorHCem6p+Cbh9XNizDWzoQ2QcoynsMl5gR6U?= =?Windows-1252?Q?AhSUxWqoJ6Se2E+CPxgqCu74DeyhuiPLDRieVHTo/ltU17cecyODXUME?= =?Windows-1252?Q?45+AHs1fZZ6eamEYCZVjX7YL1cLzFHmGT94aMtxMKEBpfSRNDkk0Iabq?= =?Windows-1252?Q?Ci55qJ/gRHuVW+VVwzSQXx/94HvURtsHjD659RFlrz868cfF87SdDW5l?= =?Windows-1252?Q?6TAn5c2khHmJ91nG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NiXFboH+qR30Qn4d3pdSsO2cRcUlfSa9YLPfw8RouDyXlSFs5VVL8Ko8wkYlVpBCrtqsIwfIIeMAiztriP0YEnakAuvOC3BzwyqtbCrNz+ZZOqc/oHv2HtYul/ISTHpw0zD2mhkHDrLEMayQ87GhO239458Rkx/iDzH9TteILKNuZkk2W8o+to8NmOLJNG0svMuEaKIWsOvCkz5bPShb4l93wazeLcZGnvIXktDG2MvVLBre4siCtQ8KogaL1ebucysa8X+udUvYU4Qorno/Si5qyBKYfvHiz1FEZbOsxGxlEgXUVBu8j2E+2FvNxHGnZmy/+MzfwAhtz385NEYWaUF6eAgPs+5OyLGZCx99T/AAYm15DXGPyM9oa3eAzCr4wpuKwzIR7Cbp0tWZ936p6+zc1MKaOujtaAUOlCsNd4K9d+RstzYVLDnKf/BOHLyYX7qyuWc+JdhTTGObkt2OtH8SSWtO3on43OgqeQij1rwjsCETIP9fpS6DRvy3ZW7SXsSyWkmmJHRSSH0XmW0km5l7jPbSGN10Zx80OicwXE= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jul 2017 11:03:30.7895 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR07MB3098 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 11:03:38 -0000 On Friday 14 July 2017 04:21 PM, Hemant Agrawal wrote: > On 7/14/2017 3:59 PM, santosh wrote: >> On Friday 14 July 2017 03:52 PM, santosh wrote: >> >>> On Friday 14 July 2017 03:09 PM, Hemant Agrawal wrote: >>> >>>> On 7/14/2017 2:00 PM, santosh wrote: >>>>> On Friday 14 July 2017 01:37 PM, Hemant Agrawal wrote: >>>>> >>>>>> 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' >>>>>> >>>>> I'm confused why it won't work for fslmc case? >>>>> >>>>> Let me walk through the code: >>>>> >>>>> If no-pci device Or (future) no-platform device probed then bus opt >>>>> to use default mapping scheme .. which is iova_pa(default scheme). >>>>> >>>>> Lets take PCI_bus example: >>>>> bus->get_iommu_class() >>>>> ---> bus->_pci_get_iommu_class() >>>>> * Now consider that no interface bound to any of PCI device, then >>>>> it will return RTE_IOVA_PA mode to rte_bus layer (aka bus->get_iommu_class). >>>>> So the iova mapping result from iommu_class scan is RTE_IOVA_PA (default). >>>>> It works for PCI_bus case, tested for both iova_va and iova_pa case, no-pci device case. >>>>> >>>>> Now in fslmc bus case: >>>>> bus->get_iommu_class() >>>>> ---> bus->_fslmc_get_iommu_class() >>>>> >>>>> * IIUC your comment - You want fslmc bus to return RTE_IOVA_VA if no device >>>>> detected, Right? >>>> why? >>>> >>> As I didn't understood your previous reply: >>> `e.g. PCI will return '0' - when no device is probed. FSL MC will return VA. the default mode will be 'VA'` >>> >>> So, I'm asking you that in fslmc bus case - if no device found then are you opting _va scheme or not? >>> Seems like _not_ per your below comment. >>> >>> >>>> If bus is just present but no device is in use for dpdk, then bus should return 0 and it *should not* participate in the IOMMU class decision. >>>> >>> I think, I understand your point..Example if you have no-pci on first PCI bus >>> but device found on 2nd platform bus then you don't want to fallback to default (/_pa) mode.. >>> instead you want to use 2nd bus mode for mapping, which is _va. Right? >>> >>> If so then In my first version - We did introduced the case called _DC. >>> _DC:0 --> stands for no-device found case. >>> >>>> Right now there are only two buses. There can be more buses. (e.g. PCI, platform, fslmc in case of dpaa2 as well). >>>> >>>> If the bus is not being used at all, why it influence the decision of other buses. >>>> >>> If your referring to above case then I agree, We'll re-introduce _DC state from v1 in next revision. >>> That will look like >>> rte_pci_get_iommu_class() { >>> int mode = RTE_IOVA_DC; /* '0' */ >>> >>> return _DC; /* if no device found */ >>> } >>> >>> Right? > > Yes! Thanks! > > As I explained in the other thread. The PCI devices can be there, but none of them is for DPDK: > EAL: PCI device 0000:01:00.0 on NUMA socket 0 > EAL: probe driver: 8086:10d3 net_e1000_em > EAL: Not managed by a supported kernel driver, skipped > > Ok, I will queue _DC changes in next verions. Thanks for confirming. >>> >>>> if no bus has any device, the System default is anyway PA. >>>> >>> Right, If no bus present then It's also responsibility of `rte_bus_get_iommu_class` >>> to use default mapping scheme which is _pa and which It does. >>> >>>>> if so then your fslmc bus handle should do something like below >>>>> -- If no device on fslmc bus : return RTE_IOVA_VA. >>>>> -- If device detected on fslmc bus and bound to iommu driver : return RTE_IOVA_VA >>>>> -- If device detected fslmc but not bound to iommu drv : return RTE_IOVA_PA.. >>>>> >>>>> make sense? If not then can you describe fslmc mapping scheme? >>>>> >>>>>> if fslmc is not present. The default mode will be PA. >>>>>> >>>>>>> + if (mode != RTE_IOVA_VA) { >>>>>>> + /* Use default IOVA mode */ >>>>>>> + mode = RTE_IOVA_PA; >>>>>>> + } >>>> The system default is anyway PA. >>>> >>> No, That check is needed for case like 1st bus return with _PA and 2nd bus returns with _VA, >>> then mode = 3 (Mix mode), which we don't support so (as I mentioned before) its responsibility of >>> rte_bus_get_iommu_class() to return default mode (_pa). That's why!. >>> >>> >> Does your platform supports `mix mode`, I asked same question in thread [04/11] too? >> Let's say that dpaa2 supports mix mode then it is Ok if bus chose to opt default mapping >> for mix mode case? Do you see any issue if bus opt to use default scheme for mix mode? >> >> > > yes! We can support mix mode. However with your suggested changes in mempool etc APIs, now the DPDK will not work for us in mix mode (when both PCI and DPAA2 devices are available) with VA support only for DPAA2 :) > > In case of mix mode, you logic is already there to default to PA. That is fine. > > But, when PCI devices are not hooked to dpdk. We should be able to use VA for dpaa2. > Ok. I assume that You'll implement bus handle for fslmc something like `rte_fslmc_get_iommu_class()` and make sure that you return: - _VA in no-device found case. - _VA if iommu capable interface detected for device. - _PA if no-iommu. And only change which you expect at bus layer /rte_bus_get_iommu_class() is to honor `no device found` situation for multiple bus case. Right?