🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8021

Re: [PATCH net] selftests: drv-net: devmem: Skip when hugetlbfs isn't supported

#8021
From: Jakub Kicinski
Date: Tue, 27 Oct 2026 21:15
31 lines
9510 bytes
On Mon, 26 Oct 2026 10:38:50 +0100 Maxime Chevallier wrote:
> On 10/23/26 19:52, Jakub Kicinski wrote:
> > On Wed, 21 Oct 2026 11:08:51 +0200 Maxime Chevallier wrote:  
> >> The devmem selftest requires accessing /proc/sys/vm/nr_hugepages,
> >> which is only available when hugetlbfs is supported. This isn't the
> >> case on all CPU architectures, for example it isn't supported on ARM
> >> 32-bits on cores that don't support LPAE.
> >>
> >> On these devices, the devmem kselftest doesn't skip gracefully  
> > 
> > We don't require graceful skipping. If anything IMO hiding the stack
> > traces isn't great.
> > 
> > If the check is extraneous and makes us fail some tests which don't
> > actually require huge pages please make that clear in the commit
> > message. Otherwise the net benefit of the changes is unclear.  
> 
> hugetlbfs isn't required for devmem AFAICS, but the blamed commit
> moved the access to nr_hugepages before the actual "is devmem
> actually supported" test.
> 
> I don't expect the full test suite to gracefully run/skip for devmem
> on these arm32 platforms TBH, it's likely that devmem is only something
> that's been used on platforms that support hugetlbfs anyways, but
> strictly speaking both features are unrelated.

For max clarity I should have simply asked - does it make any test which
previously failed pass on any of your platforms? (incl. some WIP
patches that'd add devmem support) That's basically the criteria 
I think we should use.
Technical Details
Message-ID: <20261027141555.47156425@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352611-linux-kernel-netdev=dewy.ru
References: <20261021090852.996899-1-maxime.chevallier@bootlin.com> <20261023105258.2a6349f9@kernel.org> <ce8f0d43-0078-41e7-a5d2-cf31c6dc97fb@bootlin.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352611-linux-kernel-netdev=dewy.ru
From: kuba@kernel.org (Jakub Kicinski)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] selftests: drv-net: devmem: Skip when hugetlbfs
 isn't supported
Date: Tue, 27 Oct 2026 14:15:55 -0700
Organization: Usenet Network
Message-ID: <20261027141555.47156425@kernel.org>
References: <20261021090852.996899-1-maxime.chevallier@bootlin.com>
	<20261023105258.2a6349f9@kernel.org>
	<ce8f0d43-0078-41e7-a5d2-cf31c6dc97fb@bootlin.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1636654"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:LJjflgGLPmU15LH3AfG+7rzcEQA= sha256:f5Yjj6CR+IO7RKEeu8r7AIEhnyhI/MMAG8J7VwuTZaE=
	sha1:nqZ9j01yFnMBfEedkxnpMzXBJBU= sha256:cW9E6SuvHwD0xJ6PcYpLSczvoCzi2UGomiWR6vqzgBA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 38C30125C24; Wed, 28 Oct 2026 00:21:49 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id FWBIrm5cjb3L;
	Wed, 28 Oct 2026 00:21:46 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352611-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 2A580125C1D; Wed, 28 Oct 2026 00:21:35 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 7DBEB30F9B; Tue, 27 Oct 2026 21:16:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793135773;
	b=tIdupM5GomSB0Xk9bRF5D03hX8YefofB5u6M+K5dryN2k6IaYs5PR3dRzluX11EqSxUG
	 4anjaciu5Xn1vbXPvw9w29vBHnc6O1yHm7CEe7cWUizZCHjBGGM+LPjBqS2ptsS7HOS1s
	 8gNGd6h1gOA7s8O1Hv1dcoHHeOBm96MjM69Hqym3s0CZtICe7jJkI8V+iX5G+KUSEmCyK
	 +ahpdE+3T7cecpUun7Wg/igV5Zqz9oImF59HYbg+82zUgyF7YRF9kaVoorIodzBLMici/
	 cGsJ9mIRDrx9iTz/AsCGLjQfqFyE0JunpU/R1wZiI34pSQEeHCchhXel1a0jKRbSZ3A==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793135773;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=1geKdmmBe6wShVVeouzZVWU6ZgEft6JbnCNtrUokX/0=;
	b=GkwlMdSFExnbZ1dHqLtaJVf8brViINm6khB3THqA3VLCUQWFQdd04cvZcfAr3cwzQE8H
	 /+ZWoqCZFRpDCLzDOUOv00sTcvKV3mVv3kKEHy4D2fIxhC5mjXLq+SxNRmlYmr4YC5RKa
	 qZc2dZJbGwRDLRiw0hBLxwzLTVXgfbkEihaMI+VNHVba6e+h3Dl6/qSq1DTE7OzQ3QHwL
	 lXsB1M287A1iPekcU/5TGVXpK8xtRFgnB3NuJ2ERwn+/rIDeppkRVUk88Pr+KzCXM2Wkr
	 Qzp7hmArqnb7nQmsSAdF9ZtjVgrVABg147aHAwc5qC6mWacjYs6fDEgnr6ORYmJ2O3g==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iMTdTJIq;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 526EA606A322;
	Tue, 27 Oct 2026 21:16:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iMTdTJIq
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793135757;
	b=woiNLd5AZE/ucECHr9hqrgL+HDYHwxcZHxF3GZqXachjDl1ef7HvJWr58vo7hJothd2R
	 U6ZocQ4nGGWwl4oitoV0uw83XMzFXFP8iwO9M+HmGBspneUxtKEuOMQ1iq5ARS6mf0eh0
	 xXg1JiDZBNp7Ka4c/ltS2DsBF3/8mSoKt0MiQEXGztV0+bSdx4X3TRGnevodnT9dSAu/w
	 18HyWYuXoclxjJF6pjiJHZ9EhKHedmgVQnjwMpGnnqT0aLA8/vuxrEO9mlvNSvGPfj+Zh
	 XDMEN6XZbnJEdkBsjbKnxfoCiq0dR0D3jrsNkJlB2gFSFmhXv7Cq894NPqaKHWDMcsQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793135757;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=1geKdmmBe6wShVVeouzZVWU6ZgEft6JbnCNtrUokX/0=;
	b=BwoyveiEF5IjBxPELqOEC6jaf8tp/vHgbeFCFJl/XiU5ZTjl+GpUrTpGvsnGIarIdIZ5
	 0ZJV/kENNjiz2wRdffhAUQVbFALWOFPN9kHnQcFTEai4aAMq659pLBpTMOrSH601IoQKk
	 DGe1Hfu3vgo3k81wQ1+PNjKF+JCwvKIkYi/qPsfpzJ8Iv6fvybdXsUVxfqNtObp3GuIba
	 jdfJic6SyIzFMnGSrNKHW8Ne3fMCYD627NevgetoHFYuMiLr4PGifHrlcV1idZ9apwsQp
	 IVFzzmBs3QZPaGouHTTzZ2TP/WxF4EA47E5zufiLpe+3y+fbaCE6qyJjsKTploKMi0w==
X-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=iMTdTJIq;
	arc=none smtp.remote-ip=100.103.45.18
X-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 19636606A321;
	Tue, 27 Oct 2026 21:15:56 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49D5D1F01825;
	Tue, 27 Oct 2026 21:15:56 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793135756;
	bh=1geKdmmBe6wShVVeouzZVWU6ZgEft6JbnCNtrUokX/0=;
	h=Date:From:To:Cc:Subject:In-Reply-To:References;
	b=iMTdTJIqfd7q3bqiB4lTjK+yCSECZ8NTgHmuEaDypAVHeQ7xRNc5nxvo/gsqIUyRt
	 Ayi7SIyk0hzgw/LkRweXI/fEVljOzlgSAtNf4I8TjksLR/0rtEw+bTJqk0ryJGGnOa
	 +jx/q/y9UaP/zhOYMHiFBeeU1Zx6mSkec5KAhd2WTDVGLwn9T6M3geSNMAb7CI/bpm
	 X/9Wb74ORm6qNrKKAtLrDqYy1cyfBkjpHp3EOLKo18pcilggRxSk/rhSFGId9kLgK1
	 brEZQPImp38oLRdnwS6neMhZ/GHluWmjbkHfxqEU/+tbrH54wcJC9hfZ+an5SG3Lqs
	 7T0NvE7WHvMZw==
X-Cc: Andrew Lunn <andrew@lunn.ch>, davem@davemloft.net, Eric Dumazet
 <edumazet@google.com>, Paolo Abeni <pabeni@redhat.com>, Simon Horman
 <horms@kernel.org>, Russell King <linux@armlinux.org.uk>, Shuah Khan
 <skhan@linuxfoundation.org>, Bobby Eshleman <bobbyeshleman@meta.com>,
 Stanislav Fomichev <sdf@fomichev.me>, Breno Leitao <leitao@debian.org>,
 thomas.petazzoni@bootlin.com, netdev@vger.kernel.org,
 linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org
X-In-Reply-To: <ce8f0d43-0078-41e7-a5d2-cf31c6dc97fb@bootlin.com>
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list