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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9E1E3C3600C for ; Thu, 3 Apr 2025 20:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=pyw1kZfhyEhztirxD/P9+P3CTqgy/a0Z3TItV4v1Rmo=; b=wmwLqKaMn7a3SL5A5ywNRXQSxw vjIKTaOEmrj0LjVcIQYKBBVMTBjbhr7Vkq//DlQltFlbm3TZ46kDF4aGcuDcdXMEo0qPf6HYbslwm K5Mdib3JmIgW1Pbq087X4dbX3c4lI3+TVw2/U1kAsCXegFso/mbuAcdvrbGsnb2UCoeDU7dkBR00G vYhM2sEurgVSV+CFUfZUWEbEVZjRxrOpiCHL27UfA5jR8XLFMaTQ/CE37+qFxSox4kM0bxQsmTT1B Ru2ByjPMwhUoH9hstKr5TqVlaD9mgdktiMrS8112QkYkn1zF8NyngzzLQ1UlotkPaMbWjt9UWr4n+ FS/mIxvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.1 #2 (Red Hat Linux)) id 1u0RVj-0000000A1vp-1inR; Thu, 03 Apr 2025 20:50:03 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.1 #2 (Red Hat Linux)) id 1u0RSM-0000000A1Mk-1g7o for linux-arm-kernel@lists.infradead.org; Thu, 03 Apr 2025 20:46:34 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id CC0256113B; Thu, 3 Apr 2025 20:46:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43CF8C4CEE3; Thu, 3 Apr 2025 20:46:30 +0000 (UTC) Date: Thu, 3 Apr 2025 21:46:27 +0100 From: Catalin Marinas To: Ryan Roberts Cc: Will Deacon , Pasha Tatashin , Andrew Morton , Uladzislau Rezki , Christoph Hellwig , David Hildenbrand , "Matthew Wilcox (Oracle)" , Mark Rutland , Anshuman Khandual , Alexandre Ghiti , Kevin Brodsky , linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 03/11] mm/page_table_check: Batch-check pmds/puds just like ptes Message-ID: References: <20250304150444.3788920-1-ryan.roberts@arm.com> <20250304150444.3788920-4-ryan.roberts@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250304150444.3788920-4-ryan.roberts@arm.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Mar 04, 2025 at 03:04:33PM +0000, Ryan Roberts wrote: > Convert page_table_check_p[mu]d_set(...) to > page_table_check_p[mu]ds_set(..., nr) to allow checking a contiguous set > of pmds/puds in single batch. We retain page_table_check_p[mu]d_set(...) > as macros that call new batch functions with nr=1 for compatibility. > > arm64 is about to reorganise its pte/pmd/pud helpers to reuse more code > and to allow the implementation for huge_pte to more efficiently set > ptes/pmds/puds in batches. We need these batch-helpers to make the > refactoring possible. > > Reviewed-by: Anshuman Khandual > Signed-off-by: Ryan Roberts Reviewed-by: Catalin Marinas