-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/efa: refactor hmem interface initialization
This patch removes the trial device memory registration with EFA device during domain initialization; instead, we query the sysfs to retrieve the P2P provider information emitted by the kernel module. As a result, we have to delay the dmabuf support status check to the 1st application fi_mr_reg* call: - We always register the region via ibv_reg_dmabuf_mr if the application requests FI_MR_DMABUF - We will disable dmabuf if the hmem interface does not have P2P support - For the 1st fi_mr_reg* call, we will try ibv_reg_dmabuf_mr - If the 1st fi_mr_reg* call failed via ibv_reg_dmabuf_mr, we will NOT try ibv_reg_dmabuf_mr again, but always fallback to ibv_reg_mr API for that hmem interface - Otherwise we will always use ibv_reg_dmabuf_mr for that hmem interface Signed-off-by: Wenduo Wang <wenduwan@amazon.com>
- Loading branch information
Showing
5 changed files
with
196 additions
and
187 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
Oops, something went wrong.