Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2791477ybd; Mon, 24 Jun 2019 12:45:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqz6A9FtWYoWGUAgtZlFW/Hr88l5vt4Icot+GJjJKT3rIw4AMT4niWmHXCrWoVyp3iwWA4qE X-Received: by 2002:a17:902:290b:: with SMTP id g11mr147233286plb.26.1561405510094; Mon, 24 Jun 2019 12:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561405510; cv=none; d=google.com; s=arc-20160816; b=zSMWm3o1jS/f64n/atNj2UkDrHssm6kqkbN8Lnwrdo7YjapRV6X9NQA++cpeQtkwq8 0N3zDDwjcmOoe4NK4y+QwcY28RDJ3n1/GyQEG1xiHsynvL0LoKNv0nSSzBNZgyl2EQwz qf9iR4g9nXx7F02i3eEGhGxo5q7VMxjcVBj+SCk8F5LqZ8pavhpzBPMBDARirfCEdJ8D J2BcCk2NZ14wyk45ndI9rpKnS/JyRqYgiTzK4Ovy5lNtkGiUZnCLPka9zQCQr9NS680j 7DaXI5kBJgFVVfRjK/ffpyqLVRvAu5JQK4nREqR2y4plUvPnmkvyv79dB8RGt7pPLpNg 57Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=ZB4uthKhLaIAX1FBXmfHCHIVdIe9BMvngNk0cK92H1M=; b=bTUCAlkuRTOucSSjZYf/6Q2+yJqjhS+ejy8hH8r9C7TJeFXIv2MzuJKrLDfbyLHzCK vVVgeoxWt5nTzuRfHliQ9D9wYvI7IddRglXiXx6lwMl/TVzQZuvZasFpk2jpTWFU5uki 0Q2lthqAnwtBqV4lfAELmTytfbhqkBQrADnR3EErYX9DD3rFIy8cDBHkiywCrEr3Frxp J5+cpoqvfUtKM5PIy/2shtKFXZ0h/RDrHN+wtJzj/vHDMsYOn4QM6PpK+wwp5N+5QbL5 kyMf3AONs/4OXUwnNg0M+4h3ghf0IzzsEa+h+M8nQSPLqRm3gf9UvzkKttPE/9i+BxiO AdqQ== 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 a2si10269492pgt.217.2019.06.24.12.44.54; Mon, 24 Jun 2019 12:45:10 -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 S1731175AbfFXPi0 (ORCPT + 99 others); Mon, 24 Jun 2019 11:38:26 -0400 Received: from foss.arm.com ([217.140.110.172]:53652 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726880AbfFXPiZ (ORCPT ); Mon, 24 Jun 2019 11:38: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 1A1CA2B; Mon, 24 Jun 2019 08:38:25 -0700 (PDT) Received: from arrakis.emea.arm.com (arrakis.cambridge.arm.com [10.1.196.78]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id A00903F71E; Mon, 24 Jun 2019 08:38:22 -0700 (PDT) Date: Mon, 24 Jun 2019 16:38:20 +0100 From: Catalin Marinas To: Guo Ren Cc: Julien Grall , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, aou@eecs.berkeley.edu, gary@garyguo.net, Atish Patra , hch@infradead.org, paul.walmsley@sifive.com, rppt@linux.ibm.com, linux-riscv@lists.infradead.org, Anup Patel , Palmer Dabbelt , suzuki.poulose@arm.com, Marc Zyngier , julien.thierry@arm.com, Will Deacon , christoffer.dall@arm.com, james.morse@arm.com Subject: Re: [PATCH RFC 11/14] arm64: Move the ASID allocator code in a separate file Message-ID: <20190624153820.GH29120@arrakis.emea.arm.com> References: <20190321163623.20219-1-julien.grall@arm.com> <20190321163623.20219-12-julien.grall@arm.com> <0dfe120b-066a-2ac8-13bc-3f5a29e2caa3@arm.com> <20190621141606.GF18954@arrakis.emea.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 12:35:35AM +0800, Guo Ren wrote: > On Fri, Jun 21, 2019 at 10:16 PM Catalin Marinas > wrote: > > BTW, if you find the algorithm fairly straightforward ;), see this > > bug-fix which took a formal model to identify: a8ffaaa060b8 ("arm64: > > asid: Do not replace active_asids if already 0"). [...] > Btw, Is this detected by arm's aisd allocator TLA+ model ? Or a real > bug report ? This specific bug was found by the TLA+ model checker (at the time we were actually tracking down another bug with multi-threaded CPU sharing the TLB, bug also confirmed by the formal model). -- Catalin