Use the doorbell recovery mechanism to register rdma related doorbells that will be restored in case there is a doorbell overflow attention.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -38,6 +38,15 @@ · 37 unmodified lines | ||
| 38 | 38 | #define QEDR_ABI_VERSION (8) |
| 39 | 39 | |
| 40 | 40 | /* 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 | +}; | |
| 41 | 50 | |
| 42 | 51 | struct qedr_alloc_ucontext_resp { |
| 43 | 52 | __aligned_u64 db_pa; |
| @@ -74,6 +83,7 @@ struct qedr_create_cq_uresp { · 30 unmodified lines | ||
| 74 | 83 | __u32 db_offset; |
| 75 | 84 | __u16 icid; |
| 76 | 85 | __u16 reserved; |
| 86 | + __aligned_u64 db_rec_addr; | |
| 77 | 87 | }; |
| 78 | 88 | |
| 79 | 89 | struct qedr_create_qp_ureq { |
| @@ -109,6 +119,13 @@ struct qedr_create_qp_uresp { · 29 unmodified lines | ||
| 109 | 119 | |
| 110 | 120 | __u32 rq_db2_offset; |
| 111 | 121 | __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 | + | |
| 112 | 129 | }; |
| 113 | 130 | |
| 114 | 131 | struct qedr_create_srq_ureq { |
| @@ -128,4 +145,12 @@ struct qedr_create_srq_uresp { · 13 unmodified lines | ||
| 128 | 145 | __u32 reserved1; |
| 129 | 146 | }; |
| 130 | 147 | |
| 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 | + | |
| 131 | 156 | #endif /* __QEDR_USER_H__ */ |