From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sinmsgout02.his.huawei.com (sinmsgout02.his.huawei.com [119.8.177.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 505BE33E341 for ; Tue, 27 Jan 2026 11:48:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=119.8.177.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769514517; cv=none; b=TVBWv/RXJd3cE7HgzsB59AYAv3gOZopAS6+/YqDlQxljInXWlmrb3+4ez3TF4rXQZ7sHDqeOqrYd9fKh/NFzfn+sVZ43EeaOt+xGWvxJfVBDnVMj0Zt1jPQFh2D0RMvuKMpgD6nl7VXeOeutMH0caEs+SWhVweP3xXVXiwef1DI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769514517; c=relaxed/simple; bh=+r0dpz92PKBUE2/MVsUFCGNl0wpZfzS1Tz0tAjdVniE=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=TGUqO/kybLWrCmMSHHZjQSsKpZ4KPL/t9BMAwYkFXmuBndjrIaPGCFe0O04OrBrLj66ybo5O9VQDFCgtKzlAPq1OtSQQiN+k+lpzswS7RMkOt8TIU4C7jmNSW7lhZ/cZzEfIZ3jf+vLFi6ynfHb3gB/SZeTYie1u9cnb6dW0zPY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b=ZMM/gisS; arc=none smtp.client-ip=119.8.177.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=huawei.com header.i=@huawei.com header.b="ZMM/gisS" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=Tp1suiWH8/OzZCmXS9VgFljfMOquW6cZRegEMWCg3GU=; b=ZMM/gisSEkV1luBZufBUNu4mr08k5fBtjWP/tqZt2U7XUEXahwMDszc6Y3renUNhet1H1kaLD /ONkSKOcRtDFmQ/jzA8/0Gg+DCG1dWAmGV3tM4sVCQgDxrt3PyfFMUb0ew2wtZQtFSuHS+/M2+m XC5sqYjdAllG9D7Yz/0hPzk= Received: from frasgout.his.huawei.com (unknown [172.18.146.32]) by sinmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4f0jpl6C9bz1vnJg; Tue, 27 Jan 2026 19:29:03 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.150]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4f0jrk5hjKzHnHH8; Tue, 27 Jan 2026 19:30:46 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id 40D6B40539; Tue, 27 Jan 2026 19:31:32 +0800 (CST) Received: from localhost (10.203.177.15) by dubpeml500005.china.huawei.com (7.214.145.207) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 27 Jan 2026 11:31:31 +0000 Date: Tue, 27 Jan 2026 11:31:30 +0000 From: Jonathan Cameron To: Ryan Roberts CC: Will Deacon , Ard Biesheuvel , Catalin Marinas , Mark Rutland , Linus Torvalds , Oliver Upton , Marc Zyngier , "Dev Jain" , Linu Cherian , , Subject: Re: [PATCH v2 03/13] arm64: mm: Implicitly invalidate user ASID based on TLBI operation Message-ID: <20260127113130.00005395@huawei.com> In-Reply-To: <20260119172202.1681510-4-ryan.roberts@arm.com> References: <20260119172202.1681510-1-ryan.roberts@arm.com> <20260119172202.1681510-4-ryan.roberts@arm.com> X-Mailer: Claws Mail 4.3.0 (GTK 3.24.42; x86_64-w64-mingw32) 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-Transfer-Encoding: 7bit X-ClientProxiedBy: lhrpeml500010.china.huawei.com (7.191.174.240) To dubpeml500005.china.huawei.com (7.214.145.207) On Mon, 19 Jan 2026 17:21:50 +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 Reviewed-by: Jonathan Cameron