]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Use the linux DMA api to get valid device addresses of pages
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 24 Oct 2013 08:49:26 +0000 (01:49 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Wed, 6 Nov 2013 11:57:16 +0000 (03:57 -0800)
commit4f4c4ff3a3e45448077780ba01a7fb1f20ab7905
treeb8af3af9373dd0bbcb7df30b5e5a7b66dbf98801
parent5043b68fcbb3b67aeebc4b73ab45644686f562ea
drm/vmwgfx: Use the linux DMA api to get valid device addresses of pages

The code handles three different cases:
1) physical page addresses. The ttm page array is used.
2) DMA subsystem addresses. A scatter-gather list is used.
3) Coherent pages. The ttm dma pool is used, together with the dma_ttm
array os dma_addr_t

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c