Skip to content

Commit 97f6125

Browse files
Michal Kalderonjgunthorpe
authored andcommitted
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. Link: https://lore.kernel.org/r/20191030094417.16866-8-michal.kalderon@marvell.com Signed-off-by: Ariel Elior <ariel.elior@marvell.com> Signed-off-by: Michal Kalderon <michal.kalderon@marvell.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
1 parent 4c6bb02 commit 97f6125

3 files changed

Lines changed: 300 additions & 50 deletions

File tree

‎drivers/infiniband/hw/qedr/qedr.h‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ struct qedr_ucontext {
235235
u64 dpi_phys_addr;
236236
u32 dpi_size;
237237
u16 dpi;
238+
bool db_rec;
238239
};
239240

240241
union db_prod64 {
@@ -262,6 +263,11 @@ struct qedr_userq {
262263
struct qedr_pbl *pbl_tbl;
263264
u64 buf_addr;
264265
size_t buf_len;
266+
267+
/* doorbell recovery */
268+
void __iomem *db_addr;
269+
struct qedr_user_db_rec *db_rec_data;
270+
struct rdma_user_mmap_entry *db_mmap_entry;
265271
};
266272

267273
struct qedr_cq {
@@ -482,7 +488,10 @@ struct qedr_mr {
482488
struct qedr_user_mmap_entry {
483489
struct rdma_user_mmap_entry rdma_entry;
484490
struct qedr_dev *dev;
485-
u64 io_address;
491+
union {
492+
u64 io_address;
493+
void *address;
494+
};
486495
size_t length;
487496
u16 dpi;
488497
u8 mmap_flag;

0 commit comments

Comments
 (0)