On 7/27/2018 10:18 PM, Lukas Wunner wrote:
According to Sinan Kaya: "I know for a fact that bus reset clears the Data Link Layer Active bit as soon as link goes down. It gets set again following link up. Presence detect depends on the HW implementation. QDT root ports don't change presence detect for instance since nobody actually removed the card. If an implementation supports in-band presence detect, the answer is yes. As soon as the link goes down, presence detect bit will get cleared until recovery." https://lkml.kernel.org/r/42e72f83-3b24-f7ef-e5bc-290fae99259a@xxxxxxxxxxxxxx
You can put a reference to the table in the spec. PCIe Specification 3.0 Table 4-14: Link Status Mapped to the LTSSM Column: In-Band Presence.