Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6227166yba; Tue, 14 May 2019 04:07:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzumTMGIpYmSELP9LFRSDYJbmlzyMVZJ7rxwsKyf9Ek0W5zocaRrfd3/L5XlIwRXNQnhe2r X-Received: by 2002:a17:902:e108:: with SMTP id cc8mr26117530plb.145.1557832020158; Tue, 14 May 2019 04:07:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557832020; cv=none; d=google.com; s=arc-20160816; b=uZ3wn3g/L+x65NIa2+oQnNNnrYFe3KqR8iqe0nSwS/V1dVsIBnkKkP/1r5idFKcsh7 olzK+xWkRYjb2i9HYqlcigpuGAZRbV0RGZVq6BeqvE9QdSdWSQ4oNIKyTXYTkP0VuUta BgTEfM0VRWZJ6tBqTPaIY6xWmCBX4E3ibLPXhSm/A7WKddrNUImGCuZg1kwYIq3ytvec U8x1zXsvE6QU1d86d3NI0Wk1MYhx7Xcfxf2msH0y/CbnppdY2IwtM2F6W+bRGCdADZHX JxU7nUHtmlqyi2hJ4knqP2VnG8yekyivlJkh3PXhff/Ri9GoqLNA8gdjJW42dIp7JVLF fMIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Fzl5iuIj46eSxlHtU2WLHzkpkdWFpn/Z3KGmAsYex7o=; b=uBE/E/VpuTvNllK2gbThwjWP/y8MPBcUf817RWpfoCp8za7dBDNurLF4B41S6RYRUO ebBZ43W0tyAQcB8rxVyDSaMWpYDEll91mERcFmXZJNklzhqYAeLeDC1HYzNoypDeEULS sfGOX/svvfoWf200PfC1pkPP6Ell+d3OMeDuKx6XRrt7M5Ry9Lzf+K194zbXxADMrLZX YWmphRmLWJZkBmN/hEPOkqdCClTWfJ45azxa6s0TbxjD6gZEvt+z5LceAB6VK0c5OQl+ tCA6gMJ/WjP9T9KjSwGPr19K6lEFaua1tJ2JU/ztlipeVXILGWgcQwU/2my2DfuDw9Lq hTpA== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a14si10180746plm.18.2019.05.14.04.06.36; Tue, 14 May 2019 04:07: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726569AbfENLCz (ORCPT + 99 others); Tue, 14 May 2019 07:02:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49236 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726221AbfENLCy (ORCPT ); Tue, 14 May 2019 07:02:54 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 81E9C3079B80; Tue, 14 May 2019 11:02:54 +0000 (UTC) Received: from [10.36.116.17] (ovpn-116-17.ams2.redhat.com [10.36.116.17]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 006701018A2E; Tue, 14 May 2019 11:02:49 +0000 (UTC) Subject: Re: [PATCH v3 02/16] iommu: Introduce cache_invalidate API To: Jean-Philippe Brucker , Jacob Pan , "iommu@lists.linux-foundation.org" , LKML , Joerg Roedel , David Woodhouse , Alex Williamson Cc: "Tian, Kevin" , Raj Ashok , Andriy Shevchenko References: <1556922737-76313-1-git-send-email-jacob.jun.pan@linux.intel.com> <1556922737-76313-3-git-send-email-jacob.jun.pan@linux.intel.com> <44d5ba37-a9e9-cc7a-2a3a-d32b840afa29@arm.com> <7807afe9-efab-9f48-4ca0-2332a7a54950@redhat.com> <1a5a5fad-ed21-5c79-9a9e-ff21fadfb95f@arm.com> <1edd45e6-4da3-e393-36b2-9e63cd5f7607@redhat.com> <4094baf1-6cf5-a33b-4717-08ced0673c50@arm.com> From: Auger Eric Message-ID: <5d2c0279-7fa9-3d11-9999-583f9ed329ba@redhat.com> Date: Tue, 14 May 2019 13:02:47 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <4094baf1-6cf5-a33b-4717-08ced0673c50@arm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Tue, 14 May 2019 11:02:54 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jean, On 5/14/19 12:42 PM, Jean-Philippe Brucker wrote: > On 14/05/2019 08:46, Auger Eric wrote: >> Hi Jean, >> >> On 5/13/19 7:09 PM, Jean-Philippe Brucker wrote: >>> On 13/05/2019 17:50, Auger Eric wrote: >>>>> struct iommu_inv_pasid_info { >>>>> #define IOMMU_INV_PASID_FLAGS_PASID (1 << 0) >>>>> #define IOMMU_INV_PASID_FLAGS_ARCHID (1 << 1) >>>>> __u32 flags; >>>>> __u32 archid; >>>>> __u64 pasid; >>>>> }; >>>> I agree it does the job now. However it looks a bit strange to do a >>>> PASID based invalidation in my case - SMMUv3 nested stage - where I >>>> don't have any PASID involved. >>>> >>>> Couldn't we call it context based invalidation then? A context can be >>>> tagged by a PASID or/and an ARCHID. >>> >>> I think calling it "context" would be confusing as well (I shouldn't >>> have used it earlier), since VT-d uses that name for device table >>> entries (=STE on Arm SMMU). Maybe "addr_space"? >> yes you're right. Well we already pasid table table terminology so we >> can use it here as well - as long as we understand what purpose it >> serves ;-) - So OK for iommu_inv_pasid_info. >> >> I think Jean understood we would keep pasid standalone field in I meant Jacob here. >> iommu_cache_invalidate_info's union. I understand the struct >> iommu_inv_pasid_info now would replace it, correct? Thank you for the confirmation. Eric > > Yes > > Thanks, > Jean >