Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3617061rwi; Wed, 12 Oct 2022 04:46:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6vu75wjSGH+euKJsyF2b15Wc3YaycH2g6bDhZcpcXF9+OiO1wt6UFFgout2lQCkmtZ7YRj X-Received: by 2002:a17:90a:bb06:b0:20d:9ac5:c227 with SMTP id u6-20020a17090abb0600b0020d9ac5c227mr303444pjr.4.1665575189102; Wed, 12 Oct 2022 04:46:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665575189; cv=none; d=google.com; s=arc-20160816; b=f0gR/687hZCtY/GSOvaX5lj8Jken2CG6A0mPWcmoHxFBtbrgm/Sjz2SYa18HWxoHTH PmmNpUaUmt7DH05owl88KoC0tarcL5KNvofoIArsuxrAX2OPwcY0rDmm3AG/rMEwAlCR zOCQ60F/GwYE3cZWifum7jX99rfhbpHQ10kMRihxjHmzRMyGJsxpmq6P4OdN8OyV4m4g 8PmSCwOeIuv8ou/aCzMdOyJnfktH5nmaBht+UVS76XRBq4/e7cswCBFfknFs7bXkxcER LoylgN65xvQWAfgDKew31fkDUGzy4I61xoypn9rtVkTdm5N5DaqdtBFYbcGVh18Y37RD kK8A== 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=XDyVqOFatqXZfeJTPWBekfxplJ5fNoXjAJEUPJgWyaE=; b=EccU5dWi41G9BYMQFNp1WDJ1uZEaVsQZpoBFHWeKuzNHJLBuTRwzevjdRndr8VXO9I 3cDFEitC7InjZO5hSqoBJl418a7ThYCgN1qQKPfKQXM5YAtGfg/u53lJON/VeeACKPmy eLDpMKBBxQcFCDXJnN6OWStIldVCpCyu2FHZesd6KBMbdSFQT5BqClUKckEzFIidif5P pmsYxgKIttroSMrDonBibskY/Zk93dDYyEAkIfrPaAqnWS9G7Nv7tvz9bMz7acac7k2G nG6beYvQZXSagqOiNyLX5Z/bbpihKtALvLyHwmVMD+9ebhp6jumZ1wOFMhgC2S+KShcN ppQQ== 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 w7-20020a17090a4f4700b0020abd8451ddsi1781172pjl.107.2022.10.12.04.46.18; Wed, 12 Oct 2022 04:46: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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbiJLLL4 (ORCPT + 99 others); Wed, 12 Oct 2022 07:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229638AbiJLLLm (ORCPT ); Wed, 12 Oct 2022 07:11:42 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A7EDC14B1; Wed, 12 Oct 2022 04:11:38 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MnVGX5tLzz1P73s; Wed, 12 Oct 2022 19:07:00 +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; Wed, 12 Oct 2022 19:11:35 +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; Wed, 12 Oct 2022 19:11:34 +0800 From: Liu Shixin To: Conor Dooley , Kefeng Wang , =?UTF-8?q?Bj=C3=B6rn=20T=C3=B6pel?= , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: , , , Liu Shixin Subject: [PATCH v3 0/2] riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC Date: Wed, 12 Oct 2022 20:00:36 +0800 Message-ID: <20221012120038.1034354-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) 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 riscv64 can support sv48 now, so we can add more hugepage-related features which rely on 3th or 4th level of page table. These two patches will enable HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC. v2->v3: Fix the commit log. 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