From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 0DDB9364943 for ; Fri, 5 Jun 2026 16:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780678610; cv=none; b=OkQKSHBznEUdD9utyzNoHrKFpU74e1nfceAAwkGLd+9VnNInmh8y6CcfqZ46TnElbSgpxG+qe0wkZXlwjUqLaHuNEECxuUubPti4C3PIOAqqMGElrt74K1KTRFXf+UOL8iRkDa4fv3LxYXG2DyPwZjeYP+NPQESmqZOq9xkSXes= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780678610; c=relaxed/simple; bh=d/cDT0ruaR9THqHE7wAti4oD73K1oJCeBXScG3umFvQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HsZZpoo9UDw68oBU7fr4EUYkph3rBVPQypN3CjupbZWBPdfpv4pyV7jSAKo9HMEBmgYRKQtD8bE92Uz+5EpQ43EYELN246q69i1dVgZsrFFbb63lHexUVReowWoY/fRAkV1TXoz1R5jQ7pFkXfZwS9OntJTcc16fDPNG6RCjFP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=DGLnEzMC; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DGLnEzMC" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-2c0c1e0b0faso15515595ad.0 for ; Fri, 05 Jun 2026 09:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1780678608; x=1781283408; 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=07Z9+e3inJcySCaf9Ls4BTaFTWY0Pppf5c+tjALyKsk=; b=DGLnEzMC0aA6oOMptcEqzyZGTbXMRFHkBubeM86BkxJdQ3QjAn59LPR6sejHjDA+BE 2bkksarvA2u5f2zgXovnmh7dKC7soSa0BzsVLnR4qMm68vxDdIhbFhOAH+ggECP40Do9 H1jeeg1OLn9sxt+4CRpoPd+zmoUGGnH63VzW7pR8A5IzFbQyoV5hVvyb356x/jqiMJQz LLwKwTgSNyDqMkpgDVidpeCPhRMkJFmkkoqakgs9cVndCuUKKK1V+roF+kdC1ck3OXNf rv7v/HLtKRwqbBtyLS6GyGgdwSa8d5VbgDoZLTBCnsNWCSCPZYLMc8DcixxEq1IuNNG8 2/uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780678608; x=1781283408; 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=07Z9+e3inJcySCaf9Ls4BTaFTWY0Pppf5c+tjALyKsk=; b=Ff3llxI6b3P0v6+vdbdAdXAtuA/1YASYsqDb9k1EYItbF5cwepgT8/O5fWJ06lXspk 4WMx9XD7c85zpj26xf3RR3ikoSCRCJsNQVbLMXYplcHf+6PLa4scvH4Y+yXhyiZ1WB2J d4M3ESFGpX4CeDBIdLkL9vKPfIT8xV5AwvGrSrSVoeUds+j+blR1AYhuv8cRaTipvKCS tHmhZe2bgPeARiffbdL6NYY8AMNwaeyR1uIs/MuVLeCs1D7ySUrp3ngPp05YndQrx5Gt 9+zCB/uGww5Izky0/fb0PaZDUAg8FMASSSbWCp70FRVXbv6+kOHZuAMZxXRo6k5hCH5P faWg== X-Forwarded-Encrypted: i=1; AFNElJ/0PV9VcUy5f6vO5Bp02hoWjynCBryj8qIlO/HUoBFjyX5c4FiRoahUE6e7IItRV6C9+LeY0fw=@vger.kernel.org X-Gm-Message-State: AOJu0YyZ7CHEUilZ8lUCPmg/8x4WC8cuX/8v3hViEHsVDPgyPBkcD84p WfnioY7GuiCuRPXupcKp4/Unq59kMDxJkuE00VTRHCftpufJx9xx71kf X-Gm-Gg: Acq92OFyItEf7lefm0CT1qQJn7pTiKzY/W62saDWUqII57QinNbvBDLN/tVUHzontc6 qIm15P6QcjFV1rXaCwgvg3hQrUmiOYywSyZ2UXXQZtltkv9u+12S6xdUJjxFMEda7BtTg6hVME4 nip7boi1USjcpNjm1ikbnL5noJCjNCrrXyPdXbJBgnh8Tl/1FW+lpKAoTE5aKMfBWsOBAKf5tKm AnebDH4ZWRj5YpBGsdL0IZV3ROLvuuQYegnSQ5hmWZnJFC5AWIv04RHjfXm5+1iwnPMmrxWbTEg EpG498e4CS+li8cJyzb3TJ2disnRQisNOZpWZ5BxyCKN04qwAs56JZ7okcwnJZVkTGVf6eGHVHQ mfJ6E1HYpvo3XBZRd4vIskViVqStGTHerei6+YIY+w9QUJosikBEzZae43AAmcc0bn1oQnboQIq LrPE0VgPaNZc8Od0wnxzSSiPIqqJIWS9WHFG7wg9y8qWBXJhJfm0q6FSI= X-Received: by 2002:a17:902:e790:b0:2bf:379b:53ed with SMTP id d9443c01a7336-2c1e821e5e8mr49794665ad.27.1780678608079; Fri, 05 Jun 2026 09:56:48 -0700 (PDT) Received: from devvm29614.prn0.facebook.com ([2a03:2880:ff:71::]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2c164f6dc92sm89653455ad.13.2026.06.05.09.56.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Jun 2026 09:56:47 -0700 (PDT) Date: Fri, 5 Jun 2026 09:56:45 -0700 From: Bobby Eshleman To: Stanislav Fomichev Cc: Donald Hunter , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Andrew Lunn , Gerd Hoffmann , Vivek Kasireddy , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , Shuah Khan , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, linux-kselftest@vger.kernel.org, sdf@fomichev.me, razor@blackwall.org, daniel@iogearbox.net, almasrymina@google.com, matttbe@kernel.org, skhawaja@google.com, dw@davidwei.uk, Bobby Eshleman Subject: Re: [PATCH net-next 3/4] selftests/net: ncdevmem: add -b option to set rx-buf-size on bind Message-ID: References: <20260603-tcpdm-large-niovs-v1-0-f37a4ac6726c@meta.com> <20260603-tcpdm-large-niovs-v1-3-f37a4ac6726c@meta.com> Precedence: bulk X-Mailing-List: netdev@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: On Fri, Jun 05, 2026 at 08:35:25AM -0700, Stanislav Fomichev wrote: > On 06/03, Bobby Eshleman wrote: > > From: Bobby Eshleman > > > > Add -b to request a non-default niov size via > > NETDEV_A_DMABUF_RX_BUF_SIZE. When the value exceeds PAGE_SIZE, > > udmabuf_alloc() switches to an MFD_HUGETLB-backed memfd so each 2 MB > > hugepage produces one naturally-aligned sg entry. > > > > Reject values > 2 MB up front: MFD_HUGETLB + udmabuf can only guarantee > > 2 MB per sg entry (one hugepage), so a larger rx_buf_size would fail the > > per-sg length/alignment check. > > > > Add CONFIG_HUGETLBFS=y to drivers/net/hw/config so the new path is > > reachable in the CI kernels built for these tests. > > I vaguely remember there was also some kernel cmdline argument to > reserve these? Do we need to also do something to NIPA to reserve 2MB > pages for this test? Or was it for 1GB pages? Good call, my little runner script when prototyping this adds these pages at runtime and I forgot to move it into the patch, we can have the py runner do this setup. Best, Bobby