Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
* [PATCH] RDMA/irdma: Enforce local fence for IB_WR_REG_MR
@ 2026-09-01 16:00 Jacob Moroni
  2026-09-02 16:27 ` Leon Romanovsky
  0 siblings, 1 reply; 2+ messages in thread
From: Jacob Moroni @ 2026-09-01 16:00 UTC (permalink / raw)
  To: tatyana.e.nikolova, jgg, leon; +Cc: linux-rdma, Jacob Moroni

Enforce local fence for IB_WR_REG_MR to avoid spurious
FASTREG_VALID_MKEY async events during heavy invalidation
and registration activity.

Commit 69e8e429bca2 ("RDMA/irdma: Enforce local fence for LOCAL_INV WRs")
was very similar, but was not sufficient to prevent all occurrences
of these async events.

Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
Signed-off-by: Jacob Moroni <jmoroni@google.com>
---
 drivers/infiniband/hw/irdma/verbs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c
index 9cfd84dd6869..5d71300da0ff 100644
--- a/drivers/infiniband/hw/irdma/verbs.c
+++ b/drivers/infiniband/hw/irdma/verbs.c
@@ -4281,7 +4281,7 @@ static int irdma_post_send(struct ib_qp *ibqp,
 			stag_info.total_len = iwmr->ibmr.length;
 			stag_info.reg_addr_pa = *palloc->level1.addr;
 			stag_info.first_pm_pbl_index = palloc->level1.idx;
-			stag_info.local_fence = ib_wr->send_flags & IB_SEND_FENCE;
+			stag_info.local_fence = true;
 			if (iwmr->npages > IRDMA_MIN_PAGES_PER_FMR)
 				stag_info.chunk_size = 1;
 			err = irdma_sc_mr_fast_register(&iwqp->sc_qp, &stag_info,
-- 
2.55.0.897.gb25b4bd76c-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] RDMA/irdma: Enforce local fence for IB_WR_REG_MR
  2026-09-01 16:00 [PATCH] RDMA/irdma: Enforce local fence for IB_WR_REG_MR Jacob Moroni
@ 2026-09-02 16:27 ` Leon Romanovsky
  0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2026-09-02 16:27 UTC (permalink / raw)
  To: tatyana.e.nikolova, jgg, Jacob Moroni; +Cc: linux-rdma


On Tue, 01 Sep 2026 16:00:14 +0000, Jacob Moroni wrote:
> Enforce local fence for IB_WR_REG_MR to avoid spurious
> FASTREG_VALID_MKEY async events during heavy invalidation
> and registration activity.
> 
> Commit 69e8e429bca2 ("RDMA/irdma: Enforce local fence for LOCAL_INV WRs")
> was very similar, but was not sufficient to prevent all occurrences
> of these async events.
> 
> [...]

Applied, thanks!

[1/1] RDMA/irdma: Enforce local fence for IB_WR_REG_MR
      https://git.kernel.org/rdma/rdma/c/3fb905f07ea45b

Best regards,
-- 
Leon Romanovsky <leon@kernel.org>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-09-02 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-01 16:00 [PATCH] RDMA/irdma: Enforce local fence for IB_WR_REG_MR Jacob Moroni
2026-09-02 16:27 ` Leon Romanovsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox