Received: by 2002:a17:90a:1609:0:0:0:0 with SMTP id n9csp3648905pja; Tue, 31 Mar 2020 02:47:00 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsbvdztoDiYVmt3B8oMYaNkRTYPPEsQfDlBneg4klqtYl0dY43JS+yli0nTSU9fneBGCzPu X-Received: by 2002:a05:6830:1556:: with SMTP id l22mr13130286otp.61.1585648020385; Tue, 31 Mar 2020 02:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585648020; cv=none; d=google.com; s=arc-20160816; b=Z2OmsFMR/ht3ZMymuhmvf9PUBs6jlHNnb8wYLV+c+Vs3PndnuKUq/KnHgItjaL6pT3 7aUr9vvxyaBOVYfgNoQZEGcdI3GppEEDunF0osixyKIpET4Jt3ncOm0tFfI0NOfeF3Qn u/Kbt5AkCiKhkdtt0eQbUiMJR7NiEBmQZTLj0szsimAI2kDa+wqNl9++8jpY1AMAHHM2 JfvAROQ28TbpseYLy6AMoJjHIeciHK57UHX/f2FfMQ3MyUDY6OF1BV+sfNIXCdKuoh3k PkKmhL+lov8k0k13b47WDywIn6418VBE14SG6nFGKL4Es85Uo+PT3d9X96opo9i5iyQP 33JA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Vgn+zN7/HUydUV3yq9V84pV7aXCyq/HQupvKFLfekj4=; b=SIaIMKyXM3dL+gBU2meKmxJ7mgvjQCGmKe26c1xpZuqDbFZP0j9QmcGx+1iNkj6RY2 tcGcURgxZ3FlyX/DzsdLKL/rea/QatLmDN/0NDLii6wbmuMtrH6j/T6fPnXUBt9ucE4h rKd8vy+z6sYuY+E3cWa8CaCvhdCIdW1C7VFEQDhrREvXj+KWz3iceP0oabQSGGrqutQc Oe+U1FVbwY+05Ky3HYbFypIOb/OG63YYoEJuv7lF3x/UDdYT0V+rMMv/ZX0C7GMWV49G VcqVNKzndI1MxXV7GBN979TW8V4txdOcxE9v9tMqt3t0Ehd69vYBdOx73mwFqtw9zANC aIEQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v81si6823265oia.114.2020.03.31.02.46.47; Tue, 31 Mar 2020 02:47:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730235AbgCaJp0 (ORCPT + 99 others); Tue, 31 Mar 2020 05:45:26 -0400 Received: from foss.arm.com ([217.140.110.172]:49726 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729997AbgCaJpZ (ORCPT ); Tue, 31 Mar 2020 05:45:25 -0400 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 6081430E; Tue, 31 Mar 2020 02:45:25 -0700 (PDT) Received: from C02TD0UTHF1T.local (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DDBD43F52E; Tue, 31 Mar 2020 02:45:22 -0700 (PDT) Date: Tue, 31 Mar 2020 10:45:11 +0100 From: Mark Rutland To: Andrea Arcangeli Cc: Catalin Marinas , Will Deacon , Rafael Aquini , Mark Salter , Jon Masters , linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org, Michal Hocko , QI Fuli Subject: Re: [PATCH 3/3] arm64: tlb: skip tlbi broadcast Message-ID: <20200331094034.GA1131@C02TD0UTHF1T.local> References: <20200223192520.20808-1-aarcange@redhat.com> <20200223192520.20808-4-aarcange@redhat.com> <20200309112242.GB2487@mbp> <20200314031609.GB2250@redhat.com> <20200316140906.GA6220@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200316140906.GA6220@lakrids.cambridge.arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrea, On Mon, Mar 16, 2020 at 02:09:07PM +0000, Mark Rutland wrote: > AFAICT, this series relies on: > > * An ISB completing prior page table walks when updating TTBR. I don't > believe this is necessarily the case, given how things work for an > EL1->EL2 transition where there can be ongoing EL1 walks. I've had confirmation that a DSB is necessary (after the MSR and ISB) to complete any ongoing translation table walks for the stale context. Without a DSB, those walks can observe subsequent stores and encounter the usual set of CONSTRAINED UNPREDICTABLE behaviours (e.g. walking into MMIO with side-effects, continuing from amalgamted entries, etc). Those issues are purely to do with the walk, and apply regardless of whether the resulting translations are architecturally consumed. > * Walks never being initiated for `inactive` contexts within the current > translation regime. e.g. while ASID x is installed, never starting a > walk for ASID y. I can imagine that the architecture may permit a form > of this starting with intermediate walk entries in the TLBs. I'm still chasing this point. Thanks, Mark.