From patchwork Wed Mar 6 22:37:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nico Pache X-Patchwork-Id: 13584697 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E58BC5475B for ; Wed, 6 Mar 2024 22:38:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A80E06B00A7; Wed, 6 Mar 2024 17:38:23 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A30756B00A8; Wed, 6 Mar 2024 17:38:23 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8F8AD6B00A9; Wed, 6 Mar 2024 17:38:23 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 80D3C6B00A7 for ; Wed, 6 Mar 2024 17:38:23 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 56DE040AD5 for ; Wed, 6 Mar 2024 22:38:23 +0000 (UTC) X-FDA: 81868079286.27.EBC103A Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf23.hostedemail.com (Postfix) with ESMTP id D3E0D140006 for ; Wed, 6 Mar 2024 22:38:21 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Y0bTUEOt; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf23.hostedemail.com: domain of npache@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=npache@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1709764701; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=+ifJ4/8mTgVXdkLtTQ3Zdd4IQQKyln2F43BUCv9cvQ8=; b=x1NjyTe85Ini7uoma0ZCPYM4NWVTG5B6Tb6h/92NJQCRb2VZtD5HtLOUuRxDTnrenpmcNQ ZmOtShpTV8Oq8fZVb5Wl8YwQ+iNxHgFTP6kXuNVoDQkXTW/fR+hJBz3MvsPQ97nmRo9ZA2 dfu447PWAFAqS9b//okfDI8KXty1bPc= ARC-Authentication-Results: i=1; imf23.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Y0bTUEOt; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf23.hostedemail.com: domain of npache@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=npache@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1709764701; a=rsa-sha256; cv=none; b=LyZimNgS5cYKlSp4NC3iRtVG829Yz2mKnrS+yKZGuAiM+KCzDKi7FGQ+n9RuRA70l3dS/o DHN1Xkt5uctuUI45glW81kp+9agyHGsCfhfcLYixzLWcYX9Q9D+L2r3Rx7V5FPmPNj1Yw5 vaeMJiyfIJ2TY7b93DhAdIpS43ePzb0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709764701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=+ifJ4/8mTgVXdkLtTQ3Zdd4IQQKyln2F43BUCv9cvQ8=; b=Y0bTUEOt3aY86S+xy5gUQux7XsICSh1VYOFTSoUNfdxhwTCpyP9sKoY6DMv+BFNMx3gbKg esNGBeL5sxbts74DynWmW86FydDnzZN1L9GYqOvSZj5SpRPjMqBW4jQbusiKFexhsKmCGS BLwAK3iX0UkBAbxQhku4yNmzA+JYRGo= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-mYyl0hfOMk2bG2oTxsARlA-1; Wed, 06 Mar 2024 17:38:18 -0500 X-MC-Unique: mYyl0hfOMk2bG2oTxsARlA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0944F280480C; Wed, 6 Mar 2024 22:38:02 +0000 (UTC) Received: from localhost.redhat.com (unknown [10.22.9.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 58820111D792; Wed, 6 Mar 2024 22:38:01 +0000 (UTC) From: Nico Pache To: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Cc: ben@decadent.org.uk, shuah@kernel.org, akpm@linux-foundation.org, usama.anjum@collabora.com Subject: [PATCH v2 0/3] selftests/mm: Improve Hugepage Test Handling in MM Selftests Date: Wed, 6 Mar 2024 15:37:11 -0700 Message-ID: <20240306223714.320681-1-npache@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Rspamd-Queue-Id: D3E0D140006 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: w3zfhswp5q46fahortgkkkjeunygkxnq X-HE-Tag: 1709764701-874840 X-HE-Meta: U2FsdGVkX18RChgGiqan2okBcgVfBMmpjHx03EJWWbV4o9ixLMqzmikz69VICgO9R5Xa13w5CI9wf3nrPWm3qT+sKzDoz7xnjvsoerhMhOXs30P9jtTMZWSV5vRJ0bhI8udGgjRv2LtmnQwFls5eQ/1ClfbotnIZfBcJcYAzeD+/Sng092VnylYdqSH44TdRgrvs4jBmrsu14bklj5VmwccDcu6NSe1L8J58Q0uRjT0fFLONVzLaxsiE6epR0BusxCXjWu6o6rLF/3iUeMxSs8fcJeYUy5VcAhg3Wc3125Fs4RIHRhYwQg3RYNCfl2YkFPOroa170i0pHdv6nri979cZOTJXGzVaS22kXI6ZV0REP7tGqw10g0tj6oaMBcUB95fN2Isqa04WGowfLsiyF5ArmZxm7/ZZlvi1sFObi6r358mChVmkJLRzlPP0uGbazcQh7UFvnIA5f7HjqcteSV93jHCRoyj/QlqYCwYr9URJJz48NHw8uwPufKzWSJ8gj2nH1yXt+JDIyHIDMENWtYzDqWWsH3lb8eY49G873cqqkl6nh0bidb3lHE0QeWuCoOOIcVPS76yHHsU3rDyXdPP8WJic+Q6KOGM6PYoL38CylkQbR+ehLLW9483Nv6BL46SKvGDeDsb7FfgsOe7iBoYhM5osn4GGfDBw7H0H+Rc6NNwQlIMg+EiSs913E0ngJyDAmiQf30tPz8PrTOEQQUInjZZmg54a9mTZba5t53+ZuihGSYx/87EvHecyEI11gvzv41W85vU66ldiJiV2ikti5DtzaMTOiWLpqAUPnV+nvsPu4gWOH04ptQiMdIGK+19YOcfP4Iab7lG7PZMkaf+Y5imT9bAiVW4aPGKORPDtRmo70pNzLMUWJPIPtWbQVJbf7F0SsDkuMG3mg7Uflw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: This series addresses issues related to hugepage requirements in the MM selftests, ensuring tests are skipped rather than failing when the necessary hugepage count is not met. This adjustment allows for a more graceful handling for systems with insufficient hugepages, preventing unnecessary test failures and improving the overall robustness of the test suite. Nico Pache (3): selftests/mm: Dont fail testsuite due to a lack of hugepages selftests/mm: Skip uffd hugetlb tests with insufficient hugepages selftests/mm: Skip the hugetlb-madvise tests on unmet hugepage requirements Changes from v1: - Added checks to skip tests when hugepage requirements are not met, rather than exiting with a failure. tools/testing/selftests/mm/hugetlb-madvise.c | 2 +- tools/testing/selftests/mm/run_vmtests.sh | 1 - tools/testing/selftests/mm/uffd-stress.c | 6 ++++++ 3 files changed, 7 insertions(+), 2 deletions(-)