Microsemi / switchtec-kernel

A kernel module for the Microsemi PCIe switch
GNU General Public License v2.0
45 stars 31 forks source link

Error out MRPC execution when no more GAS access #96

Closed kelvin-cao closed 3 years ago

kelvin-cao commented 3 years ago

It was observed that after a firmware hard reset, the MRPC execution will hang indefinitely. This is because after the reset, the host will get all 1s for any BAR read, in which case the driver won't get a valid MRPC status.

Add a read check to GAS access when a MRPC command execution don't response timely, error out if the check failed.

kelvin-cao commented 3 years ago

Thanks!