Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2274237rbb; Tue, 27 Feb 2024 17:19:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVVPLkNMWbmUBTM0CyJ0KnleAO9GlVwd3wDOw1iRNkgFcYHPNjvTzFd2B4X2CvQfThYAyGEKrho0GhVZvwtFL9716LfSiX7Gm2f2XZKuA== X-Google-Smtp-Source: AGHT+IEzdHl4+ILptEDJYNYlDv3IiKLLCk7FOfRl5Di1IGoZDcJeLr+JUoQ9l4qb944OaGh9CX5I X-Received: by 2002:a05:620a:2228:b0:787:da35:7bb9 with SMTP id n8-20020a05620a222800b00787da357bb9mr3318622qkh.17.1709083193217; Tue, 27 Feb 2024 17:19:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709083193; cv=pass; d=google.com; s=arc-20160816; b=tNEtEg5trDBJMoyWtZDIZOIsadG9Sk1J9UMRiP7Twxvd/83IcQRzQiyBg4uJ+19Loh 9xVtTAchIau9D5UJbqdvCdlYNcUISdxmKzkQSeFtJ/y6FS53ae9sMluZFiK0BtleqxTI S248equNSyzQU+TED/7X+cQCcGo1rZzz1EXbFmmo4hzcYhLJ/i0+ipn6eOmXqtahmlUt MwzA1+QkdDD6E3vIyiPCM6nhRtnjxnqv7Yi0bCKzv3/LuBosHYkXrH0zzlIn9GjL0eAG 5+stj9M+rKpCsmcJzXFRbGj0kRdNo/CtPNL0KLh88g0DK5cVRKxwQJn2Lusl18MkQxtB Q/3g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=66TESdJ/UC7eLQliThCoMdmNFdU6CieJXJQ7yo3BTGE=; fh=ti83tIhaJKXGiRDSNqtexhqd46bi1lVm29oyUVhVt30=; b=RRt0Ql3H6DBt76auOLcv/rZdKaQwQnEDxPzc9JVB0CeZO+l6qB3KIh4fwYJks+Y4AQ o+t8DEhWQtAdRAHhB6MoYmuVqWgszhsAFaN4Kk6JsqFkH5ixMNrWhyxOoD8qsWSfDKA/ W2fK0VPHyvlSLgM/spa7xtNaF/vR5fq20IwTqJEI3S75eY/UZUr5FrGOBMyrQjFhn9ko zK+lXKhW3FimQdh5HaSL866lHK98q63H5uuvQPcBc4jl3aSXbI/Mjd7LSKwKNWCMzEzu 8tie5iXPDzJS1vSTl74CaMtC4LzDjkOkj8z8qtqCJdjbEUh2NEMYMdcdyLKaC4FjJ8V1 wYOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lrIEPNnN; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b15-20020a05620a04ef00b00787de6efc42si3860645qkh.673.2024.02.27.17.19.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 17:19:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lrIEPNnN; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-84314-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84314-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F25881C24868 for ; Wed, 28 Feb 2024 01:19:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3AD31865; Wed, 28 Feb 2024 01:19:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="lrIEPNnN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7881A1103 for ; Wed, 28 Feb 2024 01:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709083185; cv=none; b=VYn/iopAOZR+naFL/T2EkOjPLdtEC+y+k91crbaqXStEI69ufZ7jIntkcY5c+6F+ZcJJ8fEXE1k6R28dDGVhzscLCiKr6I9XEQlgoog+gDqsQAhgvKi7doWPn/tSk+WfQr6z+lK4eBkcv4LW96j0LUNfAJUu+PKPav0d1lVo+nU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709083185; c=relaxed/simple; bh=tQvscC8DBlBxs+BhNJ1NwTvV+ccyIZaVmqcCkhwrSXU=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=VxMVv+T5ccWiNKKTndE0dyVM1EHDufYWvTVGV75MN6blVfGRyfU2BojvqF6rnoiYWZoHQJAoLuqwymFyX1JKnPKk8RXC8j8hUi0W33zEP7RYZRp3LVEDb8e/Vtey2vAsAcENFfkMtZF20n6ydxDQAwGHaNpjpIE8O4x4Nv5YkWY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=lrIEPNnN; arc=none smtp.client-ip=198.175.65.17 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709083185; x=1740619185; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=tQvscC8DBlBxs+BhNJ1NwTvV+ccyIZaVmqcCkhwrSXU=; b=lrIEPNnN6wr68RTV/tIdqkwBT0I5JSYgNHZhnppOQNuWHXgTg/SxjSYa JHSjtNhG5pCqRn3x8M5fwj6hlewFIwVQ/XGczW9h+5tQvgJiApAB+q5j/ jmOkDT6khNUStyIcrcjk88Bsa0CX7DKuPQhRWQv37IH8FJtV9s/SOUfmY uPw6DiTSS7VKRmDwDJ/6kfp72xpSY7TwCjPevx3HHm+46FjzjC6NGuyJU VTh7ewSWtjuP7LHVFPNQ8uGd4vcsMoGcUBiE3aSbz3xF3ccYkE9QlB8qu eGmnTqMI4gsh1is1wLy4RZ/PW5X3CymdozO+C1Itfn+HLZ7j1aYUVOB+G g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3620158" X-IronPort-AV: E=Sophos;i="6.06,189,1705392000"; d="scan'208";a="3620158" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Feb 2024 17:19:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,189,1705392000"; d="scan'208";a="11872833" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by fmviesa004.fm.intel.com with ESMTP; 27 Feb 2024 17:19:41 -0800 Message-ID: Date: Wed, 28 Feb 2024 09:13:45 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: baolu.lu@linux.intel.com, "iommu@lists.linux.dev" , "linux-kernel@vger.kernel.org" , Jason Gunthorpe Subject: Re: [PATCH 1/2] iommu: Add static iommu_ops->release_domain Content-Language: en-US To: "Tian, Kevin" , Joerg Roedel , Will Deacon , Robin Murphy , Jason Gunthorpe , "Badger, Eric" References: <20240223051302.177596-1-baolu.lu@linux.intel.com> <20240223051302.177596-2-baolu.lu@linux.intel.com> From: Baolu Lu In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2/27/24 3:32 PM, Tian, Kevin wrote: >> From: Lu Baolu >> Sent: Friday, February 23, 2024 1:13 PM >> >> >> + /* >> + * If the iommu driver provides release_domain then the core code >> + * ensures that domain is attached prior to calling release_device. >> + * Drivers can use this to enforce a translation on the idle iommu. > 'enforce a translation' is confusing in the context of blocking/identity > domain. Blocking or identity domain is also kind of a translation from the core's perspective. The core does not care what type of translation the release_domain is; it just enforces this type of translation before device release if the driver has specified one. Best regards, baolu