Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2535707ybe; Thu, 12 Sep 2019 10:53:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx7wWK8ob1RJ4Ie3D+IGhRTEO0xYbHl+BNfpmSQ0a/RwAz9Tb9LQzOkMXfdSZRpWGnhCKSo X-Received: by 2002:a17:906:480b:: with SMTP id w11mr36041983ejq.137.1568310806600; Thu, 12 Sep 2019 10:53:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568310806; cv=none; d=google.com; s=arc-20160816; b=zbLPCBNKthfhbwY8rmmoQ8jl7/AAlhPPZ+xfzopbf0F3ZuQIatj1RQjnCxcvx0AuKt 7FYSiAExm8eUJA5OmaSSfjBNj3P2RpwUZ3Sz6t0dIbeC+UDYtuI4OlhAPNp5PE2b1sR7 yJdi7HUYAbOfAjZYqR3ldc9BRJJggEJGLjluIDC1KfVzHtFqF3nABbut8orG6r6V09dU G84Jiz0VWuLPJe+Zs1b2F3v6uadumsU7Sg0KIlPCq6nQ6fV38VSg/DGrcMAF263G9AG0 awuXv8G6JMfa5Wxn8lDvwD0nmfMxPnpu2LQtmOfHDL7R+3GuW3XS38ryaBnhROr+TTpj V+vQ== 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:dkim-signature; bh=nLF/s+Ekemxa9+wdvxmSl7d/pfuCg8ZXt23ULu4g8QY=; b=qPE+otdsYkVAcb38s3SowP3/ZuZ/JAsiR/lCr4q8UBR4eleksHHjf9zrrikmGsIiCh HSffRtVGMoAsJmhGX4cXRSbXoRU323oI8b5feFOvqJudbiYPzyrMAAzNSllpNP+S467T Yke9HyPzXIPItF4zz2IL9Yvvrbb7OLnNWziT/68KWBQhfJINXHhhZH2RUHkOOtH1OAFR ooaWiUwJPR1oYeSp6AmA3npYB3Nt8JU/EYxKcHZuxGmWLIhTv/i4tTX+ori8lzb8jT48 FYLG5Qy/Hf8MnwSLaTQumt4TGpiqVlLnM9JZCFNQ6jzmnTpRx7A0M3kZVFTdLNOniDF3 mMcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zZWoHe9q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si13172761ejz.328.2019.09.12.10.53.01; Thu, 12 Sep 2019 10:53:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=zZWoHe9q; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732401AbfILODE (ORCPT + 99 others); Thu, 12 Sep 2019 10:03:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:38384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731971AbfILODE (ORCPT ); Thu, 12 Sep 2019 10:03:04 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BBFBA20856; Thu, 12 Sep 2019 14:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568296983; bh=W/mFNJBuhBpmbDbmK2QLeeqrvyKptqabZ5ypFqgATbU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zZWoHe9qke0fWfFJOlp7u5U6VNJ/lxOM6p5vMkZZFDleEdE1MM1auzRRZd1JCYzZN nCbzbEtEpYAkC86lEARz1IW1i5vUYhqPWk9cRUWCg/5A3JAdcXl5MG4tPAjfsJj/+m puXi1FKE2G+rPXBGADanJd04R0aDp5LpwZKXyxes= Date: Thu, 12 Sep 2019 15:02:56 +0100 From: Will Deacon To: Guo Ren Cc: Will Deacon , julien.thierry@arm.com, aou@eecs.berkeley.edu, james.morse@arm.com, Arnd Bergmann , suzuki.poulose@arm.com, Marc Zyngier , Catalin Marinas , Anup Patel , Linux Kernel Mailing List , Mike Rapoport , Christoph Hellwig , Atish Patra , Julien Grall , Palmer Dabbelt , gary@garyguo.net, Paul Walmsley , christoffer.dall@arm.com, linux-riscv@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, iommu@lists.linux-foundation.org Subject: Re: [PATCH RFC 11/14] arm64: Move the ASID allocator code in a separate file Message-ID: <20190912140256.fwbutgmadpjbjnab@willie-the-truck> References: <20190321163623.20219-12-julien.grall@arm.com> <0dfe120b-066a-2ac8-13bc-3f5a29e2caa3@arm.com> <20190619091219.GB7767@fuggles.cambridge.arm.com> <20190619123939.GF7767@fuggles.cambridge.arm.com> <20190624104006.lvm32nahemaqklxc@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 08, 2019 at 07:52:55AM +0800, Guo Ren wrote: > On Mon, Jun 24, 2019 at 6:40 PM Will Deacon wrote: > > > I'll keep my system use the same ASID for SMP + IOMMU :P > > > > You will want a separate allocator for that: > > > > https://lkml.kernel.org/r/20190610184714.6786-2-jean-philippe.brucker@arm.com > > Yes, it is hard to maintain ASID between IOMMU and CPUMMU or different > system, because it's difficult to synchronize the IO_ASID when the CPU > ASID is rollover. > But we could still use hardware broadcast TLB invalidation instruction > to uniformly manage the ASID and IO_ASID, or OTHER_ASID in our IOMMU. That's probably a bad idea, because you'll likely stall execution on the CPU until the IOTLB has completed invalidation. In the case of ATS, I think an endpoint ATC is permitted to take over a minute to respond. In reality, I suspect the worst you'll ever see would be in the msec range, but that's still an unacceptable period of time to hold a CPU. > Welcome to join our disscusion: > "Introduce an implementation of IOMMU in linux-riscv" > 9 Sep 2019, 10:45 Jade-room-I&II (Corinthia Hotel Lisbon) RISC-V MC I attended this session, but it unfortunately raised many more questions than it answered. Will