From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sinmsgout03.his.huawei.com (sinmsgout03.his.huawei.com [119.8.177.38]) (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 B8EE62F60B2 for ; Tue, 27 Jan 2026 12:28:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=119.8.177.38 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769516912; cv=none; b=f7DWr/8Ev9aEHjT9m08v0mbaJB3BjZXJ65y+6cSqYsitlVJrpIPTCGEsrl5Uu+dJ1TyHxEp48Xs6KBE5k6AOdxWGJXrtU3jchfvn9xQ+hUfuh0ITuDYnLa3UiBCYi+yc8vNc2JfC2g+alLshoWS5hjmLxLv44Kn44tgXee+8Pqg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769516912; c=relaxed/simple; bh=Hhdt5JJsrScIs/jF1KCnvALYrno/mg6ulcNFcKU2LgU=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PBOBv4ADCPyprFZMzmRUXHGGgBNngX3W0uAzWphMGU7PboMtpkWK+XKdLjBZY6QJmPwtVWcdfv0+jm0GXkf3WVQ03YyiUy3CTJumhPxNCwmTqYp7B3JkLBkcAa5OC+6leE3TTT9xblZU60wmVruwW98ElQBWAiVWYAOI1rK0BIk= 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=S3Ek7suB; arc=none smtp.client-ip=119.8.177.38 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="S3Ek7suB" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=Vq0+pay01iCH5O3M8SeguB0rBEFvN6Ud8yLFr7RxasU=; b=S3Ek7suBV0kwPBkO3bhPfYzQJFyyEfY3KZ1spJuhvEUlAlxR30ROmuh3mkuFNykZxm9nNcUVY 0L2hoxCQmvlT69wczkrBPR3UDKan8kOIApRkmyIciwNpexZfmx6Vjxli1wddW+QbedFjAIqk6cT B10aaYmbtdegaK6TTUXOWX8= Received: from frasgout.his.huawei.com (unknown [172.18.146.32]) by sinmsgout03.his.huawei.com (SkyGuard) with ESMTPS id 4f0l4L45LczMs5x; Tue, 27 Jan 2026 20:25:54 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.83]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4f0l6M213QzHnH6L; Tue, 27 Jan 2026 20:27:39 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id C8D3940086; Tue, 27 Jan 2026 20:28:24 +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 12:28:24 +0000 Date: Tue, 27 Jan 2026 12:28:22 +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 10/13] arm64: mm: Refactor __flush_tlb_range() to take flags Message-ID: <20260127122822.00005fa0@huawei.com> In-Reply-To: <20260119172202.1681510-11-ryan.roberts@arm.com> References: <20260119172202.1681510-1-ryan.roberts@arm.com> <20260119172202.1681510-11-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:57 +0000 Ryan Roberts wrote: > We have function variants with "_nosync", "_local", "_nonotify" as well > as the "last_level" parameter. Let's generalize and simplify by using a > flags parameter to encode all these variants. > > As a first step, convert the "last_level" boolean parameter to a flags > parameter and create the first flag, TLBF_NOWALKCACHE. When present, > walk cache entries are not evicted, which is the same as the old > last_level=true. > > Reviewed-by: Linu Cherian > Signed-off-by: Ryan Roberts Reviewed-by: Jonathan Cameron