From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0071.outbound.protection.outlook.com [104.47.38.71]) by dpdk.org (Postfix) with ESMTP id DF6DD7D4E for ; Wed, 13 Sep 2017 12:49:03 +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=t5GuUg6OyvXCBKm5mqeOipqIuRM8NsB9sML58/9QfDw=; b=IHYYNtMlYnKwGpcViHhEoEs92DD0XsVHS2o0N33qGwbLbhZ3j3rQRTGUYCQHLVMlQi2fo54jAmT5DNe5HX7P6JZN+MH4jKMjF2PEswFj/uWxmOSqfwJqFWmFyC18YcUev4Hir+mYzgQLuwAzOa7ZTpOS4oKODKun1AYUcrhykAo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Shijith.Thotton@cavium.com; Received: from localhost.localdomain (14.140.2.178) by MWHPR07MB3070.namprd07.prod.outlook.com (10.172.97.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12; Wed, 13 Sep 2017 10:48:59 +0000 Date: Wed, 13 Sep 2017 16:18:41 +0530 From: Shijith Thotton To: "Yang, Qiming" , Gregory Etelson Cc: "dev@dpdk.org" , Jianfeng Tan , Ferruh Yigit Message-ID: <20170913104840.GA14229@localhost.localdomain> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (10.174.214.142) To MWHPR07MB3070.namprd07.prod.outlook.com (10.172.97.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: aa54e645-392b-4175-543a-08d4fa950b9b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHPR07MB3070; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3070; 3:KhkeHdJ0F+FZNtR3Pn0uHxvoz4GgPMAFsxRZqMkyzOsg1rntEh16bTKFP304e98yDbEvfyQ8bTuJ/+c68Phfn7fXYgpNTK9N1QM/tIQHsk7pe8yMrOtjqAIi7JKr6KTPaeAPxNBMpyMycVgbGs4A/4+EmVKtZcr1eSBHh2OSJ+G8rQnnpXcV5rgR5Aw9+IswHoJg3/kYrJPEYfkTJCst6ApVbChBg31q12RbcapQbJv6j1AyJ1H0GlYloAZVRZR/; 25:4Y5vJV2u9qpFfhm/XWsShDUNew3hfdscXO2QgfKcEQ6DlVga9zeiuebmRJpNOgiV6rcQj4cbg/JtA1Mo4zR5S2ZF7AqBD3c7Bxr4w6PFm39eFAz8OmuW6p9WIC2H1wblPpu2rmrhkhOLl1ndpEaoFHjlaWc759v3iogv3oMTkFbxFz28r9xeY2UZT0zPwZaZpzxa2E/ZvLN5N151fTudM/abqgt1KX5C72+1IDxPDw2Bp4vJmy8s6LErao8YMEyJSQE4g1cBhR/yoqk2u4M3APuxpky3bCtpyyPZCxVXQ7knI5YRvFa+WgXTwxijXVfR06swhPjsjrhZqh/pFqe6pQ==; 31:ScjG8xTd+eL5tFw0r6tszKafunOJbUtbAEOyB7PykfuF27FIimnZvMd74oK8N8MUydOoUqxI7IH3DAuJqdcIgQ69y1pUz4UlSYLkBRBy11Uj2R8cWd5srBWV+W6hw+lULIGsZjxsqXBSqCBOWhHA76+mc6CqGU7AhbXQmb1757eJMWB5swNFFlUoA4sNHRezmFcOI7xpMzVmlNHZferS9GlxOa0pce3wHEhuTvJInfs= X-MS-TrafficTypeDiagnostic: MWHPR07MB3070: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3070; 20:bLBBq39aRGW53+plpCqUPs//koPF0pOCkpKvY+MJAQrnSwFLLQmuTE7MTuXlDkH7jiXvckW/BZj8FtfoDbICIt+bgIvjYsQMQ4BBYN3GmzbewfRo80/YHYn1JbFRTC1EerRW1aPfV5xJKY3s1gMWLxbFPzkmdhf/ZC+zddxkAeygf3TYz70PI05siNVLIBg6ShxqCFb7sEcADXgTg0SfrUd9IQnduOP/g8dbguudyMtd3ucJqbvCYxGVkdc2tetn4htvxPrkKmQtzj2KlHl1fGJg7liu3cmSchFlqyjeu6WWy+b+Sosu/wIhKdjlKJR08wGd6vaD4ODOqxJq6ynLOIlX0ZD11MdXBkpoiWjfNlIzmCwNSs+04SQDn+CYNqLX72QZKy/FlW46baH4DaGmxVcGX2NzC3p7XvEqGGWPO4oieD+jsTezSoNPq98HKOBiKhoHR6hNU+MzXCcvFnqq/R7hPwBDBzTHLH84w7CEsuc93BYO+DcuAUzjAq1R4tTu9NFeTaeU/pRbyj7c/vfD3A+KOGUEkQaWYxgZCWYBO/RvQmnID78sXpph9AuZ29KuDu2ZYjzaghzIU6US1b4jxQnC993gUE3iadwOiPi/2WA= X-Exchange-Antispam-Report-Test: UriScan:(265634631926514)(228905959029699)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(10201501046)(3002001)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3070; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3070; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3070; 4:ZgyzIvYU072wUjNOugMxrfbFPnX6xeZzU1LJ+gaXCjKPDPxKuGMmwnErrRGif/uNNgFh9mqxXU61H5/nBcdNzlIA4eiazal0/DDNWYT9JzGzIuYaccm1UcIQOld6e/sQAyN8Cv4iXg4gcARiIbZSLnzxOQ6Dwkl0eyDdnLlniHTzKgkhQn9Zi/o2N+o3PM9fRGIBIKnYEqpeODBDAxbowIFff0uKsHbNLXTfNtBZhjmaRrwsXlyS3MxQhP0xJ+Kq8jYp00B7DOfdDIDhSgFNS2vdpkcr+YmQBVFqE+PG5G5Xh46buWJcModrliWZL4mnI6HD7XyA/U/XSj/ZtFBGHmMlnY3qUgvFFIV40zwpJZU= X-Forefront-PRVS: 042957ACD7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(6009001)(346002)(376002)(366002)(43544003)(189002)(24454002)(199003)(23726003)(2906002)(6666003)(101416001)(6116002)(3846002)(47776003)(1076002)(50986999)(76176999)(54356999)(6506006)(66066001)(5009440100003)(33656002)(5660300001)(42882006)(2950100002)(72206003)(478600001)(229853002)(25786009)(106356001)(105586002)(68736007)(7736002)(6246003)(305945005)(61506002)(4326008)(50466002)(9686003)(316002)(83506001)(53936002)(55016002)(97736004)(4001350100001)(54906002)(81166006)(81156014)(8676002)(189998001)(16526017)(8936002)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3070; 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; MWHPR07MB3070; 23:xMx0jOSFmr3fCevn3994+kuN+eDI9C/shbz4s2Bfa?= =?us-ascii?Q?mEm3U16JdUdLH0mV5WMWs1iU3GBZeO2lXPUs7/Z6qxMQ2JnS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VmPJFtlfXKJY=; 7:U8R7fTzbfx1IZ/MLW5kFXISFtYC0VsTT4jG6rv0pgqoQrsOMnHy9bWRkn6n/ctP6wu02R0KLtaEqzjB3jsozDIIODwpMg6vo1nuk0Pm8a/uWBgXdX12Xzg6YK09dXp7IG4Qfuc8xxahOK8PzjF3hTt2OGUtbPbMB5Ase5jZ7jyftGWsteBszxPBRf+kma4pWBsmrEDu3ejHFFGKilubjGzxIQOBb3np2SQ6H6uMCVk0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2017 10:48:59.9445 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3070 Subject: Re: [dpdk-dev] vf init issue with patch igb_uio: issue FLR during open and release of device file 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: Wed, 13 Sep 2017 10:49:04 -0000 On Wed, Sep 13, 2017 at 07:51:30AM +0000, Yang, Qiming wrote: > Hi, Shijith > > > > VF init error will happen after apply your patch, error log as below. If > revert your commit, all things work well. And this issue is not only occur > in i40 VF but also ixgbe. > > Could you help to check it soon? > > > > [root@localhost app]# ./testpmd -c 7 -n 4 -- -i > > EAL: Detected 10 lcore(s) > > EAL: No free hugepages reported in hugepages-1048576kB > > EAL: Probing VFIO support... > > EAL: WARNING: cpu flags constant_tsc=yes nonstop_tsc=no -> using > unreliable clock cycles ! > > EAL: PCI device 0000:00:03.0 on NUMA socket -1 > > EAL: Invalid NUMA socket, default to 0 > > EAL: probe driver: 8086:154c net_i40e_vf > > i40evf_init_vf(): init_adminq failed: -53 > > i40evf_dev_init(): Init vf failed > > EAL: Requested device 0000:00:03.0 cannot be used > > > > commit b58eedfc7dd57eef6d12e2c654a52c834f36084a > Author: Shijith Thotton > Date: Fri Jul 7 16:43:51 2017 +0530 > > igb_uio: issue FLR during open and release of device file > > Set UIO info device file operations open and release. Call pci reset > function inside open and release to clear device state at start and end. > Copied this behaviour from vfio_pci kernel module code. With this patch, > it is not mandatory to issue FLR by PMD's during init and close. > > Bus master enable and disable are added in open and release respectively > to take care of device DMA. > > Signed-off-by: Shijith Thotton > Reviewed-by: Jianfeng Tan > Acked-by: Ferruh Yigit > Acked-by: Gregory Etelson > > > > Best Regard, > > Yang Qiming > > Hi Yang Qiming, We didn't face this issue while preparing patch. I think, Gregory tested it for Intel NICs. Adding more people to the loop for help. Shijith