From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Tan, Jianfeng" Subject: Re: [PATCH] igb_uio: remove device reset in open Date: Thu, 26 Oct 2017 17:28:15 +0800 Message-ID: <5108b90a-5617-ea1a-ad41-c2eb83b8c1a1@intel.com> References: <20171020165511.47899-1-ferruh.yigit@intel.com> <44560a31-d8dc-b2e1-1589-95020fb654f3@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Thomas Monjalon , "dev@dpdk.org" , "stable@dpdk.org" , George Prekas , Sergio Gonzalez Monroy To: "Mody, Rasesh" , Ferruh Yigit , Jingjing Wu , "Thotton, Shijith" , Gregory Etelson , "Patil, Harish" Return-path: In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Rasesh, On 10/26/2017 7:43 AM, Mody, Rasesh wrote: > Hi Ferruh, > >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Ferruh Yigit >> Sent: Friday, October 20, 2017 9:58 AM >> >> On 10/20/2017 9:55 AM, Ferruh Yigit wrote: >>> Remove device reset during application start, the reset for >>> application exit still there. >>> >>> Reset in open removed because of following comments: >>> 1- Device reset not completed when VF driver loaded, which cause VF PMD >>> initialization error. >>> Adding delay can solve the issue but will increase driver load time. >>> >>> 2- Reset will be issues all devices unconditionally, not very efficient >>> way. >>> >>> Fixes: b58eedfc7dd5 ("igb_uio: issue FLR during open and release of >>> device file") >>> Cc: stable@dpdk.org >>> >>> Signed-off-by: Ferruh Yigit >> Hi Jingjing, Shijith, Gregory, Harish, >> >> Can you please test this on top of current master (which has already Jingjin's >> fix) ? > The original FLR change during igb_uio open()/release() in DPDK17.08 also impacts BNX2X PMD and it exhibits the issues with bare metal testing. > > Now, we tested this change for BNX2X PMD using latest dpdk, which has this fix where FLR is invoked only in the release(). However, we ran into an issue when trying to reload the testpmd application in quick succession. The pci reset, called during the igb_uio release() operation, is taking longer time and adapter is still doing the FLR when we relaunch the application. We see this behavior with bare metal testing. If we don't reset that device, it will continue working which is a more serious issue IMO. How long does it take to reset BTW? Thanks, Jianfeng