History

RDMA/qedr: Add doorbell overflow recovery support

Use the doorbell recovery mechanism to register rdma related doorbells that will be restored in case there is a doorbell overflow attention.

Michal Kalderon committed 7 years ago

Commit 97f61251 parent 4c6bb023 files · +300 −50Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/rdma/qedr-abi.h+25−0
@@ -38,6 +38,15 @@ · 37 unmodified lines
3838 #define QEDR_ABI_VERSION (8)
3939
4040 /* user kernel communication data structures. */
41+enum qedr_alloc_ucontext_flags {
42+ QEDR_ALLOC_UCTX_RESERVED = 1 << 0,
43+ QEDR_ALLOC_UCTX_DB_REC = 1 << 1
44+};
45+
46+struct qedr_alloc_ucontext_req {
47+ __u32 context_flags;
48+ __u32 reserved;
49+};
4150
4251 struct qedr_alloc_ucontext_resp {
4352 __aligned_u64 db_pa;
@@ -74,6 +83,7 @@ struct qedr_create_cq_uresp { · 30 unmodified lines
7483 __u32 db_offset;
7584 __u16 icid;
7685 __u16 reserved;
86+ __aligned_u64 db_rec_addr;
7787 };
7888
7989 struct qedr_create_qp_ureq {
@@ -109,6 +119,13 @@ struct qedr_create_qp_uresp { · 29 unmodified lines
109119
110120 __u32 rq_db2_offset;
111121 __u32 reserved;
122+
123+ /* address of SQ doorbell recovery user entry */
124+ __aligned_u64 sq_db_rec_addr;
125+
126+ /* address of RQ doorbell recovery user entry */
127+ __aligned_u64 rq_db_rec_addr;
128+
112129 };
113130
114131 struct qedr_create_srq_ureq {
@@ -128,4 +145,12 @@ struct qedr_create_srq_uresp { · 13 unmodified lines
128145 __u32 reserved1;
129146 };
130147
148+/* doorbell recovery entry allocated and populated by userspace doorbelling
149+ * entities and mapped to kernel. Kernel uses this to register doorbell
150+ * information with doorbell drop recovery mechanism.
151+ */
152+struct qedr_user_db_rec {
153+ __aligned_u64 db_data; /* doorbell data */
154+};
155+
131156 #endif /* __QEDR_USER_H__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t