From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=91.218.175.73 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795912587; b=KGeiiBZAA+IfAIPeuB0otHfn4hPwFeKQEX+ENYe/jq33T23nk0TmSwe6Qw3TK2oV11rd BahkVzo37oyWbp7p23ozbwY/gCQm53MCpoEnYzC4UZeYtJyRtmVRvjHbHmsAHYmDdy2pl SndG9mFFVc+VcV1rhMxYfCI/eXc8rvZUbX/wdnkxfqHqQEF+8r2vwg/5fXRMZJUQ35n/s KpoU/3vPmnE4edOmXBaQlXIap2nUheT41so1dxMZkV0JQqlouvlSv4inSYHVUtGiXuTJ9 hfAJ/IIVt2zn3YRYFD3VmegrPfpHNqAnVXTWeZu3JQU+hcCVBX7q0FQ/N1XZCQG0z4A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795912587; h=DMARC-Filter:X-Envelope-To:DKIM-Signature:X-Envelope-To:Received: X-Mizu-Trace-ID:X-Migadu-Flow:Message-ID:Date:MIME-Version:User-Agent: Subject:To:Cc:References:From:In-Reply-To:Content-Type: Content-Transfer-Encoding; bh=EQJil8fexHSWVR8uca/jMpJ9f82+uAnW8vvjzZo7B0I=; b=QOGOLXp2wr6avcYTD7IA5DuQtXbWP3+RlNJ2e51Kroo2xNweSuCmhTvLObv3w1MI6B0A lGQiRDYgPFSDFE7PQWx9FcIUQ7jbQIfgKE4UKkz3cZfBPhi3ly21KrNtjA2y0OuoZ4OIG nfkFVqyrE9NGG9AOSAto+7UpnGQtUVJDzLi+CJPOK8FwRjyMmLc/NdC34gQ4a3M7WEDHl ItUBrDTePOk7dWUbwGjoxK4+4qblUCRdQpwDtcKwXyK3uOIrNP8L/WfRvKfarlfjLOKjt GmC9ln5B1Fauw2f8Helw+UubmmWsxfjvDyDPijGNSoeKWlKt/DK/U9orYDD8pH6XxZA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ACJrouNZ; arc=none smtp.remote-ip=91.218.175.73 Received: from mta0.migadu.com (out-73.mta0.migadu.com [91.218.175.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BD94606A31C for ; Sun, 29 Nov 2026 00:36:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4BD94606A31C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linux.dev header.i=@linux.dev header.a=rsa-sha256 header.s=key1 header.b=ACJrouNZ X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=VVRAscIXrugAH0BGCeqTbQcdj0lV0klkm6NmMNV5Ylc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1795912584; v=1; x=1796517384; b=ACJrouNZm6Gnqa1PSAPfiXiEaikMxR0p6+yRcZwQnxiZihdjr7bCA1LdJnRKs8PTzW1+2ul8 4rzk8LHwkkqONBVgxvpBIq3LXRjjw5ehUbkVrcUHA3x3sr7PULOXMLZQGirIV/7KkpdlQMn6riN pFQDIGLqOPsE8CPECTmb1ZTA= X-Envelope-To: linux-kernel@vger.kernel.org Received: by smtp.migadu.com with ESMTPS id a92ac5320260c7ae; Sun, 29 Nov 2026 00:36:24 +0000 X-Mizu-Trace-ID: a92ac5320260c7ae X-Migadu-Flow: FLOW_OUT Message-ID: <77aba02e-64a7-4987-80f8-46c5301ac106@linux.dev> Date: Sat, 28 Nov 2026 16:36:17 -0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages To: Andrew Stellman , Zhu Yanjun , "yanjun.zhu@linux.dev" Cc: Li Zhijian , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261128140840.59003-1-bugs@stellman-greene.com> <20261129001904.79077-1-bugs@stellman-greene.com> From: Zhu Yanjun In-Reply-To: <20261129001904.79077-1-bugs@stellman-greene.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 在 2026/11/28 16:19, Andrew Stellman 写道: > On Sat, Nov 28, 2026 at 09:21:58AM -0800, Zhu Yanjun wrote: >> Please also modify rxe_mr_fill_pages_from_sgt() to account for >> mr_page_size(mr) relative to PAGE_SIZE when populating MR page >> entries and offsets, and remove the obsolete WARN_ON() check. > Thanks for looking at this. As far as I can see, that case can't > happen on current rdma for-rc and mainline. The only caller of > rxe_mr_fill_pages_from_sgt() is rxe_mr_init_user(), which calls > rxe_mr_init() first, and that sets mr->ibmr.page_size = PAGE_SIZE. > Nothing changes it before the fill. The 4 KiB MR pages this patch is > about come from fast registration, which goes through rxe_map_mr_sg() > and rxe_set_page() instead. > > So I'd like to keep this patch to the copy and flush bound. Do you make tests in your local host? Or just use AI to make static analysis? Yanjun Zhu -- Best Regards, Yanjun.Zhu