Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp3839202rwn; Sat, 10 Sep 2022 22:38:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR46o5bP3T4+G4cqh2vNGuJTgn/oW+vd8kTRdgl6GFkANupdLhF/b10RVCV7xLVQI92/1HUP X-Received: by 2002:a17:90a:28a5:b0:200:43bc:5728 with SMTP id f34-20020a17090a28a500b0020043bc5728mr17776972pjd.188.1662874713833; Sat, 10 Sep 2022 22:38:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662874713; cv=none; d=google.com; s=arc-20160816; b=WeNIe9dcUpyva7mGM1wrlhx0Q6lBfaEG8PbCFUuY3vgwkX0tSRkFYJZczbYdgPjNKl 3ICv/IU+ZYWShxgP4QlROujtuX6ihiIYEKOzNyq8PFT13pz8rNtnPJCaMZFaN/2uhqVd FT/qZf7BlyiGmVPE3ArZZkPYqfWfH4h2sD3Xs3kC2a9XMyyzXbh3fsSdrCrhmRlVAyGH thz7z+l5lOOhU8xyv8W+9vWo0jkoD+X4fLiu+bOfgLk3D7mAlF5IPGIMiVSfgmJt0fqm KU9oKWT0ZAaC7+RMIlapXDYyW81f01u6pWKkg8vsNzrZ5ON4HOWM14vs+c568WWsX0Aq OiRA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=ZNiBBEZeFiKdA51yHDXVWNAlCU5f3Wd8gDE5DKgltgw=; b=Tuydjv4qlfeuiU5INpepSzc6ze3yueNa7kbRE0x9f/2pqEq++Wf91Sxhp4zm0CzjG4 FtOyEfROJAAcP9Di9IAMBR3bgxinvFBLyOgMQ05emBJfRqJM5SjhpyMyb4lK3OREJeWe r5CJgGFwzyghp0bXeAGO/PKqNaSftcT6pmFIpEyvkzLJ7WFRkSkul458u/Mwgm7vFZDe OwG3yhyrgWga54z8gSR6zQJ60vWMWS1YxQy4bGcFQkFBtQfT/xnAcUdrymAhjV34KcDK Maznb5/XIopx1UDtZV2r0oBMt2YvDHkg999inf9Twt6wGIrcv7+/5UrWWeCrLO8nUqoK BbZQ== 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 t17-20020a056a0021d100b0052f9293affcsi4860251pfj.335.2022.09.10.22.38.22; Sat, 10 Sep 2022 22:38:33 -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 S229760AbiIKEkU (ORCPT + 99 others); Sun, 11 Sep 2022 00:40:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229636AbiIKEkR (ORCPT ); Sun, 11 Sep 2022 00:40:17 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79688326E0 for ; Sat, 10 Sep 2022 21:40:16 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MQH5X423XznV1S; Sun, 11 Sep 2022 12:37:36 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500023.china.huawei.com (7.185.36.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sun, 11 Sep 2022 12:40:14 +0800 Received: from localhost.localdomain.localdomain (10.175.113.25) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Sun, 11 Sep 2022 12:40:14 +0800 From: Kefeng Wang To: Catalin Marinas , Will Deacon CC: , , Jonathan Corbet , Kefeng Wang Subject: [PATCH Resend] arm64: support huge vmalloc mappings Date: Sun, 11 Sep 2022 12:44:23 +0800 Message-ID: <20220911044423.139229-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) 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,T_SCC_BODY_TEXT_LINE 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 As commit 559089e0a93d ("vmalloc: replace VM_NO_HUGE_VMAP with VM_ALLOW_HUGE_VMAP"), the use of hugepage mappings for vmalloc is an opt-in strategy, so it is saftly to support huge vmalloc mappings on arm64, for now, it is used in kvmalloc() and alloc_large_system_hash(). Signed-off-by: Kefeng Wang --- Resend: correct commit id Documentation/admin-guide/kernel-parameters.txt | 2 +- arch/arm64/Kconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt index 01c996f0cdaf..2f58c764b094 100644 --- a/Documentation/admin-guide/kernel-parameters.txt +++ b/Documentation/admin-guide/kernel-parameters.txt @@ -3617,7 +3617,7 @@ nohugeiomap [KNL,X86,PPC,ARM64] Disable kernel huge I/O mappings. - nohugevmalloc [PPC] Disable kernel huge vmalloc mappings. + nohugevmalloc [KNL,X86,PPC,ARM64] Disable kernel huge vmalloc mappings. nosmt [KNL,S390] Disable symmetric multithreading (SMT). Equivalent to smt=1. diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a62a8a23c6e5..679d9a9c98d8 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -149,6 +149,7 @@ config ARM64 select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_BITREVERSE select HAVE_ARCH_COMPILER_H + select HAVE_ARCH_HUGE_VMALLOC select HAVE_ARCH_HUGE_VMAP select HAVE_ARCH_JUMP_LABEL select HAVE_ARCH_JUMP_LABEL_RELATIVE -- 2.35.3