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

libhns: Support mmapping reset state from kernel and reporting software wc #1504

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hginjgerx
Copy link

Support mmapping reset state from kernel and reporting software wc.

Junxian Huang and others added 3 commits October 14, 2024 21:07
To commit: ?? ("RDMA/hns: Support mmapping reset state to userspace").

Signed-off-by: Junxian Huang <[email protected]>
Get reset state from kernel by mmap.

Signed-off-by: Chengchang Tang <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
If the device has been reset, fail the post send/recv/srq_recv and
return an error to notify user.

Signed-off-by: Chengchang Tang <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
When HW is being or has been reset, it won't generate cqe anymore,
and users can't poll all work completions as expected.

This patch allows userspace driver to compose the expected WCs
instead of HW in this case. All SQs, RQs and SRQs is linked to a list
respectively. When reset state is detected during polling CQ, walk
the lists and compose software-WCs with error status IBV_WC_WR_FLUSH_ERR
according to the polling number specified by users.

Signed-off-by: Chengchang Tang <[email protected]>
Signed-off-by: Junxian Huang <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants