Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp666835rdb; Thu, 15 Feb 2024 11:23:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWwYBGrRlzivaGTdsfDIXNUOO5wp71mEBEgc0AAD1eioyge0P6qbcNMsaYSayBgcSG5wMjGPtgrJ9EMQQQOrfNeQP1rg0ydZiyqIjmdEw== X-Google-Smtp-Source: AGHT+IFn98bsxvHBrGYRsvhvGMSLoYerXD2bNwqER0Tqs/wGpW+QCxVVz+6Ya8si19XwtNPt1Wba X-Received: by 2002:a05:6358:9396:b0:17a:cd7f:4964 with SMTP id h22-20020a056358939600b0017acd7f4964mr3121918rwb.6.1708024985568; Thu, 15 Feb 2024 11:23:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708024985; cv=pass; d=google.com; s=arc-20160816; b=TOCrFGDRErCR+TzuKQ6LALr6eezApdy31suA045KHYl7uod6vKyTwXM+9zcsv9hZ/z BM+meN655GjicCYW0zWzKn41wFa0IMNXLPTI6mWi4hEIuTtXz5Kp/eMm2CQnos6FxeuL 6evSjmlUJnCag94WwQvdROb2EPrq6hkqL7cqjUFJutEcnviGOcS7XVdnvBZ4kS3yGeX3 gl/j9dMzoXwEwZTwHO4oxxu3TGw5Ti6lYuq4rninxM8YzG5jKDxy6FcSmDoliIleJvs6 WtSMekEEFlJJHAt/dNOHxVmjLK2u5J96kBhH8Es5IO912gGvU5cNa+S4I+/MzO5AWpGJ gN/w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=+g1gM4sigmr50yn9gPId9vBXyalsJLDJ02rVmW4cCko=; fh=r8G2JENgcRo/RTe4xvZO7IzPLZ7yvHykzgF2Da/HHrw=; b=cG19Nb4nUEs+tMFF4I+BQRL/IQScYuBEICxpMvN22rYagbFyyj9Dm8Oefb77vjk+Se NVr0H8Z3PYUmsJS4LD4ULChc+y5O+oQc2NLG4ogrzfqA0lSd93kC3FbATfeTEct+belW LU3rPtA/brO6xWWm3sTTvNPFawK9gjflFYmX+0orwNxloEEHgM6m6SBv/alu9xCNfyvG kEuvkNyc5ZugWSV3iYTcKxsjw7yDOMHdBg+4wGu/EqXKhBogcQBSFNxALnqQ9p4z65EO gxv2yO2RQdBL+CZ4JD1eaToYDQt2GlvCgBnB763NdR7C8QhseonicXvp7+17Ss05ObCD lbVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67570-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67570-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f21-20020a633815000000b005dc11e1ecb2si1549193pga.322.2024.02.15.11.23.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:23:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67570-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-67570-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67570-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 41670286E34 for ; Thu, 15 Feb 2024 19:23:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 06CD2139598; Thu, 15 Feb 2024 19:23:00 +0000 (UTC) Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7768113699A for ; Thu, 15 Feb 2024 19:22:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708024979; cv=none; b=GDz3fKQnZNioZ6QEwr3ZfsbgjZzoEZSH88spdiERNy07hYeOUQzobBzgSc5RW9hoJY4IHhCo2AR+sCkzzCPfr2FWGjbY5eopGwNqF73TGcsv0/6qHDBj/zLGcdyljEZbrd2DENWRb92Bc/642dsMrSGlUQNg3Ef0N5XzgdFQnNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708024979; c=relaxed/simple; bh=mkgNUm4xyRfw33PHYI3lP6y9p/NZoMAfQESJbqtAHwA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fWLVgpkT8hFI8ugW7vPD4/jvOfOU6O/HJMRuerRvOc2sBn08HnfjlPMKYDGla4p4YqlmTOwKdf2s1Gd518HuhdIyv7cbBLEH9gVbzhKMKCTsRamBL+dl+8mKvWaXn/+1URYwLdKXdbjXu6aSkLxfmudVmEXV68PJhEwmKFVy6Rg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88915C43390; Thu, 15 Feb 2024 19:22:54 +0000 (UTC) Date: Thu, 15 Feb 2024 19:22:52 +0000 From: Catalin Marinas To: Ryan Roberts Cc: Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , David Hildenbrand , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 11/18] arm64/mm: Split __flush_tlb_range() to elide trailing DSB Message-ID: References: <20240215103205.2607016-1-ryan.roberts@arm.com> <20240215103205.2607016-12-ryan.roberts@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=us-ascii Content-Disposition: inline In-Reply-To: <20240215103205.2607016-12-ryan.roberts@arm.com> On Thu, Feb 15, 2024 at 10:31:58AM +0000, Ryan Roberts wrote: > Split __flush_tlb_range() into __flush_tlb_range_nosync() + > __flush_tlb_range(), in the same way as the existing flush_tlb_page() > arrangement. This allows calling __flush_tlb_range_nosync() to elide the > trailing DSB. Forthcoming "contpte" code will take advantage of this > when clearing the young bit from a contiguous range of ptes. > > Ordering between dsb and mmu_notifier_arch_invalidate_secondary_tlbs() > has changed, but now aligns with the ordering of __flush_tlb_page(). It > has been discussed that __flush_tlb_page() may be wrong though. > Regardless, both will be resolved separately if needed. > > Reviewed-by: David Hildenbrand > Tested-by: John Hubbard > Signed-off-by: Ryan Roberts Acked-by: Catalin Marinas