Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2448900rdb; Mon, 12 Feb 2024 05:29:07 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNPdpZIf6AF+AH+ub97f/7xGIYAjb5izesOnkXDRDl+2LmsywtUk63q6xDqwGbdDC185JV X-Received: by 2002:aa7:c98f:0:b0:561:51a0:2872 with SMTP id c15-20020aa7c98f000000b0056151a02872mr5025861edt.19.1707744547336; Mon, 12 Feb 2024 05:29:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707744547; cv=pass; d=google.com; s=arc-20160816; b=X/p6uCnVSq82NM2s5fnYLazuMZZ6l4Omt2a17VkFtqUXI1WZJGl0CZWhxU2cb0cJqm K5vH/6pWpKKcXJYAiC9CX2cPlpqxFKVEhdah7+eOoAlwMpuZr1Rr4+YcX+bENV6landU wkQqBibP0mEFKasRods2XMmPmvSe08zlfcVQccikDTTCUrL5CzLD+BmvjZiBxAQOgzI8 le/P095aNf+bOfsTFXkiOyDXyCWZPPlWrcoDZAXDaLmrf5MqLNBr26+l75UEd+1rUSNg uaDUTkVR/CheO+yp9R5KDEBvIIRu/vvxhSb0m1+6auT6/PcirwVRaK/2yXgTjjDf9adf jpXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=qLa1enao/eBHrJt4n5b2gdRWxVNxxplXI5t3v+HwRWc=; fh=GlopxnPo8Nm28fbWOhWf+Z5KdiQeVEbr5HZfJe8zeec=; b=iSB4f32ifrMsatShU/7xQejFXRw6Pb52J9nCwcAqqSToRfxDExWSmVrloy1Prc76Yy MBtxTgJnpCstwGDLOE8AuDhJIRskfq8Ge7SUQIqqAbNnXfgqPk+dChusuBWwHVoLv6m5 XJ1gsWrqMUp6kGAd7AAOzl2v2cWS/mOfJ9EkvPnN2yQSwbPcXGnBEiDgvT2GH0HQzhrk tOE4SkaW9MokomJ1OGMv/Xd8vhGU54Xwdckyf3MhZ+oYJ8Tycvg0brvz4pCEEX/OdNt6 wzDFAqRTGWpjmt5TmBmw9C8VNwNef6aBcywojGvT2m1ZL+utevMZruwcPkoIsvvsdFxe +/mQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h/mzq9iC"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-61661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Forwarded-Encrypted: i=2; AJvYcCUdG5eh/OUwWIxq6Bulp2iLgNLHrLJVPgUqkrIY/oPBSz/oBjx1meioQjbZ1yQdES60Mg8wxPDFEmawKiIHHZ3sQmkvdlJmSrjIlM3E6g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g15-20020a0564021ecf00b00561cf673d8dsi429908edg.295.2024.02.12.05.29.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 05:29:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-61661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="h/mzq9iC"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-61661-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-61661-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.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 am.mirrors.kernel.org (Postfix) with ESMTPS id BA2CC1F21FC7 for ; Mon, 12 Feb 2024 13:29:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 781495380E; Mon, 12 Feb 2024 13:15:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="h/mzq9iC" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 89CA3535D3 for ; Mon, 12 Feb 2024 13:15:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743710; cv=none; b=hRVOcxw2fFkYSBv1JUj8dV8V8Rox4xuPUSjbJeZ7sPzd5UDR4YgHIPzLJRveUXPjcW6CuzkQfjg5L7tTCZ6QMvw2GGBE0sM+RUdlij2b5AwzA7GIfhMBNrVpVJZntpoZsTf2+kkdC7vD0Ud6wHva6K1JZTNMgy3CCHpmvJCsRb0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707743710; c=relaxed/simple; bh=edg48hCxUUsafxeXxN8gUXSfDiG+GzQwBNH1uurcdqc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=izAymprt9g9y739Z6qT0voh0EHmPYr64XWz6t9jAVnvZrG46LIhJuUNcVBMW2UZtjFVTBk777uVabBcRDzse5EFWYxYMkZe9NBjRUVfKmmeTFL3oMSXXmY76yiz6i/yhW8RvA07m8RWqHeWUjsfcrcQJixK0CgyWN0SLHaecXow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=h/mzq9iC; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707743707; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=qLa1enao/eBHrJt4n5b2gdRWxVNxxplXI5t3v+HwRWc=; b=h/mzq9iCNevJ3SxCgXsfaTNLECs8HigWONRhxLqlVhs1oJzEq3pnHwKgp625JqgezNGiRN iNR34fWMZ4ZXh0MvvLXlKrNHUPajrTnzo79eqEiyBvzFMTmPgKy5d21gHmg+JcxZEMaslB TP5QyIqTiDS2JzKGfn6k/81Ha1N/1xo= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-84-bYn63aOXOJa5VV9zaxI7zw-1; Mon, 12 Feb 2024 08:15:06 -0500 X-MC-Unique: bYn63aOXOJa5VV9zaxI7zw-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-410bce883a3so6801615e9.2 for ; Mon, 12 Feb 2024 05:15:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707743705; x=1708348505; h=content-transfer-encoding:in-reply-to:organization:autocrypt:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qLa1enao/eBHrJt4n5b2gdRWxVNxxplXI5t3v+HwRWc=; b=U7V+bg2+wQDwZGIMlmqVEshwcGxGi6vvhZm7PnN69Aya0Q7hkAuuF66yX1BTgKfeDz OTBDTzonRA+/SC95yVbQqDWprN5T3Y4FXJg0P3ke4hasvML3nudzD2uRrlhLVBsCmqyj Ak7PZ686W0UGLHmxKk7+1FjxiWSjlu7iVi1AzazwqSTJh7p1t3ux5pQ1tOajgqPc/Tnd DNiS8vd7p2QbDvIMbiCkRZf5TUGNtMUu3aoy1wbvNhkMNMGBw10vTadE/YXS69jqq0jZ Rv9717g0jMcln73CmpuGivl4gFs5LV7D30kdbi2ID6fa+Hck7tdiI53OPEwBL2UAjKSX 7pfA== X-Gm-Message-State: AOJu0YzenJpMg/9P6Lfs8g4k1Qnl6K3dM3Rzdamu5JKhMakhmxONnHu6 yRA0/AElFGQWLT9xFIHwMNCVx3i3yAZdF5zfXmXCaOVzf84HOEemOjz/dpPnm5/N9J5xhs0CfvS rg3HDqCUWAu/cuzwax1nRbgLJ2ANMvvxFzD0ryjEhMPGJMaMSEdDUBfbpMWxx6g== X-Received: by 2002:a05:600c:5112:b0:410:cf4f:68e9 with SMTP id o18-20020a05600c511200b00410cf4f68e9mr2207256wms.3.1707743704888; Mon, 12 Feb 2024 05:15:04 -0800 (PST) X-Received: by 2002:a05:600c:5112:b0:410:cf4f:68e9 with SMTP id o18-20020a05600c511200b00410cf4f68e9mr2207237wms.3.1707743704457; Mon, 12 Feb 2024 05:15:04 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWJ6bp9t1R9waQ+yUBOiEY4IhrHfAFgqkvGIjuaTC/RQ8vdJvr+BHS7HMQ8R22yBrp3pAArV5kbYF7ZgJCyHDTrisZibM51DrJ6qIf/TbCho3Wy1FPnrpAVTSe8sgYaI7gz+I/9FWXF4sHyzU0v9mURYSaaai3y440paSeg21rEUyVtD7vaVO+XSgqSy19Ggk8SnzolXKlwGpSy4Mb69uYiWui2f9XGPurcpQ2AeqL/wB3Db63q7HsDLjqWhEEkVtKByZ6ZB4Qp5LAoUEreL8/9LkSC/Dp0GqGN/5SKBTbIrIwR5zJb8z04StcwHnbhblZ5C31H+JoRkA2Y6i7TAK7aXPSGwz3p7ZuYEPynt3TMzFdTrDVWZzag51L6YpYANWbokG2GEmqILmdhCAg3v+x4pArdnhmSFC9dSL1xVKK+FSJjoOS4IldpTRIRc8m4eODIzJ8dCEpcpg28aXNObGxZQBMLpJGF31hAoVhOMXPNYaw2voehIK6UdpxmfvxQFi9DL7UuJL7xXammxCMLeQJiJmKLELWGDxVrUV/Vm7lsREZpxAArLk1nXD1nBIUvQX0woQQH56Bea3+j2hcHhi0XG0Tt1lYC7dIXs+06z3EgNANpmXoM2VDXQTv7lDLtKpmPSj+MYlqR6qGLpSGS7emv7z26sfcUZ6KAWRO3zHk8NEhYV/5Zx6HDFq96ogu41R8jssd/lnK6U6L5xFXuDejmm36GIfm5FsXaBAlVsRt38idNYeoXb5oMnRQIG2O/d5Pl8xHajeL76ov0JdMKKQuoBx7UgPt9nKE3ElYTch9c8UhDN18HWuQVlMiSdy+B6pui1i+CcRyoi8NqEdQvG/T8Izb+kMQhbFZwA8tAa+cb Received: from ?IPV6:2003:cb:c730:2200:7229:83b1:524e:283a? (p200300cbc7302200722983b1524e283a.dip0.t-ipconnect.de. [2003:cb:c730:2200:7229:83b1:524e:283a]) by smtp.gmail.com with ESMTPSA id en8-20020a056000420800b0033b7d9c14desm3956966wrb.5.2024.02.12.05.15.02 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Feb 2024 05:15:04 -0800 (PST) Message-ID: <608feac1-8cd6-48c2-87ab-688fb9c0bda4@redhat.com> Date: Mon, 12 Feb 2024 14:15:02 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 18/25] arm64/mm: Split __flush_tlb_range() to elide trailing DSB Content-Language: en-US To: Ryan Roberts , Catalin Marinas , Will Deacon , Ard Biesheuvel , Marc Zyngier , James Morse , Andrey Ryabinin , Andrew Morton , Matthew Wilcox , Mark Rutland , Kefeng Wang , John Hubbard , Zi Yan , Barry Song <21cnbao@gmail.com>, Alistair Popple , Yang Shi , Nicholas Piggin , Christophe Leroy , "Aneesh Kumar K.V" , "Naveen N. Rao" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Cc: linux-arm-kernel@lists.infradead.org, x86@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <20240202080756.1453939-1-ryan.roberts@arm.com> <20240202080756.1453939-19-ryan.roberts@arm.com> <9e1d793a-02c9-4dbb-a6d4-1e1c0c42638c@redhat.com> <1ef4c737-0926-424c-9698-794c23370b74@arm.com> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/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v0fFJOA9ag5O3LLNk+3x3q7e0uo06XMaY7UHS341ozXUUI7wC7iKfoUTv03iO9El5f XpNMx/YrIMduZ2+nd9Di7o5+KIwlb2mAB9sTNHdMrXesX8eBL6T9b+MZJk+mZuPxKNVfEQMQ a5SxUEADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: <1ef4c737-0926-424c-9698-794c23370b74@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 12.02.24 14:05, Ryan Roberts wrote: > On 12/02/2024 12:44, David Hildenbrand wrote: >> On 02.02.24 09:07, 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. >>> >>> Tested-by: John Hubbard >>> Signed-off-by: Ryan Roberts >>> --- >>>   arch/arm64/include/asm/tlbflush.h | 13 +++++++++++-- >>>   1 file changed, 11 insertions(+), 2 deletions(-) >>> >>> diff --git a/arch/arm64/include/asm/tlbflush.h >>> b/arch/arm64/include/asm/tlbflush.h >>> index 79e932a1bdf8..50a765917327 100644 >>> --- a/arch/arm64/include/asm/tlbflush.h >>> +++ b/arch/arm64/include/asm/tlbflush.h >>> @@ -422,7 +422,7 @@ do {                                    \ >>>   #define __flush_s2_tlb_range_op(op, start, pages, stride, tlb_level) \ >>>       __flush_tlb_range_op(op, start, pages, stride, 0, tlb_level, false, >>> kvm_lpa2_is_enabled()); >>>   -static inline void __flush_tlb_range(struct vm_area_struct *vma, >>> +static inline void __flush_tlb_range_nosync(struct vm_area_struct *vma, >>>                        unsigned long start, unsigned long end, >>>                        unsigned long stride, bool last_level, >>>                        int tlb_level) >>> @@ -456,10 +456,19 @@ static inline void __flush_tlb_range(struct >>> vm_area_struct *vma, >>>           __flush_tlb_range_op(vae1is, start, pages, stride, asid, >>>                        tlb_level, true, lpa2_is_enabled()); >>>   -    dsb(ish); >>>       mmu_notifier_arch_invalidate_secondary_tlbs(vma->vm_mm, start, end); >>>   } >>>   +static inline void __flush_tlb_range(struct vm_area_struct *vma, >>> +                     unsigned long start, unsigned long end, >>> +                     unsigned long stride, bool last_level, >>> +                     int tlb_level) >>> +{ >>> +    __flush_tlb_range_nosync(vma, start, end, stride, >>> +                 last_level, tlb_level); >>> +    dsb(ish); >>> +} >>> + >>>   static inline void flush_tlb_range(struct vm_area_struct *vma, >>>                      unsigned long start, unsigned long end) >>>   { >> >> You're now calling dsb() after mmu_notifier_arch_invalidate_secondary_tlbs(). >> >> >> In flush_tlb_mm(), we have the order >> >>     dsb(ish); >>     mmu_notifier_arch_invalidate_secondary_tlbs() >> >> In flush_tlb_page(), we have the effective order: >> >>     mmu_notifier_arch_invalidate_secondary_tlbs() >>     dsb(ish); >> >> In flush_tlb_range(), we used to have the order: >> >>     dsb(ish); >>     mmu_notifier_arch_invalidate_secondary_tlbs(); >> >> >> So I *suspect* having that DSB before >> mmu_notifier_arch_invalidate_secondary_tlbs() is fine. Hopefully, nothing in >> there relies on that placement. > > Will spotted this against v3. My argument was that I was following the existing > pattern in flush_tlb_page(). Apparently that is not correct and needs changing, > but the conclusion was to leave my change as is for now, since it is consistent > and change them at a later date together. Good, I think you should add a few words to the patch description ("ordering might be incorrect, but is in-line with __flush_tlb_page()"; will be resolved separately). -- Cheers, David / dhildenb