From: Muhammad Usama Anjum <usama.anjum@collabora.com>
To: "Ryan Roberts" <ryan.roberts@arm.com>,
"Peter Xu" <peterx@redhat.com>,
"Andrew Morton" <akpm@linux-foundation.org>,
"Michał Mirosław" <emmir@google.com>,
"Andrei Vagin" <avagin@gmail.com>,
"Danylo Mocherniuk" <mdanylo@google.com>,
"Paul Gofman" <pgofman@codeweavers.com>
Cc: Muhammad Usama Anjum <usama.anjum@collabora.com>,
Alexander Viro <viro@zeniv.linux.org.uk>,
Shuah Khan <shuah@kernel.org>,
Christian Brauner <brauner@kernel.org>,
Yang Shi <shy828301@gmail.com>, Vlastimil Babka <vbabka@suse.cz>,
"Liam R . Howlett" <Liam.Howlett@Oracle.com>,
Yun Zhou <yun.zhou@windriver.com>,
Suren Baghdasaryan <surenb@google.com>,
Alex Sierra <alex.sierra@amd.com>,
Matthew Wilcox <willy@infradead.org>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Axel Rasmussen <axelrasmussen@google.com>,
"Gustavo A . R . Silva" <gustavoars@kernel.org>,
Dan Williams <dan.j.williams@intel.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-mm@kvack.org, linux-kselftest@vger.kernel.org,
Greg KH <gregkh@linuxfoundation.org>,
kernel@collabora.com, Cyrill Gorcunov <gorcunov@gmail.com>,
Mike Rapoport <rppt@kernel.org>, Nadav Amit <namit@vmware.com>,
David Hildenbrand <david@redhat.com>
Subject: Re: [PATCH v33 6/6] selftests: mm: add pagemap ioctl tests
Date: Thu, 2 Nov 2023 16:49:41 +0500 [thread overview]
Message-ID: <a9abc532-2d56-4da9-a016-419e8ae57ac4@collabora.com> (raw)
In-Reply-To: <f8463381-2697-49e9-9460-9dc73452830d@arm.com>
On 11/2/23 4:45 PM, Ryan Roberts wrote:
> On 21/08/2023 15:15, Muhammad Usama Anjum wrote:
>
> [...]
>
>> +
>> +
>> +int init_uffd(void)
>> +{
>> + struct uffdio_api uffdio_api;
>> +
>> + uffd = syscall(__NR_userfaultfd, O_CLOEXEC | O_NONBLOCK | UFFD_USER_MODE_ONLY);
>> + if (uffd == -1)
>> + ksft_exit_fail_msg("uffd syscall failed\n");
>> +
>> + uffdio_api.api = UFFD_API;
>> + uffdio_api.features = UFFD_FEATURE_WP_UNPOPULATED | UFFD_FEATURE_WP_ASYNC |
>> + UFFD_FEATURE_WP_HUGETLBFS_SHMEM;
>> + if (ioctl(uffd, UFFDIO_API, &uffdio_api))
>> + ksft_exit_fail_msg("UFFDIO_API\n");
>> +
>> + if (!(uffdio_api.api & UFFDIO_REGISTER_MODE_WP) ||
>> + !(uffdio_api.features & UFFD_FEATURE_WP_UNPOPULATED) ||
>> + !(uffdio_api.features & UFFD_FEATURE_WP_ASYNC) ||
>> + !(uffdio_api.features & UFFD_FEATURE_WP_HUGETLBFS_SHMEM))
>> + ksft_exit_fail_msg("UFFDIO_API error %llu\n", uffdio_api.api);
>
> Hi,
>
> I've just noticed that this fails on arm64 because the required features are not
> available. It's common practice to skip instead of fail for this sort of
> condition (and that's how all the other uffd tests work). The current fail
> approach creates noise in our CI.
>
> I see this is already in mm-stable so perhaps we can add a patch to fix on top?
Yeah, we can add a patch to skip all the tests instead of failing here. Let
me send a patch this week.
>
> Thanks,
> Ryan
>
>
--
BR,
Muhammad Usama Anjum
next prev parent reply other threads:[~2023-11-02 11:49 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-21 14:15 [PATCH v33 0/6] Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 1/6] userfaultfd: UFFD_FEATURE_WP_ASYNC Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 2/6] fs/proc/task_mmu: Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-08-28 6:57 ` Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 4/6] tools headers UAPI: Update linux/fs.h with the kernel sources Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 5/6] mm/pagemap: add documentation of PAGEMAP_SCAN IOCTL Muhammad Usama Anjum
2023-08-21 14:15 ` [PATCH v33 6/6] selftests: mm: add pagemap ioctl tests Muhammad Usama Anjum
2023-11-02 11:45 ` Ryan Roberts
2023-11-02 11:49 ` Muhammad Usama Anjum [this message]
2023-11-02 12:04 ` Ryan Roberts
2023-09-06 12:44 ` [PATCH v33 0/6] Implement IOCTL to get and optionally clear info about PTEs Muhammad Usama Anjum
2023-09-06 16:06 ` Greg KH
[not found] ` <20230821141518.870589-4-usama.anjum@collabora.com>
2023-10-06 11:40 ` [PATCH v33 3/6] fs/proc/task_mmu: Add fast paths to get/clear PAGE_IS_WRITTEN flag Muhammad Usama Anjum
2023-10-06 16:27 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a9abc532-2d56-4da9-a016-419e8ae57ac4@collabora.com \
--to=usama.anjum@collabora.com \
--cc=Liam.Howlett@Oracle.com \
--cc=akpm@linux-foundation.org \
--cc=alex.sierra@amd.com \
--cc=avagin@gmail.com \
--cc=axelrasmussen@google.com \
--cc=brauner@kernel.org \
--cc=dan.j.williams@intel.com \
--cc=david@redhat.com \
--cc=emmir@google.com \
--cc=gorcunov@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=gustavoars@kernel.org \
--cc=kernel@collabora.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mdanylo@google.com \
--cc=namit@vmware.com \
--cc=pasha.tatashin@soleen.com \
--cc=peterx@redhat.com \
--cc=pgofman@codeweavers.com \
--cc=rppt@kernel.org \
--cc=ryan.roberts@arm.com \
--cc=shuah@kernel.org \
--cc=shy828301@gmail.com \
--cc=surenb@google.com \
--cc=vbabka@suse.cz \
--cc=viro@zeniv.linux.org.uk \
--cc=willy@infradead.org \
--cc=yun.zhou@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox