Re: [PATCH V6 2/2] PCI: handle CRS returned by device after FLR

2017-08-02 Thread Sinan Kaya
On 8/2/2017 1:49 PM, Alex Williamson wrote: > On Wed, 2 Aug 2017 13:18:24 -0400 [snip] >> static void pci_flr_wait(struct pci_dev *dev) >> { >> -int i = 0; >> +u32 sleep = 1000, total = 0; >> u32 id; >> +bool ret; >> >> if (dev->is_virtfn) { >> msleep(100);

Re: [PATCH V6 2/2] PCI: handle CRS returned by device after FLR

2017-08-02 Thread Alex Williamson
On Wed, 2 Aug 2017 13:18:24 -0400 Sinan Kaya wrote: > An endpoint is allowed to issue Configuration Request Retry Status (CRS) > following a Function Level Reset (FLR) request to indicate that it is > not ready to accept new requests. CRS is defined in PCIe r3.1, sec 2.3.1. > Request Handling Ru

Re: [PATCH V6 2/2] PCI: handle CRS returned by device after FLR

2017-08-02 Thread Sinan Kaya
On 8/2/2017 1:18 PM, Sinan Kaya wrote: > pci_flr_wait() will keep > calling this function 60 times to allow up to 60 seconds to be consistent > with the rest of the kernel CRS timeout handling. I forgot to update the commit message. I'll wait until Bjorn/Alex reviews this version. -- Sinan Kaya