From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796291189; b=BWeLDEFyKrucLhHToJccWhEEJOwFbIdQa2hgLxCiWepLLNaoMgBuvTKWULtRSrBt9dN6 +Sq9zRlaiT8NeD+/OdsptFur5gNYsUeAcveG5rduK03PBI+clNFIAigRDj7FmW1AdxFo9 qsC+5LqvzmF/NmbPMDwE2c76e0rLKInqO0b3k2WwiCkgEvsu0P1/sj/5XejIij/77hl/D Pjm+NRH8/Pl9Pxpf2JU7tTwpYtgk4kJpx5o6gRf/eySKNZAr3TbUn4HD5iBxnM/PKPLzf w8cDbvEIhlJOszAfDLkMx7iAO69xkRuuMbyh6FCAjkxC+7Z+6zvyIAjLy9RkDdPw7lQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796291189; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=eUHmfkIT89PkmIITGRlKVRiELiaBMW2Virn9DA9xOTU=; b=I9ynVJ/MdpT0RaSWcVQc1x02VfY3qRs2O1eAUDD0scR9O7Qw8gSx1POb5+truJEJdXj8 vV4Reo6ffv7Qsx15Wos1OaGBqVh5YoGVqi1dKXkFafup8PX74Bz5MenJ76KXA6u6OjSan 3Q04GbtPSPp6Bo/rKFVdA5Bgf1w1AIdGQzbAFZkDSw57KpLRgzBRHEzrzJ1zgxLQnKQif iza3W32/oTpR9xlrcl8O+C1p+5ohg3utyStdmyEkxjdOcZTMmrDmBQcu0KLrZtLhLmjzN q6QqVzMPUz4j2DpatUlquDQQv+WZpDyy5na4hqdwLS9WR6RDIFS5HwQPJRXUpVLugjA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lyVBY4Uw; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FAE9606A32D for ; Thu, 3 Dec 2026 09:46:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=lyVBY4Uw Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F9391F00896; Thu, 3 Dec 2026 09:46:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796291189; bh=eUHmfkIT89PkmIITGRlKVRiELiaBMW2Virn9DA9xOTU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=lyVBY4UwQ5twQEXjb1Ga2Xvu+leQS89xbjGDwYSHikHUVv2PBYTVGxg2R5KoyUdJp LZsW2xFiM/PP1Gk+GZ+qixZ+dXaQ2fv6/RTk5krTLtUef3AHYzYg3w4RPshTHOIRiJ f6X0JU9z18DGJx4DRqsSMdlsVwrmdoSnATW5rcgD2N6L1P1Y/WyxEX3o2rdO+jwbXQ ScIROthbKWjfYnkqnKtRS3ObATGiF0Qt1rXbjxDqzGbz85koqjZFbo3plJ08z62aMd DaPea2ulho356IhnQFNaMJcx1WT1fTYNXblo/KX3Or7gEzVm6PtVtxg5sayv/RjWSw hHZuObqN+lMgg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] RDMA/cxgb4: program the upper 32 bits of the fast-reg MR length Reply-To: sashiko-reviews@lists.linux.dev To: "Showrya M N" Cc: linux-rdma@vger.kernel.org In-Reply-To: <20261203185637.27223-1-showrya@chelsio.com> References: <20261203185637.27223-1-showrya@chelsio.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 09:46:28 +0000 X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] RDMA/cxgb4: Fixes trailer cites wrong commit for 64-bit MR length -- commit d38571d9c9d44d2d2a2f8dbb7f241c256d88b11c Author: Potnuri Bharat Teja > RDMA/cxgb4: program the upper 32 bits of the fast-reg MR length > > ib_mr.length is a u64 and cxgb4 advertises max_mr_size as ~0ULL, but > build_memreg() and build_tpte_memreg() always program len_hi as 0 and > truncate the length into len_lo. A kernel fast-reg MR of 4GB or more, > e.g. one mapped with a large page size, is therefore registered in HW > with a truncated length. > > Program len_hi/len_lo from the upper and lower 32 bits of the MR length, > as write_tpt_entry() already does for regular MRs. > > Fixes: 8376b86de7d3 ("iw_cxgb4: Support the new memory registration API") > Signed-off-by: Potnuri Bharat Teja > Signed-off-by: Showrya M N [Severity: Low] Should the Fixes: tag cite edd31551148c ("IB: Correct MR length field to be 64-bit") instead? At 8376b86de7d3 ("iw_cxgb4: Support the new memory registration API"), ib_mr.length was still a u32 and build_tpte_memreg() did not exist yet (it was added in 49b53a93a64a ("iw_cxgb4: add fast-path for small REG_MR operations")). Truncation in both functions started when edd31551148c ("IB: Correct MR length field to be 64-bit") widened ib_mr.length to u64. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203185637.2722= 3-1-showrya@chelsio.com?part=3D1