Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2442379rwb; Sat, 8 Oct 2022 07:56:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5pgdGq0SSaanR6+7JW5hKnBf7vEDyhM/xa9lPILZlyr5CDZEl7zpUhD7wdqmq+WhqDdUcY X-Received: by 2002:a17:90b:4f43:b0:20a:881a:3017 with SMTP id pj3-20020a17090b4f4300b0020a881a3017mr10699832pjb.214.1665240961746; Sat, 08 Oct 2022 07:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665240961; cv=none; d=google.com; s=arc-20160816; b=nhRNtQHiESlQMT1ZNuF+8yPYMNpq3n61HxLJ+5Svbeu8n//Jh6MvfPzV9TtNrEeKgy cWHWjyeDISxRvejAiB7cUvuHcI4hPRev5j7b5M822MrGeTZmqn0OjnxmIVrYNEJbTMWt QIjLVv6/bfVf+GTP7TByrj+gofZICnOCCsFueF3OGT0cKN5AcBzKCtdTTbEpa7P1xq/2 9fUcNj5tbQWV4/olDxt2yoN7X0Gaht4yJahZ4iDnMPTrj5SXnL2cbqTtKfvNAESaU5j+ 0IP61Jwvegi2Bm5D70wjLd8+cunW2SsizCwh4w9kB7+/vTnC4Pee0k4zOR7vwI8lCUcX Skzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=nuRqM69G+DsvK1A7FwlDs+WHK+hj4Tw5O6LowSKxNt4=; b=RErQV1q8BoLIOHiXFL9wOQnO1C42Atl3T9g2NsOMbidfKBYP5vF0kX3wId++fZg51F MT39/Wzw3Maj+EFCoQtX1xC70ggA0IlgdbZCVLvKolZpd0Jg3+BHV77+7MlJaepe3Nf6 B8hfWLr6IJI1sCYOqEjRGQS1mLVloC0AEBcp1jyPc32DSibqUWY88sGd9A91bivSp3Zh H6ioGDS5IXC0Y6/NrFP/Q8O3A5qC/ApLew9GIYdlsVVgeiF+qQOpZ1zFFRH8/ELYQvaO WELsaHCwq1+gZsFqSIdzs/uQ0iCwW6Vx4UmUT47kxXXfLryer15Q2pFrA1dEO0v0RuYH UqzQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a637b04000000b00459e761ec2fsi6680274pgc.406.2022.10.08.07.55.50; Sat, 08 Oct 2022 07:56:01 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229696AbiJHNQE (ORCPT + 99 others); Sat, 8 Oct 2022 09:16:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229492AbiJHNQA (ORCPT ); Sat, 8 Oct 2022 09:16:00 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCCB131EF3; Sat, 8 Oct 2022 06:15:56 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4Ml5Cw3yNTzlXdM; Sat, 8 Oct 2022 21:11:24 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 21:15:54 +0800 Received: from huawei.com (10.175.113.32) by dggpemm100009.china.huawei.com (7.185.36.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 21:15:53 +0800 From: Liu Shixin To: Conor Dooley , Kefeng Wang , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: , , , Liu Shixin Subject: [PATCH v2 0/2] riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC Date: Sat, 8 Oct 2022 22:05:04 +0800 Message-ID: <20221008140506.1066805-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Since riscv64 has already support SATP_MODE_57 by default, it is time to support more hugepage-related features. These two patches will enable HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC. v1->v2: Fix the build error reported by kernel-test. Liu Shixin (2): riscv: Enable HAVE_ARCH_HUGE_VMAP for 64BIT riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT .../features/vm/huge-vmap/arch-support.txt | 2 +- arch/riscv/Kconfig | 2 + arch/riscv/include/asm/vmalloc.h | 18 ++++ arch/riscv/mm/Makefile | 1 + arch/riscv/mm/pgtable.c | 83 +++++++++++++++++++ 5 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 arch/riscv/mm/pgtable.c -- 2.25.1