Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp326924rdb; Thu, 2 Nov 2023 05:07:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZAKyy8W41C0+x9RKyZrwAjfHOhQ67NXzr6sEQWH7/hmKUe0RDwGQNmSr0HYt11b0zJi// X-Received: by 2002:a05:6a00:10c6:b0:6b5:92d9:ef44 with SMTP id d6-20020a056a0010c600b006b592d9ef44mr18117362pfu.7.1698926833193; Thu, 02 Nov 2023 05:07:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698926833; cv=none; d=google.com; s=arc-20160816; b=HN0MW6E+laC7IAaoUpUA5C8Z4Y2ePquk2NHRmqpdzy6ptxWER+UeGtQN0jJ4ufEdd6 AeSwXRQVzXjFyA8HfdQrwjDG6jw6nNTAHk2A1O0WZSpF9q2O4R1wuFS0AuSvkYJDxBgB kMmyFKh9ocW1QCgBj50aUBvklAwBvoVyO/W+qWNihSirP99/YNzvTDW7gLeOWloLZjo5 A6G87YP94RUQBqwFwA2k4ZhHiIMtEricApwYbJsSwKdkTWE53bY0J2nM7xl9u565LeHp Ls1cwsfCCNYrL/iAz22A3WojE3JQ8Fa22QiNuFGm8gXLgJ3AihYXBow3GK6JDxeAaAgW 88Ow== 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:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=27DdC+awEz/2U72C/spT7ytDMj+vQaI0h6ijVadu0Ig=; fh=stB1OhLsYkpVy5rc3aDfrD0Qwo8U8qbsOh4bwgbI8qc=; b=u0lyQf+mQG9w/Mq6ByxWi4/YJx/pz48CnRhnnyQzU6Vtp92TxcUzQMTX+Fag+lgVK7 6J+oOh46Xep2GxG/ykX8XyfDWc0wSiArZHwHOXVhkGBGznOrECOZx5vb9rPSS/shLyOV z8wMQ4dLvdp7NMC7RZsUS/WGEDtt/hT15SkgbskDkladkO/TNZ078XOrEXNGlfR7Bncp MZiKTuhhkogKEYNZAfTqHGY+Qw1dTpInyAurSfFAjtITZaQSrUrwd6ZE6/5Z7D2a1+kl ZqKZJVC+foePf63etvVoqmgHAd9Gzx5EuDUEvhE5mJfs3Ms6o4E6xfM89vTRlIAR35K+ NZuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id b1-20020a6567c1000000b00578b6e2f462si1634193pgs.351.2023.11.02.05.07.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 05:07:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B4DF58149717; Thu, 2 Nov 2023 05:07:10 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229693AbjKBMHD (ORCPT + 99 others); Thu, 2 Nov 2023 08:07:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235599AbjKBMGl (ORCPT ); Thu, 2 Nov 2023 08:06:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 04854112; Thu, 2 Nov 2023 05:04:46 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id E6C8B2F4; Thu, 2 Nov 2023 05:05:27 -0700 (PDT) Received: from [10.1.33.173] (XHFQ2J9959.cambridge.arm.com [10.1.33.173]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 1A1A93F67D; Thu, 2 Nov 2023 05:04:41 -0700 (PDT) Message-ID: <9edbf5f2-efce-40f1-ae7c-34607d9700ce@arm.com> Date: Thu, 2 Nov 2023 12:04:40 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v33 6/6] selftests: mm: add pagemap ioctl tests Content-Language: en-GB To: Muhammad Usama Anjum , Peter Xu , Andrew Morton , =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Andrei Vagin , Danylo Mocherniuk , Paul Gofman Cc: 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 References: <20230821141518.870589-1-usama.anjum@collabora.com> <20230821141518.870589-7-usama.anjum@collabora.com> From: Ryan Roberts In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 02 Nov 2023 05:07:10 -0700 (PDT) On 02/11/2023 11:49, Muhammad Usama Anjum wrote: > 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. Thats great - thanks for the fast response! > >> >> Thanks, >> Ryan >> >> >