dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* DMA, TTM and memory encryption
@ 2020-03-16 15:24 Thomas Hellström (VMware)
  0 siblings, 0 replies; only message in thread
From: Thomas Hellström (VMware) @ 2020-03-16 15:24 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: Christian König, linux-kernel, dri-devel

Hi, Christoph,

It would be good to revisit this to see if we could set a direction for 
supporting user-space mapping of dma-coherent memory with TTM.

I think in the end, what TTM needs is a DMA interface similar to the one 
outlined here:

https://lore.kernel.org/lkml/b811f66d-2353-23c6-c9fa-e279cdb0f832@shipmail.org/

That could without too much effort be implemented for all architectures 
TTM supports and also for those weird architectures you've described 
that need special treatment, it would probably suffice with a more 
elaborate definition of the dma_pfn_t together with the dma coherent 
fault work you were suggesting earlier.

Regardless, once this patchset is in,

https://lore.kernel.org/lkml/20200304114527.3636-1-thomas_os@shipmail.org/

a short term solution would be to export the dma_pgprot() function and 
have TTM use it to set the pgprot for dma-coherent memory.

What do you think about this?

Thanks,

Thomas


_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-16 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-16 15:24 DMA, TTM and memory encryption Thomas Hellström (VMware)

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).