Re: [PATCH 2/5 V5] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Ethan Zhao
On Mon, Sep 28, 2020 at 4:45 PM Andy Shevchenko wrote: > > On Mon, Sep 28, 2020 at 7:10 AM Ethan Zhao wrote: > > We didn't settle on the v4, why v5? We could fix it with v6, v5 is used to fix other things. > > > When root port has DPC capability and it is enabled, then triggered by > > errors,

Re: [PATCH 2/5 V5] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-28 Thread Andy Shevchenko
On Mon, Sep 28, 2020 at 7:10 AM Ethan Zhao wrote: We didn't settle on the v4, why v5? > When root port has DPC capability and it is enabled, then triggered by > errors, DPC DLLSC and PDC interrupts will be sent to DPC driver, pciehp > driver at the same time. > That will cause following result:

[PATCH 2/5 V5] PCI: pciehp: check and wait port status out of DPC before handling DLLSC and PDC

2020-09-27 Thread Ethan Zhao
When root port has DPC capability and it is enabled, then triggered by errors, DPC DLLSC and PDC interrupts will be sent to DPC driver, pciehp driver at the same time. That will cause following result: 1. Link and device are recovered by hardware DPC and software DPC driver, device isn't re