[PATCH v4 2/3] PCI/DPC: Run recovery on device that detected the error
Shuai Xue
xueshuai at linux.alibaba.com
Mon Mar 3 14:48:34 AEDT 2025
在 2025/3/3 11:36, Sathyanarayanan Kuppuswamy 写道:
>
> On 2/16/25 6:42 PM, Shuai Xue wrote:
>> The current implementation of pcie_do_recovery() assumes that the
>> recovery process is executed on the device that detected the error.
>> However, the DPC driver currently passes the error port that experienced
>> the DPC event to pcie_do_recovery().
>>
>> Use the SOURCE ID register to correctly identify the device that
>> detected the error. When passing the error device, the
>> pcie_do_recovery() will find the upstream bridge and walk bridges
>> potentially AER affected. And subsequent patches will be able to
>> accurately access AER status of the error device.
>>
>> Should not observe any functional changes.
>>
>> Signed-off-by: Shuai Xue <xueshuai at linux.alibaba.com>
>> ---
>
> Looks good to me
>
> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy at linux.intel.com>
>
Thanks.
Shuai
More information about the Linuxppc-dev
mailing list