Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.160.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795911551; b=aZZFNyHjUtMG2+5AvXgdrj9tM7pU9RPULhuK0LZBIKgBP0Ovp4sOtQs55ddHzfe8a3om fbyVx2HYWBk5r/QjyJy6PjSpcPlyRclfNyWDSYDoa03wiIBZsj9KdLWVccxyx2vvRWM1t MbiUMqCq0e/VRI0XwX09YMqi9NW++GMUuuj70/dB3AT68244pGgypL7dHXIU/nRTLQspR BMVoMogR3zCiDLpfvvUqHvslOC8NzxDF47HuPJHJr6s7Q2ObDQK4ittxnZfRqhpx0Jyo2 jVGtn/kuVbRSkYbGEJxy/V4NMedur5PHcHvc6JmK4Tc943eGHZwE+PLndo9lYg5Jjpg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795911551; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=x4YdykEfcAQocIaDTXbEJkkfYQ6a1YoShIOxrQX1NL0=; b=EpBZf93yNsvaUDKXb4xblioHEaL5epRR4F79uOCDeIHRiCoBkBqQOzikuehktDsLfGIQ 9BWx+a0raJxuwPrN6cw9ghzC4rdJa7NBBjmfjI3ZZfBYy5EsDD3QUSpm6WK2AQ2F+Jvr+ 0sdljXM6cjsxEfCwWtZPKCdVHCYIUA5ysfGqItmjdLGC4xq2dJTMp1QuoVEi6T6pxISMB hucLP+FC4qSrPsTpoJleNrxyfTK6siksh6hoBLEoaIvuC5Km2pv6jLZgS0670k1IHGUOR txrR7fAGPoeLpcJClh96i3BIik5o90SgV9UqVI4dOldpqonxVZA3aURLx/qHhWNJ4Tw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=stellman-greene.com; spf=none smtp.mailfrom=stellman-greene.com; dkim=pass header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=IPK6ZWGT; arc=none smtp.remote-ip=209.85.160.176 Received: from mail-qt1-f176.google.com (mail-qt1-f176.google.com [209.85.160.176]) (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 66A67606A321 for ; Sun, 29 Nov 2026 00:19:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 66A67606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=stellman-greene.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=stellman-greene-com.20260707.gappssmtp.com header.i=@stellman-greene-com.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=IPK6ZWGT Received: by mail-qt1-f176.google.com with SMTP id d75a77b69052e-55d3563e50eso80370551cf.0 for ; Sat, 28 Nov 2026 16:19:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=stellman-greene-com.20260707.gappssmtp.com; s=20260707; t=1795911550; x=1796516350; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=x4YdykEfcAQocIaDTXbEJkkfYQ6a1YoShIOxrQX1NL0=; b=IPK6ZWGTS1qrygHKXm7UsNMskTnPQKTToamXyMiwASnA0ROetFzTzPEHaiOQR0xgcO VBI//+itdf03GjTWTObnBY87VmRkTkAkzZ3vIgxE/3a/ZCEVfIXjPFnQlmnMoqo970li jzEJmYsVrdKiA2lYD+OuUhalokhE3WngfVqJnl7zjoXLC74G7wmlyIX0oAzcy/wwdw69 dYDMvDCCItYaxbh2IbTgic+XyO/AbCAUagvxTm9n+59FuSZyF6cLKadUAcZBHRghmCn3 kr/QambJ/oX/MKRw22+p0Nzo5hjiHzmfklnFTS0iL4iX4qrafsi3ew7Cbw2PIrjAEibE 5dhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795911550; x=1796516350; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=x4YdykEfcAQocIaDTXbEJkkfYQ6a1YoShIOxrQX1NL0=; b=e6fel6gqm2GfLaa38/qepqDtaGxXUrjzWy6UI7PGLRj+1G3HY+rVEOr5ereWioo9LR sNhQIUl80SrKPmvr/L+6tzgt2jcxRVzoiV88E33TRUubEbGWJHxc5ozBF67lct61gNQv iBXXsijCp5ZdAPITVjVuMVunvyzTj1CgsUEKodSWyelFyBkJULU07pjHgwS95FuYqWt5 rmrnKJV4yopm6+F4SzmcMF/+gCh01On1rTCENTn//3CxJ5Jx6mdPAB703gYQcNhyPyP+ SQrNu/SsDllmhGfTwDJeJULA4P9tGRfrtjG7pJURsw+TW+Irluh+7/HL3aYi+QXgwrP8 qgDw== X-Forwarded-Encrypted: i=1; AL+hErGe9yBZggM0C2wZNxeQUzZko5ue45zGyMH16ALD7yxQ7ga7hgf3XQG3f8kC4kc5oHPKUm53He06rrc0@vger.kernel.org X-Gm-Message-State: APuU4Z8OAuGlbnfeLzoHjM2jWKDRYAMiYREmv09kTkmFFeTL3qQScyve EjbtLz3FQkitwepy3ai0M5PMfHMZCanMcAe6MciRBUidj75PVSlUY3hJ3XWzD/tMe0A= X-Gm-Gg: AZFdTZe4XMpeb8Daa5UQ+IMlHRoEWlzbvLUTbzb2aMWvFpvSVJZ8sN5HDW8wiMgwVft nvqJ4ABx6Yrz5TyU+0Gvabve1XFo6hSIoJS42EkyUmUf4Ah9HUCR+geC6u2GLYGFSWmyAuGXI16 N18J+zJMDlIQrO0LQoiaH6qOJhXSsUx+8upwaQdpEyjl7akRc2x6L54bWFDN/w5Ma+G9q8QKinm zvjLzhcOW3hqrB23zkcOfoBCPLUKRJzSyshMhEcMfwatXQxYDXrw6tnVn/KA1VZb6BBorw6kRIk pK6nnt3QeTMiDzlAY0SlZs8LjB+nDrlZHXO9rjpsEFvsBXRqxCSk8sM1oWp4mgga+G57ZeC9BPV 8EV1SrNZ+SjlG7ZSwxsJC0aP7HJvqSSpnQvi+Z1tCuF9ADVVdeiBslgTocyNf/EJBqYyFbNBQJr KjJMAGotUm0q87nbgN14ce9yvgl/ACQG0D5y177V02OyNWulEfStdCZEYcRS8evlA9pGAjxtG0J 2Mpf3dEv/biosFOTI2xEBs3GNyogalMi8ky91bqrBziIdScoxKPWA+CJivwA3IbUp+XtVxJwTXt 9GctU1v6hjP6SCZw/ySFnHG1rGInU1vOFlmYljKVyzt/DaOAGg4zz6bphzo971VxfCkkrLmPdFt EpvtCsUekLDmw1Sol+QfKYgc= X-Received: by 2002:a05:622a:1904:b0:55c:a7a8:c648 with SMTP id d75a77b69052e-55d769314c4mr530075211cf.11.1795911550336; Sat, 28 Nov 2026 16:19:10 -0800 (PST) Received: from Mac.mynetworksettings.com ([2600:4041:5c28:200:3c29:a645:a023:b4a7]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-55d7887bec2sm244303141cf.22.2026.11.28.16.19.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sat, 28 Nov 2026 16:19:09 -0800 (PST) From: Andrew Stellman To: Zhu Yanjun , Zhu Yanjun Cc: Li Zhijian , Jason Gunthorpe , Leon Romanovsky , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH rdma-rc] RDMA/rxe: Bound MR copy and flush chunks to MR pages Date: Sat, 28 Nov 2026 19:19:04 -0500 Message-ID: <20261129001904.79077-1-bugs@stellman-greene.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: References: <20261128140840.59003-1-bugs@stellman-greene.com> X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.