Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v1.22.x]prov/efa: always use p2p for system memory #10397

Merged
merged 4 commits into from
Sep 19, 2024

Conversation

jiaxiyan
Copy link
Contributor

@jiaxiyan jiaxiyan commented Sep 18, 2024

Backport #10347 and #10392

@jiaxiyan jiaxiyan requested a review from a team September 18, 2024 18:08
@shijin-aws
Copy link
Contributor

Should you backport all 2 commits in #10392? Same for the other backport

@jiaxiyan
Copy link
Contributor Author

I saw the older branches did not have the p2p_available variable so I didn't backport the other commit

@shijin-aws
Copy link
Contributor

I saw the older branches did not have the p2p_available variable so I didn't backport the other commit

Then you should backport #10347 as well?

Currently EFA provider doesn't handle the fi_sendmsg call with
FI_INJECT flags correctly. It allows user to pass in a buffer with
valid MR while doing inject - outbound buffer should be reusable
immediately after function returns.
That being said, without the inline HW support, EFA provider should
do a copy from the user buffer to the internal bounce buffer even
if application provides a valid MR for the buffer.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
(cherry picked from commit 22be7e0)
fi_writemsg with FI_INJECT needs to copy from outbound buffer to
internal bounce buffer. The outbound buffer can be non-system.
Extract and call a helper function for device to host copy.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
(cherry picked from commit 1b3fb77)
P2P is always available for host memory. Unregistered buffer will be
regarded as host memory as EFA provider requires FI_MR_HMEM.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
(cherry picked from commit b0af713)
Rename to mr_p2p_available to indicate that we check the mr is not NULL.

Signed-off-by: Jessie Yang <jiaxiyan@amazon.com>
(cherry picked from commit 677bdeb)
@shijin-aws shijin-aws merged commit 87a234a into ofiwg:v1.22.x Sep 19, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants