Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D3A211DE3DB for ; Thu, 29 Jan 2026 13:21:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769692862; cv=none; b=Zkl9NU215Jx0j2Z5nJqEehi+tfFClIS7yqQsW0zn1pxpFj9XDaHKnwu+qoKGhEMQTpJ2VYIS1/K87HvQHPN5vQeZEkJQgxl8vZCpdBFQnYDw8yzUAFZRuBMBHA78YxYJgflWURvs0NfiDTeHMd2eDKRt3RMZ+EZG56yzpDVWZzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769692862; c=relaxed/simple; bh=vh7VpdWClqvupBRtUyQ4oaehf0QJg+QlY6j9lsmTLm0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VGbyMEwnqFcmWK9ZMRpjqbG3IhAXwd075Df8LkRiSwxcvGrazjLnXhvQHCmg/0DDaIBYiR/CQHx0S5FpB9DpqAWEvgAkKpwGPR4n6/0yGEDdpokSyqduTJs0e9H0lBgZun8gVuIOdOKnAdAQHfu4OrFqmqrqJh6DLZ9Cx3yE8zM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=P91dyL7G; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="P91dyL7G" Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-8c07bc2ad13so77289785a.2 for ; Thu, 29 Jan 2026 05:21:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1769692860; x=1770297660; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=vh7VpdWClqvupBRtUyQ4oaehf0QJg+QlY6j9lsmTLm0=; b=P91dyL7GH3Q3LC1VWC0ggnpPNgv2Ft+cnx2Jr0aJlCZFs9gQAU9NwkQiHHUhx+lXBj /zDrpCaRR/VC4OEg21KoY57JaR3Lt/ArETPe9W+zwQxZATbLOzUq/GZ4H1e12lo6tYYp Je9ouB5/T1ePvvGCr91wVQGBHGInWtK9m/Kh1WdC8qvd663Vw9OobOtqjbCejw82R3jj a+oqHZkjTK27Qs9WslKpOG/HZH6gWVC1y6gKf/i66lflCwYxfKEdka6ZUp76liThwQG2 QH3Ikpom6eUTKGcDL4FyUWc/rm5/C/Pk0XSCmsXTKgaDRv6n0u0Dp8jOlc2P0Pbeck5e /I2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769692860; x=1770297660; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vh7VpdWClqvupBRtUyQ4oaehf0QJg+QlY6j9lsmTLm0=; b=ZF5NK+HIFnzGmsMvrcDuKbK7zUa/1JUP7MD0joYQKuhw2CWSH8cZYeFAznJrrESyHQ Ngjt/yps/jilzcpHOwFwLK/O7oEJ4CiScet2ylUZGNOoq1IndKkyXvCC29FYu8XxjwYf O+SDuJ0iT61mCBaVTHAd0KF+53EN7XruMIdpnMDJEuvZG3R59hobrlKrQvqyRsgjmn2P 5JRCizcrPPsoBVww+707B9zYdt4KgZ0OAp/t4XAUscd+B5t4BccHhE/u+ttraHOKFJYk irc3hjWJCquKG9L4Ok9jc+P+uPZv4oCYGwKwNBt2vmtB1M3ZYvy1fteWI1bJWemQ+ijo BRmg== X-Forwarded-Encrypted: i=1; AJvYcCUWxkK706e5OOmHGnHjaS2rGjI5slDZnr4nrvCUHAEQBQGWAEUSyU87H0q7Kz9q8Kc20yJ8+CPWP/On@vger.kernel.org X-Gm-Message-State: AOJu0Yw+vm1JzflLN6NrdXVKRGAfcoXudwObUmDW8MD9N0WMXmFA4YVL pW1PlDQphxO7e+M5VhSxm4+erk2GZr8ZCjyEog3IkZa3ZYL9H0NhE8vc2HnwDfhLKgQ= X-Gm-Gg: AZuq6aJ0C5XovjrKhiSnaIFJexezdSwgooOAWPIdNYlZRGn1yieRuTbITv+5I+Km0vT SatnJ2fORh72a+mXzESt+716Umhx63hWrGhzV+8FhoFcd9IqMelrqmpG9s5lzyrvOJoDoA9e8P3 +IDe31cQ+6iEW7d1OfRjlPFtpQUl4Jky9779S56Z71D4GdriDBoHOFjSPu6Uci/YklIleUVvWve /tVF6ZKWvUH0SW+Jw6NFlQvByViarNkAaqvp4qp4nuO+eMgq3gTJulctoLa/nQgfhPG69pL9gxP hLWYC7tDA82/wJBf37K/p47x8iZZ+o7X4nPguZz3yhZy7ERZSxzyY3+UyWFeSPmJzE7K4WwKXkH OLbzDdie8pMGvjlYB/ijpYYnOAz1IEBCYSlulXaaE/BpWhVmoNt4l02ULfRK7tKj9vJqA9PMU5W she2PN6WinIGNZjFSJHonaOSZUkII6GSyHxEs338w2CW2qSaMFhobcptzFutJyHS2l9aY= X-Received: by 2002:a05:620a:444d:b0:8c7:177f:cc17 with SMTP id af79cd13be357-8c7177fcf62mr589344485a.46.1769692859712; Thu, 29 Jan 2026 05:20:59 -0800 (PST) Received: from ziepe.ca (hlfxns017vw-142-162-112-119.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.162.112.119]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-894d36a5fb1sm37087576d6.9.2026.01.29.05.20.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jan 2026 05:20:59 -0800 (PST) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1vlRxC-00000009joR-3Dw2; Thu, 29 Jan 2026 09:20:58 -0400 Date: Thu, 29 Jan 2026 09:20:58 -0400 From: Jason Gunthorpe To: "D. Wythe" Cc: Leon Romanovsky , Uladzislau Rezki , "David S. Miller" , Andrew Morton , Dust Li , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Sidraya Jayagond , Wenjia Zhang , Mahanta Jambigi , Simon Horman , Tony Lu , Wen Gu , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-rdma@vger.kernel.org, linux-s390@vger.kernel.org, netdev@vger.kernel.org, oliver.yang@linux.alibaba.com Subject: Re: [PATCH net-next 2/3] mm: vmalloc: export find_vm_area() Message-ID: <20260129132058.GC2307128@ziepe.ca> References: <20260123082349.42663-1-alibuda@linux.alibaba.com> <20260123082349.42663-3-alibuda@linux.alibaba.com> <20260124093505.GA98529@j66a10360.sqa.eu95> <20260124145754.GA57116@j66a10360.sqa.eu95> <20260127133417.GU13967@unreal> <20260128034558.GA126415@j66a10360.sqa.eu95> <20260128180629.GT1641016@ziepe.ca> <20260129113609.GA37734@j66a10360.sqa.eu95> Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260129113609.GA37734@j66a10360.sqa.eu95> On Thu, Jan 29, 2026 at 07:36:09PM +0800, D. Wythe wrote: > > From there you can check the resulting scatterlist and compute the > > page_size to pass to ib_map_mr_sg(). I should clarify this is done after DMA mapping the scatterlist. dma mapping can improve the page size. And maybe the core code should be helping compute the MR's target page size for a scatterlist.. We already have code to do this in umem, and it is a pretty bit tricky considering the IOVA related rules. Jason