Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5573413rwb; Wed, 7 Sep 2022 05:05:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR6IHvcoH+m7tra6LKpCb/wWG3iH5IPEjPAm4xxdSBPtjfTzFZUMGxZ08YlJhTgqen/hz2v3 X-Received: by 2002:a17:90b:1a91:b0:1ff:f703:ccad with SMTP id ng17-20020a17090b1a9100b001fff703ccadmr3786968pjb.154.1662552344969; Wed, 07 Sep 2022 05:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662552344; cv=none; d=google.com; s=arc-20160816; b=WKYWUTwPFrgIdzMqLtrIIC7K1dlF6BZsgOKRn7JBbtDwHqNm0e01XUGJ9rYj3pJ6vr u+eXzHbNfBZxCLimC3puWB7Fu1tm8jJEqkSKmGwjVS0+oFj/RS5JGPfsZ82tqN0Iv5IJ 30fB0S4btVKYtGtxRUhBCM1u15z/DL84FJ2uMdwexxu4ftr29yyf2vD/Gcu1BmgLSWz6 ABihW+NYpvS8+OeStAK/qsVumLLHlprHZB3hmRLuZmNn2yGXLZe4zxAke3lmMKtGMK6o iNG5o5/1MQxuv9507ddkGMYh3TRX4mBoK/ZjaM+UP2jLxEz0lxrmWB3CJDaKYEGbmuRd oh9A== 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=z7eYYukePjLA29h0242MaWDIHfpAYPV/Tdp5z/LcB3I=; b=qBqr58o+l8wovxfOq3UgAaEBkfgG3d+qYqsbxNI+hxfVVeOpcG/jSGzW2if/ETtFsy uHOXEICuTN1r8Z62LOatxP3HKF7/MqK/Qu8sEsxbIAkNrlYOEChONX433zjVR7rOk07k DXTZTQi2zzt7lxEcj44zgfcUdsQCAc029kDGiAEikeBEvx9OwEdILbUrF3OHbf+17KWu q9822Qkvoij5d6IL5IE+ubUmY3S7xOQJCU+x9eiy7F3F6gyMQKlprljiobkuJUDEXyyV JY2DtyAtcFDmubiunB4cXQjlha5V7WFVMtyeXjT6wZ1T/v0S1ufbxMKgNLwHQBC+2l2M IL4Q== 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 k185-20020a6284c2000000b0053e2b615693si4423211pfd.106.2022.09.07.05.05.32; Wed, 07 Sep 2022 05:05:44 -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 S230261AbiIGLpq (ORCPT + 99 others); Wed, 7 Sep 2022 07:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230256AbiIGLpm (ORCPT ); Wed, 7 Sep 2022 07:45:42 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36A5F59259 for ; Wed, 7 Sep 2022 04:45:40 -0700 (PDT) Received: from dggpemm500023.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4MN0h44lBrzZcND; Wed, 7 Sep 2022 19:41:08 +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; Wed, 7 Sep 2022 19:45:38 +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; Wed, 7 Sep 2022 19:45:38 +0800 From: Kefeng Wang To: Catalin Marinas , Will Deacon CC: , , Jonathan Corbet , Kefeng Wang Subject: [PATCH] arm64: support huge vmalloc mappings Date: Wed, 7 Sep 2022 19:49:50 +0800 Message-ID: <20220907114950.125433-1-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) 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 59089e0a93d ("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 --- 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 2434c6729f1c..33b7998f0170 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 b3073f6f6c3a..500979dfde37 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