Re: [PATCH v3] PCI: portdrv: Report degraded links via link bandwidth notification

From: Lukas Wunner
Date: Thu Feb 28 2019 - 01:32:02 EST


On Wed, Feb 27, 2019 at 02:58:17PM -0600, Alexandru Gagniuc wrote:
> A warning is generated when a PCIe device is probed with a degraded
> link, but there was no similar mechanism to warn when the link becomes
> degraded after probing. The Link Bandwidth Notification provides this
> mechanism.
>
> Use the link bandwidth notification interrupt to detect bandwidth
> changes, and rescan the bandwidth, looking for the weakest point. This
> is the same logic used in probe().
>
> Signed-off-by: Alexandru Gagniuc <mr.nuke.me@xxxxxxxxx>

Reviewed-by: Lukas Wunner <lukas@xxxxxxxxx>