From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B21BEEB64DD for ; Wed, 2 Aug 2023 01:42:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231340AbjHBBmJ (ORCPT ); Tue, 1 Aug 2023 21:42:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45240 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229801AbjHBBmF (ORCPT ); Tue, 1 Aug 2023 21:42:05 -0400 Received: from out-93.mta0.migadu.com (out-93.mta0.migadu.com [IPv6:2001:41d0:1004:224b::5d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F1AC2D63 for ; Tue, 1 Aug 2023 18:41:44 -0700 (PDT) Content-Type: text/plain; charset=us-ascii DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1690940501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qaVnx0ogLsRebhvEO/RDk7RL3G27F+ZRGzTBrTb6zf8=; b=iAdpDBuGb7iLjdqxxYhIW0WswXdLmP9VncJPJDj8ZVQaSUsSQ/xg7K/FD7AzTLD4dyk8hV jKqvAn5m/7PeXdrd3miYik0OjbNoRhvH5CFcMb7jThZCLTQefm8gUFQwCXrwtMB6Wud9P3 KXIi/eZnVRkdBwTaUJML668f5pQFMeQ= MIME-Version: 1.0 Subject: Re: [PATCH v4] arm64: hugetlb: enable __HAVE_ARCH_FLUSH_HUGETLB_TLB_RANGE X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Muchun Song In-Reply-To: <20230802012731.62512-1-wangkefeng.wang@huawei.com> Date: Wed, 2 Aug 2023 09:40:55 +0800 Cc: Andrew Morton , Catalin Marinas , Will Deacon , Mike Kravetz , Mina Almasry , kirill@shutemov.name, joel@joelfernandes.org, William Kucharski , kaleshsingh@google.com, Linux-MM , linux-arm-kernel@lists.infradead.org, LKML , 21cnbao@gmail.com Content-Transfer-Encoding: 7bit Message-Id: <5E1DA6D8-4EF8-4273-9C7B-093ADA84AF39@linux.dev> References: <20230801135616.165067-1-wangkefeng.wang@huawei.com> <20230802012731.62512-1-wangkefeng.wang@huawei.com> To: Kefeng Wang X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Aug 2, 2023, at 09:27, Kefeng Wang wrote: > > It is better to use huge page size instead of PAGE_SIZE > for stride when flush hugepage, which reduces the loop > in __flush_tlb_range(). > > Let's support arch's flush_hugetlb_tlb_range(), which is > used in hugetlb_unshare_all_pmds(), move_hugetlb_page_tables() > and hugetlb_change_protection() for now. > > Note, for hugepages based on contiguous bit, it has to be > invalidated individually since the contiguous PTE bit is > just a hint, the hardware may or may not take it into account. > > Signed-off-by: Kefeng Wang Reviewed-by: Muchun Song