All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Make the vmwgfx driver reasonably DMA-API compliant
@ 2013-11-04 13:57 Thomas Hellstrom
  2013-11-04 13:57 ` [PATCH 1/2] drm/ttm: Enable the dma page pool also for intel IOMMUs Thomas Hellstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Thomas Hellstrom @ 2013-11-04 13:57 UTC (permalink / raw)
  To: dri-devel

These patches makes the vmwgfx driver use the DMA API to obtain valid
device addresses rather than blindly using physical addresses.

The main motivation is to be able to use a virtual IOMMU in the future.

Other TTM drivers typically map pages one by one rather than using a
scatter-gather list, but since we can benefit from having a single dma
address region set up by the IOMMU, we use a scatter-gather list instead.

Finally to be able to handle all the dma mapping modes, we locally extend the
scatter-gather list page iterator to handle also the direct physical- and
coherent cases.

Finally, the TTM DMA page pool is enabled also when the Intel IOMMU is active

------------------------------------------------------------------------------
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951&iu=/4140/ostg.clktrk
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-11-04 20:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-04 13:57 [PATCH 0/2] Make the vmwgfx driver reasonably DMA-API compliant Thomas Hellstrom
2013-11-04 13:57 ` [PATCH 1/2] drm/ttm: Enable the dma page pool also for intel IOMMUs Thomas Hellstrom
2013-11-04 16:34   ` Konrad Rzeszutek Wilk
2013-11-04 20:36     ` Thomas Hellstrom
2013-11-04 13:57 ` [PATCH 2/2] drm/vmwgfx: Use the linux DMA api to get valid device addresses of pages Thomas Hellstrom
2013-11-04 16:27   ` Daniel Vetter
2013-11-04 17:26     ` Thomas Hellstrom
2013-11-04 16:40   ` Konrad Rzeszutek Wilk
2013-11-04 20:36     ` Thomas Hellstrom
2013-11-04 16:30 ` [PATCH 0/2] Make the vmwgfx driver reasonably DMA-API compliant Konrad Rzeszutek Wilk
2013-11-04 20:35   ` Thomas Hellstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.