Received: by 2002:a05:7412:b795:b0:e2:908c:2ebd with SMTP id iv21csp314252rdb; Thu, 2 Nov 2023 04:47:31 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFQWuFnFZAvZB44wtPelx6/TU0bzMmkz7iw7FDJ1BPupZkcMfVln+bEViALRtNoZH6iDOo/ X-Received: by 2002:a17:902:f64e:b0:1c9:e765:e14a with SMTP id m14-20020a170902f64e00b001c9e765e14amr20644091plg.1.1698925651230; Thu, 02 Nov 2023 04:47:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698925651; cv=none; d=google.com; s=arc-20160816; b=HU/GTVCuOX9aqbqOW9aTl7Yib1G35t3XrQpFjgS+8dPIQghf9ZLumOrz3quYBMzX4I AdJ8KPLVKfJulBiiQx3y50sDxaioSxUfwGsHbFugZLMkEfEQp4EZOpXqDhiUnxXJk+8Q g7LIsBjW/7vzZN2SyLUKZvr3F8SkcfTT9F5qlFprA4eVEfEN9bVSq4e5SC28xV1sS2ZK tAlE6OljSKVJDjrxW02k38WI0xNJw+q7/PAjZIAo4abnH1LdIuIf1wDmnOEdB51HLobW 5az4hYL8gws0Nhf+hpSAKYYQdV1fOVobhSwsOAc0jr3nswbozA7NZ94hDnuw3OXR8Rwb b1cw== 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=ZKj7NoLATX5Lay+q4AA85Fj7gMXiCVXqFk193V95DOw=; fh=stB1OhLsYkpVy5rc3aDfrD0Qwo8U8qbsOh4bwgbI8qc=; b=VhlbX/aUHm7YrJyheaYFrDRhL3+gzoitL5cYVOeHXthdLlsuXAs8evbMMXXyQXKVOJ zaFpWYQDaOLADwOeYFWd5JLbqD8R5J+AQ9X/DZgdIXZltad+f2OhcV5ccj+4VhgPcNlA q136yvjCD/3p61ZcAA4Hg/g1qnLdUOp7TpfWyvOby3KZglFQdprB3eTC69HYQWEkIVum 7CMDncBT2+IEC5xQAET5NvugqC9vVfAelb5VaXO8POrqbP7NtlySyMEA2abLHxah8kKv M6xNXEZDs2AnpkVwbeDverGsF0YgBARZaqu6ROfDXHFYDhlggYGhprTNV1PfCqOp4mgD 3+Mw== 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:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id ka7-20020a170903334700b001cc3e75b2d2si4571224plb.446.2023.11.02.04.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 04:47:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 3C3A88263E90; Thu, 2 Nov 2023 04:47: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 S233139AbjKBLqU (ORCPT + 99 others); Thu, 2 Nov 2023 07:46:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229483AbjKBLqT (ORCPT ); Thu, 2 Nov 2023 07:46:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E15A2D47; Thu, 2 Nov 2023 04:45:43 -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 99B702F4; Thu, 2 Nov 2023 04:46:25 -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 DD83A3F67D; Thu, 2 Nov 2023 04:45:38 -0700 (PDT) Message-ID: Date: Thu, 2 Nov 2023 11:45:37 +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: <20230821141518.870589-7-usama.anjum@collabora.com> 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 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:47:16 -0700 (PDT) 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? Thanks, Ryan