AWS: Clean up DRM FDs before PCI rescan post axlf load #8753
+84
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem solved by the commit
AWS performs a pci rescan to change the PCI device ID during the first image load.
If there are any references to DRM render files which are not closed during the pci rescan,
XRT driver hangs waiting for ever to get the driver instance closed which usually happens if the DRM FDs are closed.
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
XRT hangs indefinity in AWS environment during the PCI rescan after axlf load.
How problem was solved, alternative solutions (if any) and why they were rejected
Fix is to close all the opened DRM render FDs below the PCI rescan is issued.
Risks (if any) associated the changes in the commit
This is AWS specific change, would not impact other cards.
What has been tested and how, request additional testing if necessary
Ran RTL kernel APP to see the all the FDs are closed before PCI rescan, no hang observed.
Documentation impact (if any)
NA