-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check rshim accessibility when re-enabling it
This commit checks the rshim accessibility when re-enabling it. It fixes an issue in the following scenario: 1. rshim_pcie or rshim_pcie_lf is running; 2. MFT tool sets the rshim DROP_MODE to 1 and starts FW reset; 3. FW reset triggers the BlueField reset and thus USB reset; 4. USB rshim driver running on another host takes over this rshim device (because the local rshim driver is still in DROP_MODE which prevents the scratchpad register access. Thus the USB rshim driver assumes no one is using the rshim device). 5. After FW reset, the rshim_pcie/rshim_pcie_lf driver resumes the rshim access by setting DROP_MODE to 0. 6. Now there are two rshim drivers accessing the same rshim device which caused unexpected behavior. The fix is to check rshim accessibility at step 5 above to make sure no one is using it when re-enabling it. Signed-off-by: Liming Sun <lsun@mellanox.com>
- Loading branch information
Showing
4 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters