Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp192033rwl; Tue, 4 Apr 2023 22:00:30 -0700 (PDT) X-Google-Smtp-Source: AKy350aFJk5lfGhph9VBA8jZHRphl36HWuDR36xLVyqrpNQj8Scwk5GhvFhlvs00zvfYv/sJCNZl X-Received: by 2002:a17:906:16ce:b0:93b:5d19:52e1 with SMTP id t14-20020a17090616ce00b0093b5d1952e1mr1819991ejd.50.1680670829861; Tue, 04 Apr 2023 22:00:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680670829; cv=none; d=google.com; s=arc-20160816; b=PoCfZ0NzcUcUXiL5LQGG9h8XIOHffJ7EW0QohD1j1iveI48ydRWQM/djIxX5PbmpE8 nfnD/7NF7N3mT/TBb4D1v+8WIOSuDJ4KYlCgLr/jlINb9tSI5GwYRiZGbmoR4/qTfc8d BJvhwJ/krcMlYPQhEZCtceJ1ul+S2LGl8oDlgwczwT03r3WqspklnjV9SRilR8MrmSmm UD3bmDBWC2PtKhREJw6rV5PafQWxCLpZDyw5972HaJiM7/Vmyar30LDsdaTwfgAumTCW syFrmDzx0fJcpzbMiascJGUqbEpZnnATekd+KFQQ/734UKjhb2U3zhP+SAiqPZbXfz/M mKGw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=zyxZXoEOSmPO9URa8ikV08mWkSESyGY9GypxE/TPJ3Q=; b=xz78qZqyTSXASNmJ8UmHtvENam4hFR0Qmb/9j96bhWpO7Oectgnyg+9xVTDaVSEm/k +ohFkUgkE1HZSNBfr4Jo4pz6MkzUammZudpGoOMrPVoW8tJZMxmUjehDA/ckkcEheNYV BLFiwWvRTgiwRWjq7kUCq653qX377ew2SmpXvzE64/0Aw6wTRX2C3t4R/Po81LU/ETzt TJ917FW+A7QsLuyiJS4ljBtwpMNrNp2dmnlHgAjnnm37+tDLxnKbyxWY/arpopwipSIe JD4eg2mtzkgq4K1iXNxSKC1OwZPcJqoh93EdbxC9IWKfHsjdYOfjQEUfYa8zEtRXNmAH n7eA== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a170906860100b0093600fb85c9si1208374ejx.80.2023.04.04.22.00.02; Tue, 04 Apr 2023 22:00:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236842AbjDEEW0 (ORCPT + 99 others); Wed, 5 Apr 2023 00:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236701AbjDEEWZ (ORCPT ); Wed, 5 Apr 2023 00:22:25 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CD1CDE79; Tue, 4 Apr 2023 21:22:23 -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 DF62F1684; Tue, 4 Apr 2023 21:23:07 -0700 (PDT) Received: from [10.162.42.140] (a077209.arm.com [10.162.42.140]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E94F3F73F; Tue, 4 Apr 2023 21:22:20 -0700 (PDT) Message-ID: <1b2cf3b4-fd11-43db-7f22-76a762ec8aa6@arm.com> Date: Wed, 5 Apr 2023 09:52:17 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH 0/5] selftests/mm: Implement support for arm64 on va To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Andrew Morton , "Aneesh Kumar K . V" , "Kirill A . Shutemov" , Shuah Khan , linux-kselftest@vger.kernel.org References: <20230323105243.2807166-1-chaitanyas.prakash@arm.com> Content-Language: en-US From: Chaitanya S Prakash In-Reply-To: <20230323105243.2807166-1-chaitanyas.prakash@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.2 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 3/23/23 16:22, Chaitanya S Prakash wrote: > The va_128TBswitch selftest is designed and implemented for PowerPC and > x86 architectures which support a 128TB switch, up to 256TB of virtual > address space and hugepage sizes of 16MB and 2MB respectively. Arm64 > platforms on the other hand support a 256Tb switch, up to 4PB of virtual > address space and a default hugepage size of 512MB when 64k pagesize is > enabled. > > These architectural differences require introducing support for arm64 > platforms, after which a more generic naming convention is suggested. > The in code comments are amended to provide a more platform independent > explanation of the working of the code and nr_hugepages are configured > as required. Finally, the file running the testcase is modified in order > to prevent skipping of hugetlb testcases of va_high_addr_switch. > > This series has been tested on 6.3.0-rc3 kernel, both on arm64 and x86 > platforms. Gentle ping, any updates? > > Cc: Andrew Morton > Cc: Aneesh Kumar K.V > Cc: Kirill A. Shutemov > Cc: Shuah Khan > Cc: linux-mm@kvack.org > Cc: linux-kselftest@vger.kernel.org > Cc: linux-kernel@vger.kernel.org > > Chaitanya S Prakash (5): > selftests/mm: Add support for arm64 platform on va switch > selftests/mm: Rename va_128TBswitch to va_high_addr_switch > selftests/mm: Add platform independent in code comments > selftests/mm: Configure nr_hugepages for arm64 > selftests/mm: Run hugetlb testcases of va switch > > tools/testing/selftests/mm/Makefile | 4 +- > tools/testing/selftests/mm/run_vmtests.sh | 12 +++++- > ...va_128TBswitch.c => va_high_addr_switch.c} | 41 +++++++++++++++---- > ..._128TBswitch.sh => va_high_addr_switch.sh} | 6 ++- > 4 files changed, 49 insertions(+), 14 deletions(-) > rename tools/testing/selftests/mm/{va_128TBswitch.c => va_high_addr_switch.c} (86%) > rename tools/testing/selftests/mm/{va_128TBswitch.sh => va_high_addr_switch.sh} (89%) >