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 AEAAD2C3745 for ; Fri, 2 Jan 2026 14:20:04 +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=1767363606; cv=none; b=R5zm2ZHWfYOa1NlCsBxW/Qq86BjUjRfpFRbRc9vuYsrpNYaqz3u5D/8zFL4p057VsXPxcb29KCS53eXm+FBuVPfwQCYCXBWaohfZpENeI885LNb3NfhLPCe9V314FrfydTlxDLX/QR492UCh8zLoYhm46SdWrjED2A+1E416PgY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767363606; c=relaxed/simple; bh=Mf9iBFDZkafk9LBBpGQmB/nKHHalLfJ+9YvccCqiT54=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C90e/gyJwJtz2RRiH96ia09k43mxuIMPJl0uheA1rCnvhIzUrGSWuAmuI3e26O4SNG6/+DkALrd191wOLVkOTepanpLhWmv1/jhD+X7HWSxtPQqMeMTSzgZFIx5/zu+RVlf6WK2ezXH2/dtYDAU8CnAj0TOipY2anNZPDbpZVB0= 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 0F86C497; Fri, 2 Jan 2026 06:19:57 -0800 (PST) Received: from [10.57.94.221] (unknown [10.57.94.221]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0B76A3F63F; Fri, 2 Jan 2026 06:20:01 -0800 (PST) Message-ID: <99d00830-bca5-4734-be56-8c8b310574ea@arm.com> Date: Fri, 2 Jan 2026 14:20:00 +0000 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 03/13] arm64: mm: Implicitly invalidate user ASID based on TLBI operation Content-Language: en-GB To: Jonathan Cameron Cc: Will Deacon , Ard Biesheuvel , Catalin Marinas , Mark Rutland , Linus Torvalds , Oliver Upton , Marc Zyngier , Dev Jain , Linu Cherian , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20251216144601.2106412-1-ryan.roberts@arm.com> <20251216144601.2106412-4-ryan.roberts@arm.com> <20251216180118.00005085@huawei.com> From: Ryan Roberts In-Reply-To: <20251216180118.00005085@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 16/12/2025 18:01, Jonathan Cameron wrote: > On Tue, 16 Dec 2025 14:45:48 +0000 > Ryan Roberts wrote: > >> When kpti is enabled, separate ASIDs are used for userspace and >> kernelspace, requiring ASID-qualified TLB invalidation by virtual >> address to invalidate both of them. >> >> Push the logic for invalidating the two ASIDs down into the low-level >> tlbi-op-specific functions and remove the burden from the caller to >> handle the kpti-specific behaviour. >> >> Co-developed-by: Will Deacon >> Signed-off-by: Will Deacon >> Signed-off-by: Ryan Roberts >> --- >> arch/arm64/include/asm/tlbflush.h | 27 ++++++++++----------------- >> 1 file changed, 10 insertions(+), 17 deletions(-) >> >> diff --git a/arch/arm64/include/asm/tlbflush.h b/arch/arm64/include/asm/tlbflush.h >> index c5111d2afc66..31f43d953ce2 100644 >> --- a/arch/arm64/include/asm/tlbflush.h >> +++ b/arch/arm64/include/asm/tlbflush.h > >> +#undef __tlbi_user >> #endif >> - > Hi Ryan, > > It's trivial Tuesday so... Unrelated white space change. Thanks, will fix! > >> #endif >