From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67D2D51993C; Wed, 30 Sep 2026 17:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790788193; cv=none; b=njfrYvP/UkswPOaPrJM3poo4qdwJX9Hm3nPaOjPP7jqbqnfVUPlh0/2mwMwWMwtUiiVmNPfIvhNRoCRap+VlKJwmrESd8fPU0zv/95SrX9IfUjrXLxr02OVnQJkAdKJbDHw4IejKWhyQKRJOgbCtf+rqBB8pY4jJq+hMjdMRQQg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790788193; c=relaxed/simple; bh=zINaK27t6belHzombJjSjf4vVUvjo78E/4vwtzvoR/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bZolKOqrNNdvnUDc3NvFvcX9rVb5MwAz8AoyJsPtxvzZ/KBC67ceDtE1myS7Qc6/bqHxsdVgiUObk81SYI21X8fP4cVUZ6DV8Wyy1QDyax+FgQsN497MJzEEfPWbmw2vyFj4zJJYIQZwFbJhyfgmLeqMuA+fxj8BedTHJCuAxks= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=paABv++Y; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="paABv++Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88FD31F000FF; Wed, 30 Sep 2026 17:09:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790788192; bh=noscM4AmyTvZX99sWW0gACjIl+n+NXJncPppvtEG58A=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=paABv++YsX+8l6IukVR+QWkP+D7CpO9n12dk7ME68jZfnZ8u31kv7bryo14CblsVn 5fqM2PC0MdnfeQENW9Muoe2D45AdXc68gCsQ7VeVZVwoO11DhfJYjWWb/HI4vkCw7m zikk86eDwOMbg0TyXY3FKbMP2tC9TymGzsKQlSXs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jacob Moroni , Leon Romanovsky , Sasha Levin Subject: [PATCH 6.12 038/877] RDMA/irdma: Enforce local fence for IB_WR_REG_MR Date: Wed, 30 Sep 2026 17:15:49 +0200 Message-ID: <20260930152415.567182517@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152414.738996857@linuxfoundation.org> References: <20260930152414.738996857@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jacob Moroni [ Upstream commit 3fb905f07ea45b31c8f67ba6e4668de46f527e65 ] 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 Link: https://patch.msgid.link/20260901160014.2026285-1-jmoroni@google.com Signed-off-by: Leon Romanovsky Signed-off-by: Sasha Levin --- 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 d8e101fc74ff7..97fa345635524 100644 --- a/drivers/infiniband/hw/irdma/verbs.c +++ b/drivers/infiniband/hw/irdma/verbs.c @@ -3571,7 +3571,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.53.0