Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1088289yba; Wed, 24 Apr 2019 14:55:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqzBQE0eV55+7MGcKbmn1J9GY1hQsd74mz3QhsjLu6EM09O8N01V1lsJOeRXhEx5wMUQbcW9 X-Received: by 2002:a63:243:: with SMTP id 64mr32823606pgc.214.1556142901357; Wed, 24 Apr 2019 14:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556142901; cv=none; d=google.com; s=arc-20160816; b=kw1gXKVWRal9IC9TCqHOMcnEb9Ym+MamYC6rzFlyr57Fw7UdXtbp6V4u60SBJpKG1O Jt6Vlo/nwtuSTA3MK2ysX9+Ygijpntq0yjwEGt3sqJsSjlONbosEpfkQvIQRBpPp+PB4 iB9+cVK1IGjqKhvjO+yTyZwDmAlJfXkUtPyNUm15lJb6v5o0vknebXAeZJ5e6w/+ykvK 67HF/WWTPkFP/Uh39F88t2m3r2Uwcsiw5Gyyo/8ZH3ciTkOrEQZ3C2j4ji9uHRiE8fkW fvBNvfLYitI94PcVFBi6IBivhm4EmghqZuogZDpm0glVJkyL/cnLoEaq/tSHf40ZYLAz v45g== 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=jHQmoK11bU2SVar4RDLMmOpxwBRH6iB/H9dD96c4Qu0=; b=IBQ3L/86BgdvQcegCxTkvP6VcEVKGSiLlLU6NZ1g2B/+sacjOUrvAX8UzCSrpkf9iT Lk/sZcnhEzntaoCGxW8Er7rsmYWWJt2LbiaHZoaoLGHS5a8Q5Hjq1/lnZCxQx4ltAbXj 5DDgW77EplwnjFNmiAoMFOgHFEM+qKjoqSF2HOwAWJZbCFVva6LzNWY8WAOQ0OyWGiV/ Ns5784oL4M5OrrZ0jn9HIccS5+QahlfbXlWR0c2fwGE1iSSw+3RQIuOdzvkag9E38PA2 4/XqqAMC9gm2uZ4yzFk0RBYIEqPN05uinFXvbaAdSN1utSOSC7Iq+E+Mh8ej27JDkekp ejmA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c186si20309481pfg.160.2019.04.24.14.54.45; Wed, 24 Apr 2019 14:55:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731755AbfDXPzJ (ORCPT + 99 others); Wed, 24 Apr 2019 11:55:09 -0400 Received: from 8bytes.org ([81.169.241.247]:37322 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730620AbfDXPzJ (ORCPT ); Wed, 24 Apr 2019 11:55:09 -0400 Received: by theia.8bytes.org (Postfix, from userid 1000) id 4A77C78F; Wed, 24 Apr 2019 17:55:06 +0200 (CEST) Date: Wed, 24 Apr 2019 17:55:06 +0200 From: Joerg Roedel To: Christoph Hellwig Cc: Tom Murphy , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Tom Murphy Subject: Re: [PATCH] iommu/amd: flush not present cache in iommu_map_page Message-ID: <20190424155505.GA6731@8bytes.org> References: <20190424141900.8883-1-tmurphy@arista.com> <20190424143246.GA24079@infradead.org> <20190424145819.GA16141@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190424145819.GA16141@infradead.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 07:58:19AM -0700, Christoph Hellwig wrote: > I'd be tempted to do that. But lets just ask Joerg if he has > any opinion.. The reason was that it is an unlikely path, as hardware implementations are not allowed to set this bit. It is purely for emulated AMD IOMMUs. I have not measured whether this annotation has any performance benefit, but I find it more readable at least. Regards, Joerg PS: Why did you drop me from the Cc list of the previous replies?