From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0088.outbound.protection.outlook.com [104.47.42.88]) by dpdk.org (Postfix) with ESMTP id 16854916D for ; Thu, 17 Aug 2017 17:03:13 +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=GD7xY3p1K9pTcXEtpdHcYZ9ch5s+yLIU4dwVSzexG9A=; b=EkcEHpFzEw639iJYNHblVVFVURP1L5Itflw4yamkXeEAbAz1z9z88nEJKETOnN8SAyj2HBlOgIoAYrt6UZTdl+ooD6SyHalvUtxeUaIZJ3YkeXZRk5XIKekkUaq6zNTi5y5jneWmr6iwbCy7/8+jCHZbidxL9sEEDgKtDPHxOZc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [10.89.1.7] (14.140.2.178) by BN6PR07MB3090.namprd07.prod.outlook.com (10.172.105.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21; Thu, 17 Aug 2017 15:03:05 +0000 To: Aaron Conole References: <20170724084004.25542-1-santosh.shukla@caviumnetworks.com> <20170814161059.6684-1-santosh.shukla@caviumnetworks.com> <20170814161059.6684-9-santosh.shukla@caviumnetworks.com> Cc: dev@dpdk.org, olivier.matz@6wind.com, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, maxime.coquelin@redhat.com, sergio.gonzalez.monroy@intel.com, bruce.richardson@intel.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, anatoly.burakov@intel.com, stephen@networkplumber.org From: santosh Message-ID: <73f8a12f-739f-c446-606c-6d4e8e5bd27f@caviumnetworks.com> Date: Thu, 17 Aug 2017 20:13:54 +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: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BN6PR1301CA0008.namprd13.prod.outlook.com (10.174.84.149) To BN6PR07MB3090.namprd07.prod.outlook.com (10.172.105.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3e8436ab-e2c2-421c-7105-08d4e581133e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN6PR07MB3090; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3090; 3:FUTqaqj3cVoeyIK/ko92W1JPcWIB9xLMybZl70KHFOKCW7ZSp3gRzQH8aqiHJ82iYZEionRsMdiTrJ6AzTfK0nXPKj7oPLjcu0hfT384RF9Kf4NiwiLC+vzFbktzHLh1N6/dA3UWw98Fxp3E8GDJu6akJJOBDKxsCgFXNg/4tRegepNZ9gWeAwv9bQxQjgIvK5qsJeCeFcFH//W7kV26Wt4+rQCapoGCxfNAlvjI/IYv9c84RXwAY0RojwiWK6re; 25:vhuSj6XZoKHqMIcGuDnmLiWofPDTVjO7DTyrG5UE1B3i24hKRpuzy6ryDiERB0m3VRRywqEKAYUUrCoJ9Q4r0NrpFt12ijmnrVKdhcwC/YK/Z9TkQP8n+vcxtDUfnmPhhQ1kqHtu7iySAvGAZBQh6yvzL9lGfU7p9ec/bspPXS4WatG3PoVBJv0Zgul+U4cX9hfcbgmjdt50jPjDQUuiMV7OmSDnFWuGBThkNZVx3egFrjaMDmm1d0dHcsF0X3afzji88WjR5B42HzEMrJJC5seuPhWFBsy4Mmf1sMID5jxbTn2YVGvomjnjfZcCUX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6iTctUgcPIQ2iM4xNkxS47iVgqIm12nZpqHq+Swh8/yTXFDr6VTds8RiA3L35RUzqUyJLRq8B1HNxQ53hiMozcc6EmNIXN+chAzL8Ip5BzW8qpYxtuzZ2qtgtCq2LNm7zDAot/wrz 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)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3090; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3090; X-Forefront-PRVS: 0402872DA1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(7370300001)(6009001)(6049001)(377454003)(199003)(24454002)(189002)(31696002)(81156014)(81166006)(8676002)(3846002)(6116002)(305945005)(36756003)(65826007)(101416001)(5660300001)(54356999)(76176999)(2906002)(50986999)(7416002)(68736007)(47776003)(50466002)(7736002)(97736004)(42186005)(189998001)(31686004)(4326008)(33646002)(4001350100001)(478600001)(25786009)(5009440100003)(230700001)(64126003)(105586002)(229853002)(8656003)(65806001)(66066001)(23746002)(72206003)(65956001)(53936002)(7350300001)(106356001)(6486002)(77096006)(90366009)(6916009)(83506001)(42882006)(86152003)(2950100002)(110136004)(93886005)(6666003)(6246003)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3090; H:[10.89.1.7]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; BN6PR07MB3090; 23:dDFEFlW9BCVxS08xKDYBkRyNm0FeGXhuDdnaL?= =?Windows-1252?Q?3F4NVMkAH0LoNsK54Z3yeyUnSQ9efU+MZzAv3M9AzbWE3spruUF/+L75?= =?Windows-1252?Q?1jtuePOybAC+EQ8UNqjfUEiPCdH1zn804AADiDt6AQbfMTBwW9ie2PYw?= =?Windows-1252?Q?zatjChUDIAEQFsllL+D0D43vCJrHTXa5jhSpvk+PJCqvM2VdUVwz7b4D?= =?Windows-1252?Q?Gp6vqoaoHL+yvsUNDFYFcxz5oj+3LrKsOC6anVf+Ry+rRFipuA2BOuAb?= =?Windows-1252?Q?l0wwBG0mzxBRCvrtihs7c0JIPTlUekner/zHYIXwJCscJ7v1QRGWJB2A?= =?Windows-1252?Q?+j9L0/rVJMVjpAfmE192UGqHtHLibpi/PmDyUomZWhA1e5E1e6ZecJ5p?= =?Windows-1252?Q?SzzgWmOTZ+a+pFQ4q7BOM0FPejTCJqSUmKxlA+xS9RoNeRS8HeRlIT3+?= =?Windows-1252?Q?vqRwb+7dxcrWiTFLXgm5Y5HX1QE+pCBWIYApf0jGHp+6kJ9KknH2zUJd?= =?Windows-1252?Q?Rx6PVYYB3GIUu5+7pv5ZbvBnCt0j4bzVAx68QkFA5lHen1L0OxNUTshg?= =?Windows-1252?Q?VGJcy4d7BAMU7KoY39X6q4uYOsX9i+UaBZS6HD6hfWd5yRRAw/I4GbXM?= =?Windows-1252?Q?btwAn82Zuv01brmtImazj1lJ33wkgYNRRvPT7UGVKSKn253H4gBrqa9T?= =?Windows-1252?Q?NCGZgznAatLPZ4W9SZ53dERTDS/wA7mI57YP5ShDKHx048yvZeA3h1kU?= =?Windows-1252?Q?1L3xG3Mf7qdtO9sCRfqv/gjg+db+jjdPJ4pv3E5qv42R4fVEfps5E82X?= =?Windows-1252?Q?YKYpTRa0hv1XojxZWZN8x0gWqFV8zVxo2j2DyavrM6vMZX6gyw0q5P0c?= =?Windows-1252?Q?qrzEB0T1mD+PfZhp9msoDGldIoaJz3+KD7VUgStOTijYnfC5MKq6uAvH?= =?Windows-1252?Q?ot7RX0OfCNtd+P+OxBtytI2dkUEE3O+nDcZ2/HNArMdLLHitCcFNUkeP?= =?Windows-1252?Q?+82uIT5Qb//cNSU8PQg3059loVdLYiZkkHu3UMKKKXWgR+MlY68w0+5M?= =?Windows-1252?Q?u/IrTmVMopT2igitOGfml1x9LL2a1tmIky1NduYDSpXuzd1tei9TZbnD?= =?Windows-1252?Q?APT7QGBu+bBGLQVGdRd/TxYr0DlKO83qNbneNNGunP6xrBNAzeFxbGB7?= =?Windows-1252?Q?rNkrHDyH00LvJmD9IWj2fbR8h7qpVkIuSXmRnEjuoVVbVwVf/WZHUby2?= =?Windows-1252?Q?DvYb+OMiFSsOB8LZ6NB+hv/Tu7LmVXJOlwGIssB0X93Ka4G5HkQKVqqx?= =?Windows-1252?Q?G6FVc10gmmRIxTf0lTL7EStlWCkFB9Q5o9gjpTQxhJz8EZ2KTJpdxVyL?= =?Windows-1252?Q?Vj5YYqdgqQGP/0ac4KHnZfm50p0B15Nrri5dPdr8QxFtrLb307fXf1PR?= =?Windows-1252?Q?XQAE4M0gR3B0tEJYcmt37db1GajvcF/UqVspFG3R2wig2BqL9KLZBauG?= =?Windows-1252?Q?cHbTfzo1zF9k3YubhGx0Ckao8C2u/RS4TtEGk2rwajxgsI+tvkPCkB0R?= =?Windows-1252?Q?K3k6+VNEGkV/9UwwgySVAOHchjN8C+yxd1VkgfEe7pJw3VEXg7Sm8ks1?= =?Windows-1252?Q?ZcOA7tC21CU7kC4I2X4CvbuGOMF9Fns0ML9GhTLqAVX?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3090; 6:ngW22xielIx762V42uNC2ZrHY/x2C0y+auqT80fLtqXEFDwSFkHsXdEdvJhXNjq5W0IVFZKDYWtRNSXaUecwbBp1/a/3pN+HUDIEX1XIW6NWidl3Z+Vc6yYfgETHEoMdg8hmJ4y0GXbACMs3W1Br8e1gnMsHZhwl9ubUziZmJ8ctWj0JLgG3TI5KlavNxH3JGhc3bHdOTFgCOs6F4OQXj73jcNG+kZ0sTmojtND0K2cD302hVF3+Yw8Ch8p4XTUUg3QNfOmNDa3geF1CidbHPjDBFfxOHD1FkYfT6VYQYM4iONtHEZbqUGi2Mb4Arf1UoA1q52n+wgSJJ+ARGLniMA==; 5:d1bNRkD7vHw2D3VBo3m0yIFSQj5l9BprUZyvLmJaR00g/hrT44asukdbhdJ65FmTeJtB0HfCA8vbF18NQ+tReTj4A7sXs1t1H+dyl22WtC0hijshCqKB7xTKbuJV15ONuGeBOJRw++v/+Fhs2JaJ3A==; 24:sEv1NZnDjt9GplUVwkA+vOIYMtXqE1OB51l4eCA4kuvxZ55YdOOnk0aa8cmwqEHyZiqICrBkE8E5kSnj06RyIGEkFWgrziUetZWfQJ8IUaM=; 7:yjUgz9LZxfCUghCGoB5dJvGNbRt3WOtmqDojMMW3z+xk2QLWGCXkZVm+ZV6ELxqXrLaLv0VZuDqBs1UHEmDaqjBsxj0SHjErMn4khRMMzmj/yaMjrpjVnMzhcGm7szv3+YIbeMVcPkzf3mQbu7UeOOU7KUeE9+jPN3ropFwCoNZSuWWvUHE0dOYnmj9owvIda3r4nLQ9IlGgRz1qYaGKk5hdzjy7OFI7QRAUnIzAYWo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Aug 2017 15:03:05.8733 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3090 Subject: Re: [dpdk-dev] [PATCH v6 08/12] linuxapp/eal: auto detect iova mode 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: Thu, 17 Aug 2017 15:03:13 -0000 On Wednesday 16 August 2017 11:08 PM, Aaron Conole wrote: > Santosh Shukla writes: > >> - Moving late bus scanning to up..just after eal_parsing. >> - Auto detect iova mapping mode, based on the result of >> rte_bus_scan_iommu_class. >> >> Signed-off-by: Santosh Shukla >> Signed-off-by: Jerin Jacob >> Reviewed-by: Maxime Coquelin >> --- >> lib/librte_eal/linuxapp/eal/eal.c | 15 +++++++++------ >> 1 file changed, 9 insertions(+), 6 deletions(-) >> >> diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c >> index febbafdb3..5382f6c00 100644 >> --- a/lib/librte_eal/linuxapp/eal/eal.c >> +++ b/lib/librte_eal/linuxapp/eal/eal.c >> @@ -798,6 +798,15 @@ rte_eal_init(int argc, char **argv) >> return -1; >> } >> >> + if (rte_bus_scan()) { >> + rte_eal_init_alert("Cannot scan the buses for devices\n"); >> + rte_errno = ENODEV; > Since this now happens before hugetlbs are allocated, is it possible to > retry? If so, then I would say to clear the run_once variable. Yes, Change queued for v7. Thanks.