mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Hsia-Jun Li <Randy.Li@synaptics.com>
To: iommu@lists.linux.dev
Cc: linux-kernel@vger.kernel.org, robin.murphy@arm.com,
	joro@8bytes.org, will@kernel.org
Subject: [RPC]: iommu/dma: custom iommu_setup_dma_ops for secure iommu
Date: Tue, 7 Mar 2023 18:52:44 +0800	[thread overview]
Message-ID: <77a82fb5-873f-f57c-a6fc-9cd879273d57@synaptics.com> (raw)

Hello All

If I want to implement a secure IOMMU. Is there any way other than hook 
the iommu_setup_dma_ops() I still want to use the of(device tree) helper?

The secure IOMMU is a little different from the existing secure 
attribute page table. The physical address and iova address not 
available for the Linux environment(REE), even they are available, they 
can't be configured to the secure device directly. So we don't need the 
Linux kernel to allocate the iova address for us, means I need to 
replace the current iommu_dma_map_sg() implementation.

Even sometimes it didn't do the iommu work, just allocate a secure 
reference page id for a continuous memory. I think the iommu framework 
is the most proper framework to implement this feature, it just fit the 
steps of importing a buffer for the secure world.

Please give me some advice on this idea.

-- 
Hsia-Jun(Randy) Li

                 reply	other threads:[~2023-03-07 10:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=77a82fb5-873f-f57c-a6fc-9cd879273d57@synaptics.com \
    --to=randy.li@synaptics.com \
    --cc=iommu@lists.linux.dev \
    --cc=joro@8bytes.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=will@kernel.org \
    /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

all inboxes | Powered by JetHome®