Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6068052yba; Tue, 14 May 2019 00:47:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqydkx/1DsJcVTFkfHTxC0wyu6JTvn0akG5IcjztxD96zpgkiCxi7WUZEUJzgsxkUd+zbR47 X-Received: by 2002:a62:65c1:: with SMTP id z184mr19710956pfb.130.1557820067320; Tue, 14 May 2019 00:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557820067; cv=none; d=google.com; s=arc-20160816; b=LQOrtVtsc/zlIvLe8fG6b2EYjI5wR68NE6aFD9/nuC50nlB+0eI6/a4YQbS3eu8hwj vmtTo3JK9C059ztQTd6HD2fOKWYLkGSbR2m3ESGOiTAjTmDx6Y6pq9D3554LjzDg+f63 9eQdrPbLz82+f70tN0YfqkHQFHAIx/y8r2RvhF3d6gxfz/joip1qztxsbjPs1uc7Mkg3 j/6XTepWufRhIx6Ae0D46SV7wpxxyavHS/Uz1BStF15CyT1re8dLvYrMgUmujzo6ntcC 52ORsVa18PvoJjIsld8WMheGthxteLE9pXKxgKKB9+1HSN9qvvV5cvqlS4qAeaSf40h2 iYQg== 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=iqkO5nXEttP8TU9Hvadjb1M7wqksMtja1LnB3xDw094=; b=qSF4GxJ0kWJfoYEZR8uBRbxP4VBY8SGhuQFmEiXTMymF8GK5vMlRv8qnKPPRbqgp0o uR27o4m0W53Co5y7GFmmTnUGRC2Lt0KlVjj4ll0rYqPJDAAMYS4iqd2eWrAl/kwHMiBO Bdy1FC6tjX/x1u07/XLL/kadEFHXZGdIblhzXFAK09ay9MEBUSC13weivoNPKPm9Hr33 upG7Of0b8fWsZPgQYjrrOv9BTYhpJs4VdDLOcraN7r/YQa2TSVgq308nw8SsSgJP9SgR DrTR5x7Zxs/QC5QgAOdh5rG46keTqT+38LW+qX5EU6+FLPQd9NDIUCgApUiE2e5HNhyy WOvg== 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 h34si7761835pld.187.2019.05.14.00.47.31; Tue, 14 May 2019 00:47:47 -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 S1726503AbfENHqo (ORCPT + 99 others); Tue, 14 May 2019 03:46:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42858 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726274AbfENHqn (ORCPT ); Tue, 14 May 2019 03:46:43 -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 704FCBCD24; Tue, 14 May 2019 07:46:43 +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 CF0791001947; Tue, 14 May 2019 07:46:36 +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> From: Auger Eric Message-ID: <1edd45e6-4da3-e393-36b2-9e63cd5f7607@redhat.com> Date: Tue, 14 May 2019 09:46:35 +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: <1a5a5fad-ed21-5c79-9a9e-ff21fadfb95f@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.38]); Tue, 14 May 2019 07:46:43 +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/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 iommu_cache_invalidate_info's union. I understand the struct iommu_inv_pasid_info now would replace it, correct? Thanks Eric > > Thanks, > Jean > >> >> Domain invalidation would invalidate all the contexts belonging to that >> domain. >> >> Thanks >> >> Eric