Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp315568rdb; Thu, 2 Nov 2023 04:50:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIdz4L7iahqMhu2sRPTZSfv/vVBq7JfvHx0lP64ey2/EmrPNQfyNQSrBKikAtfEI27b1cm X-Received: by 2002:a05:6a00:2d09:b0:68a:52ec:3d36 with SMTP id fa9-20020a056a002d0900b0068a52ec3d36mr17570888pfb.31.1698925830502; Thu, 02 Nov 2023 04:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698925830; cv=none; d=google.com; s=arc-20160816; b=nk1UBXTfrk5fkNo9YNDWf57V9jCE9uyJvT0MboBfM+82x40biT4VYI+iAAwjRk8ufk o2zP3H8fShD60j+JV0zS82KRB415UBYgefsOdCHPg1TxMP1LtnKgyADUlyF16DPcvlfg DUbznSla/ZjX34cfgYIUfEslBtvCSIbS/Mz0Vf+ETN5AfVoRsy5iI6zBb2wU3kRLNSi0 QKdon8QOwhjizP6oM5luTHERERL6c0qeU5wIFECmihwMGCkI44VP3KesWiYspw3mx6iy WelGdu5eOvHrxYgOZ/6/e5HtNyZrglAsrOGc23oMEKSWLZ30xcKoGOoMBFkHUfvEVTvZ FpEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=baE1NJC2GfKa3jymwVwu7JViQnSuC/OsG7D/SDjGWtY=; fh=JuxWP3yNNaMPr7OuRk7WKYlLqOBNpFJpDidsT0yEbt0=; b=b0sUsy42y0GE9FTEDtlWTst3bHMw5PrWDm2c6XXfHE1qH2CaJYHPIQ1ea/Pbv1AZdX QdLXkGG1hpo9Lyxo1QMR4O4XG125bEvfsNQmvbHKvswyj1/BwQfvddTQDHerPyFTJn8n kirSBWp6TRkXxlZFKrNxNdOsZBQ2PXxtUo5wsHPhwCbLS7s2/a/J8jawKgn2p3u7xbPL 9Zlt6slf7d/RU1ORN5sCNHT1+JuVyO2KRfmEkcv3PTJaPtTaKl3j0K2HjYRjbpZDlPmA c9HLSeVib/bAOJ8+2qKX3eaip0zSVuEoxO3ezYmW9CITmloEpit+TkV6yf/szMNRhnvW EGcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SKVfTG98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id a13-20020a056a000c8d00b006bf53b69e21si3469659pfv.359.2023.11.02.04.50.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 04:50:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SKVfTG98; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C0EEA80764A1; Thu, 2 Nov 2023 04:50:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230056AbjKBLt7 (ORCPT + 99 others); Thu, 2 Nov 2023 07:49:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKBLt6 (ORCPT ); Thu, 2 Nov 2023 07:49:58 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF169E4; Thu, 2 Nov 2023 04:49:52 -0700 (PDT) Received: from [100.98.85.67] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madras.collabora.co.uk (Postfix) with ESMTPSA id 35E696603102; Thu, 2 Nov 2023 11:49:44 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698925791; bh=DnwHAYWfAm3XZipZksuQGXF6sjFyFFaQUCgEARzx934=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=SKVfTG98EttX7MvGf7/J9/7o9DENZJm5T53wD2AxQHucm9rfKzRBoLdUq3eaY6Tyr nnW2hbmTZGZOE+Ob2DHwLFU1t6+jthHUubGWxwLZqGB4y6PDX2m50UVt0zGGV5pvl5 yZT6Il+zrTYuFrtEV90z5JjqR1TyVyR0dj4QAzohaVpY6Av92xVj+0X4KeGTJkoNs5 G/cYlPaAliy5FnwOTM2qFGRkckMwrSJHdpuB7HJb96c6ac4vobTiT22EEtPT0vvb/e s7OGvqe11DzO6W0Ru0v87mDXSHdbEUCQd4Cjeknr2FndxH67JxejfM/xMbbrjLDx7e /wm3YpqUoO4yw== Message-ID: Date: Thu, 2 Nov 2023 16:49:41 +0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , Alexander Viro , Shuah Khan , Christian Brauner , Yang Shi , Vlastimil Babka , "Liam R . Howlett" , Yun Zhou , Suren Baghdasaryan , Alex Sierra , Matthew Wilcox , Pasha Tatashin , Axel Rasmussen , "Gustavo A . R . Silva" , Dan Williams , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Greg KH , kernel@collabora.com, Cyrill Gorcunov , Mike Rapoport , Nadav Amit , David Hildenbrand Subject: Re: [PATCH v33 6/6] selftests: mm: add pagemap ioctl tests Content-Language: en-US To: Ryan Roberts , Peter Xu , Andrew Morton , =?UTF-8?B?TWljaGHFgiBNaXJvc8WC?= =?UTF-8?Q?aw?= , Andrei Vagin , Danylo Mocherniuk , Paul Gofman References: <20230821141518.870589-1-usama.anjum@collabora.com> <20230821141518.870589-7-usama.anjum@collabora.com> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 02 Nov 2023 04:50:17 -0700 (PDT) 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