From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A85DA4A33 for ; Wed, 7 Jan 2026 03:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767756089; cv=none; b=uE5JazwDoIzr7S+kMzmZuZ0GXxh25gNZkWeKYK2xU6sk+RpOZjp4331KZf/c3JOhEyT6xR1+b7vpUD9XrUjSmg2iMmwHk5X/7Yj+/8Oqzt9bHqEX4pmUDL1EVvwwebb0aUsKecJTElIcHHlhwhwbGI6pn0toFKU2leTawAWpGZw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767756089; c=relaxed/simple; bh=PGQvPKv45I4p+SiydVMCXghd3NoGb0w51G8Aw4tXfG8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MMPj5mRenYkz3jgwAa6gs9D+EPvJn3QERus8PASpHzlQxnbMZhN1Vg+DszcJICKAcL4lbeLgThVabkgBu7wt2IAc+/53YgPGvNBNHemxKrd0JcjQg2/hZJp9g+kj01cfZc65EWC6CnzKo6e0zyTOh9AeVTBwV+x4sagbvLH25Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 CCF7A497; Tue, 6 Jan 2026 19:21:19 -0800 (PST) Received: from localhost (a079125.arm.com [10.164.21.37]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B81363F5A1; Tue, 6 Jan 2026 19:21:25 -0800 (PST) Date: Wed, 7 Jan 2026 08:51:22 +0530 From: Linu Cherian To: Ryan Roberts Cc: Will Deacon , Ard Biesheuvel , Catalin Marinas , Mark Rutland , Linus Torvalds , Oliver Upton , Marc Zyngier , Dev Jain , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 11/13] arm64: mm: More flags for __flush_tlb_range() Message-ID: References: <20251216144601.2106412-1-ryan.roberts@arm.com> <20251216144601.2106412-12-ryan.roberts@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251216144601.2106412-12-ryan.roberts@arm.com> Ryan, On Tue, Dec 16, 2025 at 02:45:56PM +0000, Ryan Roberts wrote: > Refactor function variants with "_nosync", "_local" and "_nonotify" into > a single __always_inline implementation that takes flags and rely on > constant folding to select the parts that are actually needed at any > given callsite, based on the provided flags. > > Flags all live in the tlbf_t (TLB flags) type; TLBF_NONE (0) continues > to provide the strongest semantics (i.e. evict from walk cache, > broadcast, synchronise and notify). Each flag reduces the strength in > some way; TLBF_NONOTIFY, TLBF_NOSYNC and TLBF_NOBROADCAST are added to > complement the existing TLBF_NOWALKCACHE. It would be nice to have some notes added on the below for better clarity * What a walk cache is and why we bother about them ? * Why and how should we invalidate the walk caches ? -- Linu Cherian.