iommu.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
From: "Raj, Ashok" <ashok.raj@intel.com>
To: Joerg Roedel <joro@8bytes.org>
Cc: Ashok Raj <ashok.raj@intel.com>,
	Will Deacon <will.deacon@arm.com>,
	iommu@lists.linux-foundation.org,
	Robin Murphy <robin.murphy@arm.com>,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH V7 0/3] iommu: Add support to change default domain of an iommu group
Date: Thu, 24 Sep 2020 10:21:48 -0700	[thread overview]
Message-ID: <20200924172148.GA85236@otc-nc-03> (raw)
In-Reply-To: <cover.1595619936.git.sai.praneeth.prakhya@intel.com>

Hi Joerg,


On Mon, Sep 07, 2020 at 08:54:44PM -0700, Prakhya, Sai Praneeth wrote:
> Presently, the default domain of an iommu group is allocated during boot time
> and it cannot be changed later. So, the device would typically be either in
> identity (pass_through) mode or the device would be in DMA mode as long as the
> system is up and running. There is no way to change the default domain type
> dynamically i.e. after booting, a device cannot switch between identity mode and
> DMA mode.
> 
> Assume a use case wherein the privileged user would want to use the device in
> pass-through mode when the device is used for host so that it would be high
> performing. Presently, this is not supported. Hence add support to change the
> default domain of an iommu group dynamically.
> 
> Support this by writing to a sysfs file, namely
> "/sys/kernel/iommu_groups/<grp_id>/type".
> 
> Testing:
> --------
> Tested by dynamically changing storage device (nvme) from
> 1. identity mode to DMA and making sure file transfer works
> 2. DMA mode to identity mode and making sure file transfer works
> Tested only for intel_iommu/vt-d. Would appreciate if someone could test on AMD
> and ARM based machines.
> 

Just trying to followup on this series.

Sai has moved out of Intel, hence I'm trying to followup on his behalf.

Let me know if you have queued this for the next release.

> Based on iommu maintainer's 'next' branch.
> 
> Changes from V6:
> ----------------
> 1. None except for version bump.
> 

Cheers,
Ashok
_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

  parent reply	other threads:[~2020-09-24 17:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-24 19:51 [PATCH V5 0/3] iommu: Add support to change default domain of an iommu group Sai Praneeth Prakhya
2020-07-24 19:51 ` [PATCH V5 1/3] " Sai Praneeth Prakhya
2020-08-24  5:17   ` [PATCH V6 " Sai Praneeth Prakhya
2020-09-04  8:30   ` Joerg Roedel
2020-09-04 19:11     ` Prakhya, Sai Praneeth
2020-09-04 21:42       ` Joerg Roedel
2020-09-04 22:25         ` Prakhya, Sai Praneeth
2020-09-08  3:54   ` [PATCH V7 " Sai Praneeth Prakhya
2020-07-24 19:51 ` [PATCH V5 2/3] iommu: Take lock before reading iommu group default domain type Sai Praneeth Prakhya
2020-08-24  5:17   ` [PATCH V6 " Sai Praneeth Prakhya
2020-09-08  3:54   ` [PATCH V7 " Sai Praneeth Prakhya
2020-07-24 19:52 ` [PATCH V5 3/3] iommu: Document usage of "/sys/kernel/iommu_groups/<grp_id>/type" file Sai Praneeth Prakhya
2020-08-24  5:17   ` [PATCH V6 " Sai Praneeth Prakhya
2020-09-08  3:54   ` [PATCH V7 " Sai Praneeth Prakhya
2020-07-29 12:37 ` [PATCH V5 0/3] iommu: Add support to change default domain of an iommu group Joerg Roedel
2020-07-29 20:24   ` Prakhya, Sai Praneeth
2020-08-24  5:17 ` [PATCH V6 " Sai Praneeth Prakhya
2020-09-08  3:54 ` [PATCH V7 " Sai Praneeth Prakhya
2020-09-24 17:21 ` Raj, Ashok [this message]
2020-09-25  7:34   ` Joerg Roedel
2020-09-25 16:35     ` Raj, Ashok
2020-09-29  5:28     ` Raj, Ashok

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200924172148.GA85236@otc-nc-03 \
    --to=ashok.raj@intel.com \
    --cc=hch@lst.de \
    --cc=iommu@lists.linux-foundation.org \
    --cc=joro@8bytes.org \
    --cc=robin.murphy@arm.com \
    --cc=will.deacon@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).