From nobody Mon Feb 9 09:37:12 2026 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D356B1F3BAE for ; Wed, 19 Feb 2025 14:46:23 +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=1739976385; cv=none; b=iSt3P8BCxPFRIST1Db0mPy9mkGhsHHcjHZTqpItt69dGTz5s7F2lAHRM15qwbuk6vlObXmCcngZzptt5CReFkheFd4fCVGL+1f6YMbrSxPqUyc84a9faiXyE/ryZUFfJ2jfcP1r6PY8Ne4EXuAsk1WN0U3l7sfx9QTwzxbGuJC0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739976385; c=relaxed/simple; bh=00S8SzVTUIlPAEjvwTNT51wKehEtr9/Cue1IlllhnSg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uoTI8SvWZN2d7e4QrIf5uyhqRpqFXatzKLVHA+3s1xRlWeWfWG7ZlibWoudUhEhPOycqB3hZRW9lRXP6CTJOaaOJXeAwIdL7I3JytPidifDZKVT4z96ELo5q66nS8vq+teYztMqMzYkSFLXWSu703V5Blhwy0yvZgcrpZ5lLumI= 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 9499C202C; Wed, 19 Feb 2025 06:46:41 -0800 (PST) Received: from mazurka.cambridge.arm.com (mazurka.cambridge.arm.com [10.2.80.18]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 40E293F59E; Wed, 19 Feb 2025 06:46:20 -0800 (PST) From: =?UTF-8?q?Miko=C5=82aj=20Lenczewski?= To: ryan.roberts@arm.com, yang@os.amperecomputing.com, catalin.marinas@arm.com, will@kernel.org, joey.gouly@arm.com, broonie@kernel.org, mark.rutland@arm.com, james.morse@arm.com, yangyicong@hisilicon.com, robin.murphy@arm.com, anshuman.khandual@arm.com, maz@kernel.org, liaochang1@huawei.com, akpm@linux-foundation.org, david@redhat.com, baohua@kernel.org, ioworker0@gmail.com, oliver.upton@linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Miko=C5=82aj=20Lenczewski?= Subject: [PATCH v1 3/3] arm64/mm: Elide tlbi in contpte_convert() under BBML2 Date: Wed, 19 Feb 2025 14:38:40 +0000 Message-ID: <20250219143837.44277-7-miko.lenczewski@arm.com> X-Mailer: git-send-email 2.45.3 In-Reply-To: <20250219143837.44277-3-miko.lenczewski@arm.com> References: <20250219143837.44277-3-miko.lenczewski@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="utf-8" Content-Transfer-Encoding: quoted-printable If we support bbml2 without conflict aborts, we can avoid the final flush and have hardware manage the tlb entries for us. Avoiding flushes is a win. Signed-off-by: Miko=C5=82aj Lenczewski Reviewed-by: Ryan Roberts --- arch/arm64/mm/contpte.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/mm/contpte.c b/arch/arm64/mm/contpte.c index e26e8f8cfb9b..26a86248f897 100644 --- a/arch/arm64/mm/contpte.c +++ b/arch/arm64/mm/contpte.c @@ -72,9 +72,6 @@ static void contpte_convert(struct mm_struct *mm, unsigne= d long addr, __flush_tlb_range(&vma, start_addr, addr, PAGE_SIZE, true, 3); =20 __set_ptes(mm, start_addr, start_ptep, pte, CONT_PTES); - - if (system_supports_bbml2_noconflict()) - __flush_tlb_range(&vma, start_addr, addr, PAGE_SIZE, true, 3); } =20 void __contpte_try_fold(struct mm_struct *mm, unsigned long addr, --=20 2.45.3