Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3605616rwi; Wed, 12 Oct 2022 04:35:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5mooHCHFYsYoZ5EKJZ1/LmBucpRMXlerg5Isr0D4a/DiJSyv033/JylnLVM7bMyQjT+Wby X-Received: by 2002:a05:6a00:174c:b0:565:c73a:9117 with SMTP id j12-20020a056a00174c00b00565c73a9117mr519473pfc.23.1665574551922; Wed, 12 Oct 2022 04:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665574551; cv=none; d=google.com; s=arc-20160816; b=JO378qYxc2xqmyN5izNJ3qyu/UQIpIe6Fzn0M12YgaHDv3UunxO20Fq+IZbSpnJtRF Q42v16YL9TLKgtrorr6S+F+vwiFyLiZUEVH0Zta47f4erG3pyGdxZr0l61K6UsmOJM7A NbgaAmxbeSr1cp4n+fYJFtV52+FuAYlZM09cEWyJUI/DpWo6C/Tf/HTxTyiJGPWgP9jy faSHbirekC7gUwhtT1zJ2d+CZj55pjhGN/3yRcfEJ9mgj/LZ1Pfn8t1zIbR9kMYmTSr9 C3HHzMgHaFFasGo8NCdzJwWFHFRc1dvZF1dLQ5amrB92J0lCgIKgKHbEFkm7M90ClkJM 0D3w== 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=Y7WicRES6zGyGREj5kX3b43tbxbswbAmXS3R0iyMP20=; b=M89vP6SyIoIQ8/K6ceS5BRC8eShL45w3nRxG4uMmZjlde/yDdu3Mc6OR2hVImfPj7F NMuP0hLzKNhpOlHi886/tJS409l6wFzPmrG93ewmS9doOro4tbHq27iCAwlRJnF1Mnh0 jlAtoNmyvuh7jUAIsAPh3VvCBYNbnsN624JKaKHr0UETdylYA2QahcOLVCbUu5COgAD9 gXJDF/+CsK4PQ/lUAnBgViiKelNFQmFq5X/qQW/Wm+mMo29kICXJiqeLoE+nzi2glfYx +LarC0thh0107CKFqMH9q03wmjwVGLun5D2HmH2MhfJ4qy43RrcQaoHfPvEEaNDm15tH cxLw== 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 n6-20020a170902d2c600b00176e4ac448esi20378944plc.224.2022.10.12.04.35.36; Wed, 12 Oct 2022 04:35:51 -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 S229658AbiJLLL7 (ORCPT + 99 others); Wed, 12 Oct 2022 07:11:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229657AbiJLLLn (ORCPT ); Wed, 12 Oct 2022 07:11:43 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16B95C1DAF; Wed, 12 Oct 2022 04:11:38 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.55]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4MnVGY6nKyz1P73k; Wed, 12 Oct 2022 19:07:01 +0800 (CST) Received: from dggpemm100009.china.huawei.com (7.185.36.113) by dggpemm500020.china.huawei.com (7.185.36.49) 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:36 +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:35 +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 2/2] riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT Date: Wed, 12 Oct 2022 20:00:38 +0800 Message-ID: <20221012120038.1034354-3-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221012120038.1034354-1-liushixin2@huawei.com> References: <20221012120038.1034354-1-liushixin2@huawei.com> 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 After we support HAVE_ARCH_HUGE_VMAP, we can now enable HAVE_ARCH_HUGE_VMALLOC too. This feature has been used in kvmalloc and alloc_large_system_hash for now. This feature can be disabled by kernel parameters "nohugevmalloc". Signed-off-by: Liu Shixin Reviewed-by: Björn Töpel Tested-by: Björn Töpel --- arch/riscv/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index a4d597203bd9..fded181c9e50 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -70,6 +70,7 @@ config RISCV select GENERIC_TIME_VSYSCALL if MMU && 64BIT select GENERIC_VDSO_TIME_NS if HAVE_GENERIC_VDSO select HAVE_ARCH_AUDITSYSCALL + select HAVE_ARCH_HUGE_VMALLOC if HAVE_ARCH_HUGE_VMAP select HAVE_ARCH_HUGE_VMAP if MMU && 64BIT && !XIP_KERNEL select HAVE_ARCH_JUMP_LABEL if !XIP_KERNEL select HAVE_ARCH_JUMP_LABEL_RELATIVE if !XIP_KERNEL -- 2.25.1