mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "NK, JESHWANTHKUMAR" <jeshwanthkumar.nk@amd.com>
To: Christoph Hellwig <hch@infradead.org>
Cc: thomas.lendacky@amd.com, john.allen@amd.com,
	herbert@gondor.apana.org.au, davem@davemloft.net,
	jens.wiklander@linaro.org, sumit.garg@linaro.org,
	jarkko.nikula@linux.intel.com, mario.limonciello@amd.com,
	linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org,
	op-tee@lists.trustedfirmware.org,
	Mythri.Pandeshwarakrishna@amd.com, Devaraj.Rangasamy@amd.com,
	Rijo-john.Thomas@amd.com, nimesh.easow@amd.com
Subject: Re: [PATCH 1/3] crypto: ccp - Add function to allocate and free memory using DMA APIs
Date: Wed, 1 Nov 2023 19:42:16 +0530	[thread overview]
Message-ID: <9505fea9-1175-4427-a6b6-1783329b8c93@amd.com> (raw)
In-Reply-To: <ZT+wkcITIz0ThWU7@infradead.org>

Hi Christoph,

On 30-Oct-23 7:03 PM, Christoph Hellwig wrote:
> On Fri, Oct 27, 2023 at 07:05:17PM +0530, NK, JESHWANTHKUMAR wrote:
>> Can you please elaborate a bit more?
> Becasue the DMA API is a blackbox.  You can pass the dma_addr_t to
> hardware, and you can use the kernel virtual address.  That it can
> sometimes be implemented using the IMMU API is an implementation
> detail.  Similarly you can only feeds iovas generated by the IOMMU
> API into the IOMMU API, not any random other scalar value, which
> is what you can get from the DMA API.

Thanks for the explanation, I will send a new version of the patch.

Regards,

Jeshwanth


  reply	other threads:[~2023-11-01 14:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-25  6:56 [PATCH 0/3] Introduce DMA APIs to allocate and free TEE shared memory jeshwank
2023-10-25  6:56 ` [PATCH 1/3] crypto: ccp - Add function to allocate and free memory using DMA APIs jeshwank
2023-10-27  5:24   ` Christoph Hellwig
2023-10-30  6:05     ` NK, JESHWANTHKUMAR
     [not found]     ` <94059f5c-10dd-4d75-a69c-76b21ff49546@amd.com>
2023-10-30 13:33       ` Christoph Hellwig
2023-11-01 14:12         ` NK, JESHWANTHKUMAR [this message]
2023-10-25  6:56 ` [PATCH 2/3] crypto: ccp - Use psp_tee_alloc_buffer() and psp_tee_free_buffer() jeshwank
2023-10-25 21:26   ` kernel test robot
2023-10-25  6:57 ` [PATCH 3/3] tee: amdtee: " jeshwank
2023-10-25 13:31 ` [PATCH 0/3] Introduce DMA APIs to allocate and free TEE shared memory Sumit Garg
2023-10-26 10:30   ` NK, JESHWANTHKUMAR
2023-10-26 14:53     ` Tom Lendacky
2023-10-30  6:21       ` NK, JESHWANTHKUMAR

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=9505fea9-1175-4427-a6b6-1783329b8c93@amd.com \
    --to=jeshwanthkumar.nk@amd.com \
    --cc=Devaraj.Rangasamy@amd.com \
    --cc=Mythri.Pandeshwarakrishna@amd.com \
    --cc=Rijo-john.Thomas@amd.com \
    --cc=davem@davemloft.net \
    --cc=hch@infradead.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=jarkko.nikula@linux.intel.com \
    --cc=jens.wiklander@linaro.org \
    --cc=john.allen@amd.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=nimesh.easow@amd.com \
    --cc=op-tee@lists.trustedfirmware.org \
    --cc=sumit.garg@linaro.org \
    --cc=thomas.lendacky@amd.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

all inboxes | Powered by JetHome®