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 A68CBD49218 for ; Fri, 12 Dec 2025 12:12:17 +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:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=M/D+0XsewLs5yoZVGAKp7iVmqyyMR/P07KATjuYekd4=; b=LwyUjlHkbQzL5+W1KkPTOm7kAz KnX9t1/Md0QL64j+dtda9iUYOt9X+3bDBZYi2lEgdG1Yrfd3/QRFpY8/0eAb+2EM/mQ7RSuCrX66r 81jS6tfvGlnyKTtAvPyCk7nSyAvkDPwC5pABdSZoEKgKmxBGxPBbf5Tsco9EL6RQLa98oLzcvm7TC ZWzmYhxximMUFgj1SjVCcY5+bA5EJxJV4/wb17/+Nm7VOQDMri+hAATAu+YHFUeFeQ7G3rFyQu4rt PMqpSgwC/JeIYFvdegMAnPQ/P0AYvd7cJUbFMixHJU8DMzb6ZiTw9QI9c1xTAdPW0FSHHZdcEZFCz ThKtJb7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vU20K-00000000Vjo-441F; Fri, 12 Dec 2025 12:12:12 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vU20I-00000000VjE-2Ufa for linux-arm-kernel@lists.infradead.org; Fri, 12 Dec 2025 12:12:11 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D55C91063; Fri, 12 Dec 2025 04:12:01 -0800 (PST) Received: from [10.57.90.205] (unknown [10.57.90.205]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72FC53F762; Fri, 12 Dec 2025 04:12:07 -0800 (PST) Message-ID: Date: Fri, 12 Dec 2025 12:12:05 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/10] arm64: Replace TLB invalidation preprocessor macros with C functions Content-Language: en-GB From: Ryan Roberts To: Will Deacon , linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Ard Biesheuvel , Catalin Marinas , Mark Rutland , Linus Torvalds , Oliver Upton , Marc Zyngier References: <20250711161732.384-1-will@kernel.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251212_041210_677178_24D8B8BD X-CRM114-Status: GOOD ( 17.04 ) 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 10/12/2025 12:29, Ryan Roberts wrote: > On 11/07/2025 17:17, Will Deacon wrote: >> Hi all, >> >> I cooked this series following a complaint from Linus back in March >> about our range-based TLB invalidation macro after we fixed an >> over-invalidation bug thanks to incorrect handling of its arguments: >> >> https://lore.kernel.org/all/CAHk-=wgiX0q0WCL+SFwVCYtG7JR3=2Rshse-5J3AO2Y4AgT7Jw@mail.gmail.com/ >> >> Once I started trying to rework the range macro into a C function, I >> spotted a few other opportunities for cleanup and so I've ended up with >> this series. >> >> Testing and feedback welcome. > > Hi Will, > > Did this go anywhere/are you planning to post a new version? There are a couple > of other cleanups I'd like to do in this area, and also I'd like to add tlbip > support. But I don't want to spend time on it if the baseline is going to > drastically change. > > If you're not planning a v2, perhaps I could have a go then extend for the > extras I want to do? Since I didn't hear back, I've reworked the series to include Linus's suggestion and am currently testing. Plan to post against -rc1. > > Thanks, > Ryan > > >> >> Cheers, >> >> Will >> >> Cc: Ard Biesheuvel >> Cc: Catalin Marinas >> Cc: Ryan Roberts >> Cc: Mark Rutland >> Cc: Linus Torvalds >> Cc: Oliver Upton >> Cc: Marc Zyngier >> >> --->8 >> >> Will Deacon (10): >> arm64: mm: Introduce a C wrapper for by-level TLB invalidation helpers >> arm64: mm: Introduce a C wrapper for by-range TLB invalidation helpers >> arm64: mm: Implicitly invalidate user ASID based on TLBI operation >> arm64: mm: Remove unused 'tlbi_user' argument from >> __flush_tlb_range_op() >> arm64: mm: Re-implement the __tlbi_level macro in C >> arm64: mm: Simplify __TLBI_RANGE_NUM() macro >> arm64: mm: Push __TLBI_VADDR() into __tlbi_level() >> arm64: mm: Inline __TLBI_VADDR_RANGE() into __tlbi_range() >> arm64: mm: Simplify __flush_tlb_range_limit_excess() >> arm64: mm: Re-implement the __flush_tlb_range_op macro in C >> >> arch/arm64/include/asm/tlbflush.h | 230 ++++++++++++++++++------------ >> arch/arm64/kernel/sys_compat.c | 2 +- >> arch/arm64/kvm/hyp/nvhe/mm.c | 2 +- >> arch/arm64/kvm/hyp/pgtable.c | 4 +- >> 4 files changed, 140 insertions(+), 98 deletions(-) >> >