Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5102006rwb; Tue, 8 Aug 2023 21:11:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGSDK8JgHBvcg7fkuwgayrtbl3nCQCFEVo5xt/NcDzo/RnIO7YzZj96HgER9s8yvPTvQQU8 X-Received: by 2002:a17:902:b7cc:b0:1b9:de3e:7a59 with SMTP id v12-20020a170902b7cc00b001b9de3e7a59mr1577603plz.10.1691554278952; Tue, 08 Aug 2023 21:11:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1691554278; cv=pass; d=google.com; s=arc-20160816; b=lKqudpyFEBrbQ6ERQaosmUHDaKS6Ili3iVESQ4gl3hL3hQ1nA91grUv7368jL6WNln ulkbDSV3Oq2zQ53Elkefxnoy4D9yo4JdhrxTCMk7supLdrN22pWqirnWmIREEU51Qk4d DXOIbsPZmkyGlXRjnrXrIVif6sgbTz5ZY0S5zRKUSIXevIKe+mUcCITTi+x/O/2so5rA wVpXR5woUHpNOIXKpBY+aDkxqaxjo0r4ywPpVL7rtfDvM/PgFT/F9rMz6w32g/D4mnxe NjpqtOkC5qXczdClqPwkqta/yuOr6FfzN7NiMZdJTfaVjuBCWExM6QiO66uMjKHS3QfX bgwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ar7Ve3Hr+DhVl9pPMkro5sLxbkFxoDGq+tMtFYS9sGo=; fh=JMuVuVFcdGz/ZVI1lgjZETawk+OByPp4c+MHmFMGamQ=; b=Ywa/MZSHGzptU6N4KLUWewEsPWjIbautYNx0p5rp8dAcVIkISfXB8NNiSVyRl6fUmd pLXiYKfjvwnFnoeCUcVca4Y+9Z+xQiKPbdPIl/3UJ3exzjpNK5Iu1cuSVHH73aiYMi2l Dlv23/QVwW4GwUGsYWcgJP3S65O3PedgvUldW0DNAYurRQFoLxe00KgGs4YpdXpwCtdA GXhFQLH04ykB5sNNXG6cqk019Y+M2fbjbdMdpJEjJQHt6Dr82aUju3MGTdIw3gRxliun aIspRVk8Cmz2rLg76qATPTJ0TCIIUFhATPWmjj/8ZlBIZnAmsKQtz/iQLMgdLL3WFRAw gHEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=LSjlTfo2; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a170902c3ca00b001b9ffda161esi8271186plj.451.2023.08.08.21.11.06; Tue, 08 Aug 2023 21:11:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=LSjlTfo2; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230196AbjHICcP (ORCPT + 99 others); Tue, 8 Aug 2023 22:32:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjHICcO (ORCPT ); Tue, 8 Aug 2023 22:32:14 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2067.outbound.protection.outlook.com [40.107.243.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B31198A; Tue, 8 Aug 2023 19:32:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=obDRgcmNq8BmfSmMr8+hAKiyB/JOKtn2IPCQ0jjmMgp+Uow48gRK7363xWQ10Wz1rd2Y+CdZY2b7+XpcJxNugZlWzumTshIfWUCWooKBkyFNuxC9mzwpYpsXx19dbzLGN0v+gwjxXz7uGP41RdAn+p62wzJR3OBVwCaogG4FHiKnoFPz/bf3elbcLkAP2heY/k00gHc+1pRYMV6o1l2R9lw+JaQcNTFJiw1wWQu+1Wmu3ZufK7alzf80P89pGVex/D9IFNmalhbIUUuZ4aEsNR1yaHOdt0hANPao2Umg/CI3UGgJXd6QZftbDhBA10STcyc4xs1Oz9zR/Gs+CVyLuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ar7Ve3Hr+DhVl9pPMkro5sLxbkFxoDGq+tMtFYS9sGo=; b=bPZV1T1/lfxyeaw0+gca/QkwYTYkr7jQSAK96KbL8v6hb6edUUC75TX4JyW4S+dNLkcQ/SoDf/PpHUNucSb0eNxKGfp2jGuhJviAVz8qPG+pQY+KixHOAlHOb+kpI6mjyWSDPDO/MvVS6Ov+c1aaHNqHl2KFP422sFGV6t5UusxMAU8zuwVrNDozpk3rOwBH/EaGxojjiPNcoFFj+5hR9eI+C6utmfY9AXIozA0G7KlOdI/eJBqwdQwK6GeUWq3hF0XIAEP5MfVqQOSBGYR5BYTlZYyKfea0Xwz8H1AIRCjLQjRwOowD0qGqMQQAJuwCxRMkg1IBwVd6uK8iCW1hGw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=amd.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ar7Ve3Hr+DhVl9pPMkro5sLxbkFxoDGq+tMtFYS9sGo=; b=LSjlTfo2DzD6VMty9y++21mZ7wVN0DspH41tOx+AxWBf8LXiYWSsgX9PBGSiO6MXSWERQCwVp5ymTj8M4oTg9kmA+MCl/l1IQOjP/8BSCPB+o/V+mApV+9RpsTx/Ee0nuvaMF3RU80ThEV5B65muouUUX6BTaoTGWHlqFMxwvS8bLPdX6fYuNDnEuG9/kN/tomo1OAQn+i6FbKuyBAFYysrMZ/96zNgYQKMI/uog9OcNFJXCJTDSZs4TN6TN8+VFfIIxq2nrPZwLV4QeFDb+4bKTRletswd1Lom6fgK5zktU3RtT4CNWCQykUyL5pPndCbq5spxZLqOMRLoArz55bg== Received: from DM6PR07CA0124.namprd07.prod.outlook.com (2603:10b6:5:330::34) by BL3PR12MB6450.namprd12.prod.outlook.com (2603:10b6:208:3b9::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27; Wed, 9 Aug 2023 02:32:11 +0000 Received: from DM6NAM11FT098.eop-nam11.prod.protection.outlook.com (2603:10b6:5:330:cafe::c2) by DM6PR07CA0124.outlook.office365.com (2603:10b6:5:330::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6652.27 via Frontend Transport; Wed, 9 Aug 2023 02:32:11 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by DM6NAM11FT098.mail.protection.outlook.com (10.13.173.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.42 via Frontend Transport; Wed, 9 Aug 2023 02:32:10 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.5; Tue, 8 Aug 2023 19:31:56 -0700 Received: from [10.110.48.28] (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Tue, 8 Aug 2023 19:31:55 -0700 Message-ID: <18ed929a-ab19-4bcc-a871-1c74c8b2d559@nvidia.com> Date: Tue, 8 Aug 2023 19:31:55 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] selftests/mm: FOLL_LONGTERM need to be updated to 0x100 To: Ayush Jain , , , CC: , , , , , , Raghavendra K T References: <20230808124347.79163-1-ayush.jain3@amd.com> Content-Language: en-US From: John Hubbard In-Reply-To: <20230808124347.79163-1-ayush.jain3@amd.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT098:EE_|BL3PR12MB6450:EE_ X-MS-Office365-Filtering-Correlation-Id: add18a82-8714-4d9f-3cd7-08db9880d5a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VSw6RD9EogtyoJo98njNaJod3L0uUHSCYsWW15ZieuJIxAAB/bc/I+0XJuOTqtoEVX8VoyIg2yVFBoI2XXLr9f4w+TqVfGpvpq6wGKD5uUCgL/H8Nb/Hkg9MnGRqw7IiC0/a8LqU1mqjrCq8tuRmi1NSju1xx0AaYNJyTDCe/8tuxZW93XHPdiQLUa5jYEqLIM0PrBy5HJPXo9rrbujUwUXcY0GNpeTfpiVgr3YQItq1on1ozjQr14NFnPCXnl9CYViZqMNQaX8jImqKhIIsvURiOII8nljVg8usuCUqc14VatfTEm4dWrZX2U9YaijXUwq8HxAtWud1TtjrPx98i51JAdZzZ6OyyXfaX4iNs/r4wTgfMPz/gr5bya+Q1hAeGqKGlfsArrS5O+FdyjwO3UeQ9WUWToGPwa2C/g5waV0RUwETF+a2NPNI59jfG+b+ecz7kQFaSZa4fqFXf++DuZGg4xuP950HoGOJwF2aN5qsUtVN98ETfr8lgxcGB2RWnOXGWpvR6e6xERAtat0N9XcWmvKuEhyJf0nnThYoE9F3q7mk9GexIISzUhLTPm2pPsvodc8FqhQwGrk2ARpq2r7imzkW/8tAuvtfmUkyQGPR7gaCCk1st1w5twttBn/QNv8IR9ea/uxGzmaIYV5itS4uH5Eo0t30zEfmuRQNfAF2umH/HRLJr+NWMK+r691/0SWPSUr3XoLl0jsDd9OgK+28nfoIPJdCfXqKVmnC/5a0TQpWUvW30wMWrvOmLTNozFCWRYy/lid2hrAdKA6FUA== X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230028)(4636009)(346002)(396003)(376002)(39860400002)(136003)(82310400008)(1800799006)(186006)(451199021)(40470700004)(36840700001)(46966006)(4744005)(2906002)(40480700001)(47076005)(426003)(40460700003)(41300700001)(5660300002)(8676002)(8936002)(7416002)(36756003)(31696002)(36860700001)(86362001)(54906003)(31686004)(110136005)(7636003)(16526019)(356005)(336012)(478600001)(82740400003)(26005)(53546011)(16576012)(316002)(4326008)(70586007)(70206006)(2616005)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2023 02:32:10.8778 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: add18a82-8714-4d9f-3cd7-08db9880d5a0 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT098.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6450 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/8/23 05:43, Ayush Jain wrote: ... > diff --git a/tools/testing/selftests/mm/hmm-tests.c b/tools/testing/selftests/mm/hmm-tests.c > index 4adaad1b822f..20294553a5dd 100644 > --- a/tools/testing/selftests/mm/hmm-tests.c > +++ b/tools/testing/selftests/mm/hmm-tests.c > @@ -57,9 +57,14 @@ enum { > > #define ALIGN(x, a) (((x) + (a - 1)) & (~((a) - 1))) > /* Just the flags we need, copied from mm.h: */ > + > +#ifndef FOLL_WRITE > #define FOLL_WRITE 0x01 /* check pte is writable */ > -#define FOLL_LONGTERM 0x10000 /* mapping lifetime is indefinite */ > +#endif > > +#ifndef FOLL_LONGTERM > +#define FOLL_LONGTERM 0x100 /* mapping lifetime is indefinite */ > +#endif > FIXTURE(hmm) > { > int fd; Yes, it's unfortunate that this selftest framework prevents easily including those FOLL_* flags directly. Anyway, thanks for fixing this, Reviewed-by: John Hubbard thanks, -- John Hubbard NVIDIA