Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3150096rwi; Tue, 11 Oct 2022 19:57:33 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6C4B/Ua+KiCcln+R0DJLK0TWNgaNkzMPnR+HAs7QUlDTnaWG+62j/9GGB1/vMVe6vGU5Nx X-Received: by 2002:a17:906:8474:b0:78d:ce9c:284e with SMTP id hx20-20020a170906847400b0078dce9c284emr7176379ejc.702.1665543453142; Tue, 11 Oct 2022 19:57:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665543453; cv=none; d=google.com; s=arc-20160816; b=QyZhCKIP02RAGpWy2MQMqXAIuVYoIANYMFJq1H2ou1g8C94cHBqXeSnnm0urolOJij 6HCWVh8tNG443ISvEEmkdG3G2+UL2wl9Xu1ADEglAE1/iC5pC4h5a0eqbU8467dcrY5w /xqHPipUfmpCF0J8yzWjcROG75XgbtFdve0seewCTh0e38CNCx/MZ3bLlgwFrBmwkUqi N6lRRwECNm313Alx/LWHhEpTkLnzmr01EuP0kqduCG+w0/beoCI92Wdw7OGdP3QwGsvs 7FfxCmKjfPG6cNGjy0/nGlSU5l8pNG8XLZcxi/mIo/OLINmILIbBoGpgCZaG4PPpBa7r yUqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=eyz0Nh2RuETCCKaXBjxna9wSJezp5GusXotm4eKFNrI=; b=Y5Xj7VfElqi+9fJ15WVOLIwpJhOcfEq+JdvZ3/PkIEK0nlbEu46nok0Et2eIfBZbFs ajcGbCUFrK46ONI2s8VBkCpuRkeojfbO2iCTZAXqJtbNijaiE+ypYuikBTTUpOyJB5Ic /GhvXM/Xh7UZcTKzUHnV6QEeHtY/pm/8Mv4r2jyvHz1VIOcyTaznD+OhSEwc4cK2mniL qu3ASl9SUW2HO0iTfl3HgltWYJdGh2NsiT+G5XecuqdRUw00eMMvAZLSCUzoqpGdk6eG iWnRebUf4UK56DFwwUOCrXBn9q0bwpqG1mmuZFIelAI3RZ7a1C4KFYBcG8W/h+2ZlwMp BSOg== 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 jg31-20020a170907971f00b0078c3603b4f6si15426112ejc.784.2022.10.11.19.57.07; Tue, 11 Oct 2022 19:57: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 S229629AbiJLCrr (ORCPT + 99 others); Tue, 11 Oct 2022 22:47:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229490AbiJLCro (ORCPT ); Tue, 11 Oct 2022 22:47:44 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E71D86CF7B; Tue, 11 Oct 2022 19:47:42 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MnH6k0zkLzpVbc; Wed, 12 Oct 2022 10:44:30 +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 10:47:40 +0800 Received: from [10.174.179.24] (10.174.179.24) 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 10:47:40 +0800 Subject: Re: [PATCH v2 0/2] riscv: Support HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC To: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Conor Dooley , Kefeng Wang , Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20221008140506.1066805-1-liushixin2@huawei.com> <87tu4ah6un.fsf@smulpajen.i-did-not-set--mail-host-address--so-tickle-me> CC: , , From: Liu Shixin Message-ID: <420713ca-9a77-b519-1811-9ec9815010c4@huawei.com> Date: Wed, 12 Oct 2022 10:47:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <87tu4ah6un.fsf@smulpajen.i-did-not-set--mail-host-address--so-tickle-me> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.174.179.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpemm100009.china.huawei.com (7.185.36.113) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, 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 On 2022/10/11 20:39, Björn Töpel wrote: > Liu Shixin writes: > >> Since riscv64 has already support SATP_MODE_57 by default, it is time to >> support more hugepage-related features. These two patches will enable >> HAVE_ARCH_HUGE_VMAP and HAVE_ARCH_HUGE_VMALLOC. >> > Just a note; The HP support does not require sv57. Pmd/Mega- and > pud/gigapages work for sv39 and sv48 as well. Yes, I didn't explain it clearly. I will rewrite it. >> 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 >> > I've taken this series for a spin, and tested huge pud pages via > ioremap(), and huge pmd pages via vmalloc_huge() on qemu for sv39, sv48, > and sv57. > > Patch 2 have a spelling error in the commit message: "enbale" vs > "enable". > > Fix up the spelling error in patch 2, and after that feel free to add > for the whole series: > > Reviewed-by: Björn Töpel > Tested-by: Björn Töpel > Thanks for your review and test. I will fix the above errors immediately. > Nice work! > Björn > > . >