[PATCH 0/2] Make the vmwgfx driver reasonably DMA-API compliant

Thomas Hellstrom thellstrom at vmware.com
Mon Nov 4 05:57:37 PST 2013


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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel


More information about the dri-devel mailing list