Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2396106rwb; Sat, 8 Oct 2022 07:10:44 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Iz/rRGUxwxPtdUHIAb/o2n3jj5AqV2xn7y0GhTrYefRXwoaZLzdeDAQV4XSKGcYzU7xfR X-Received: by 2002:a17:907:2d24:b0:78d:3a06:c95e with SMTP id gs36-20020a1709072d2400b0078d3a06c95emr7949804ejc.9.1665238244318; Sat, 08 Oct 2022 07:10:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665238244; cv=none; d=google.com; s=arc-20160816; b=v44bHnoTOQBpQOS/mnyEesaGJNfJfQTjT3PG4ypXEgo07vL9T2O87Mn3FEU/KAp8D6 lBFZlFUAzAidDPWtjDhd6arVW9F7WyOY6RpfOrVjqls6Mu83XUJfUPd83U7BiWEkrB7P G7Xr2lYSLC/WR3GDwlWppCjjh+4L4nyQIuGVXthjXKU0F9IOgfZBy+P2yjzX1n5DLnKz NoBCk43vaODBTuuKeOjO+lLl7/jBEIGcPHuiK/JwAOWGIMqEIPsMdHKXUKj+6GBRMgar YnGFwidL3QGtUGNdGWw4kDwPjcvHToR3bNAUaH0I+T3F/bknKF2rJy0rjCbadzADkx9m ehPA== 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=TeLcUHouMnyosQJA/xK1xwQdkQj74f21Bds0Xx6afdc=; b=y4oj3VwZRESn51weIwl+2NpekbhzM1Bsh8Okjj11DvmCGOasM6NIPP8MlNXN3WD0KG BCYizrku1bxywVFaXcMPXzx4XwDBazdHgG3y+nQRAkRY+1eZe+To0l2+EALyhlZ3i3+M xxy+zfNLJN5zBe+cYH/8nQuRzg7z9NeGS63UARnmIzLdh9OAvtkrnozCMOCNRxJ0yqG7 JwkqEw2K0yEIxeunh0/Kj+kl5ZAfyI79F86yLQzq5V9CisWQZ4ymwqhkTVoUZRKDsagW +1w5tc+R3Ivfqzwj7dGQmSTaJqSYGAIdbw7SLO4Wa/V+8oQfxATdSP6XBFikdYu9sfdR tk+Q== 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 el12-20020a056402360c00b0045bd0d7c0f7si1202481edb.367.2022.10.08.07.10.19; Sat, 08 Oct 2022 07:10: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 S229711AbiJHNQO (ORCPT + 99 others); Sat, 8 Oct 2022 09:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229642AbiJHNQB (ORCPT ); Sat, 8 Oct 2022 09:16:01 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D1BF39111; Sat, 8 Oct 2022 06:15:57 -0700 (PDT) Received: from dggpemm500020.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Ml5GH4P39zkXwV; Sat, 8 Oct 2022 21:13:27 +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; Sat, 8 Oct 2022 21:15:55 +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:54 +0800 From: Liu Shixin To: Conor Dooley , Kefeng Wang , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou CC: , , , Liu Shixin Subject: [PATCH v2 2/2] riscv: Enable HAVE_ARCH_HUGE_VMALLOC for 64BIT Date: Sat, 8 Oct 2022 22:05:06 +0800 Message-ID: <20221008140506.1066805-3-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221008140506.1066805-1-liushixin2@huawei.com> References: <20221008140506.1066805-1-liushixin2@huawei.com> 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 After we support HAVE_ARCH_HUGE_VMAP, we can now enbale 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 --- 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