From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sinmsgout01.his.huawei.com (sinmsgout01.his.huawei.com [119.8.177.36]) (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 30D1F30E84A for ; Tue, 27 Jan 2026 11:29:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=119.8.177.36 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769513349; cv=none; b=npOwLA7+9tCsomisD8hJWOpir3UQVKq+z0iaS/ELTax0Ip03I2CoVnfJrcZVa/gZyASGBtKEjKCjGm6sgaADJjurbegnLM5i/SE3wJNlSH85ZapmP/2ZUsms+vLBaOudDe/QTLFUzaR6zagBS7ojgB/4u2xb+1w6CuYiknc/vaY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769513349; c=relaxed/simple; bh=cnvAtkk5FsTDOs+HdAr4T74WhK3p2gM8jAzTF/SnNTQ=; h=Date:From:To:CC:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=KFw4CIrIvH89Cpq63A3kwb7U8pIe9tUyeZMTsA9oPp9Ql9ttZWVr0KXA4dZnC2NRzixpzAcoXst+N5pjRUENX+765jyfGSOyXgz67l/HbKDd2p34wdE+Bq2/HxFpWhJyB1pcJiF+thf8eZdxc1DMOsZxTkCYNN1pxkaNAUwbugg= 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=MtGVz4T4; arc=none smtp.client-ip=119.8.177.36 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="MtGVz4T4" dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=AKD54RPFTb1ncRbwZbH+LUnfNI8nemki6y+VDR3YVF8=; b=MtGVz4T44pN4RgSR18/qzdlCY1Cb+eX0bpfP31QMracnZhtitkvKactilsgEEt0Oj4InpevXJ Gn2BSxvYjnFH/PibfT4oZFgyOtfvXMvSEnWTrcDeZFqjn+EYgbOZtF2p8uk/0KihFHRheelF/V8 EzB0vO/OvRX330bvM+N2hkA= Received: from frasgout.his.huawei.com (unknown [172.18.146.32]) by sinmsgout01.his.huawei.com (SkyGuard) with ESMTPS id 4f0jP60Kdrz1P7PD; Tue, 27 Jan 2026 19:10:17 +0800 (CST) Received: from mail.maildlp.com (unknown [172.18.224.150]) by frasgout.his.huawei.com (SkyGuard) with ESMTPS id 4f0jR329fGzHnH7b; Tue, 27 Jan 2026 19:11:59 +0800 (CST) Received: from dubpeml500005.china.huawei.com (unknown [7.214.145.207]) by mail.maildlp.com (Postfix) with ESMTPS id B575340539; Tue, 27 Jan 2026 19:12:44 +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:12:43 +0000 Date: Tue, 27 Jan 2026 11:12:42 +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 01/13] arm64: mm: Re-implement the __tlbi_level macro as a C function Message-ID: <20260127111242.00007fcd@huawei.com> In-Reply-To: <20260119172202.1681510-2-ryan.roberts@arm.com> References: <20260119172202.1681510-1-ryan.roberts@arm.com> <20260119172202.1681510-2-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: lhrpeml500011.china.huawei.com (7.191.174.215) To dubpeml500005.china.huawei.com (7.214.145.207) On Mon, 19 Jan 2026 17:21:48 +0000 Ryan Roberts wrote: > As part of efforts to reduce our reliance on complex preprocessor macros > for TLB invalidation routines, convert the __tlbi_level macro to a C > function for by-level TLB invalidation. > > Each specific tlbi level op is implemented as a C function and the > appropriate function pointer is passed to __tlbi_level(). Since > everything is declared inline and is statically resolvable, the compiler > will convert the indirect function call to a direct inline execution. > > Suggested-by: Linus Torvalds > Signed-off-by: Ryan Roberts Does what it says on the tin. Reviewed-by: Jonathan Cameron