aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_ttm.c
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2010-12-02 10:24:13 -0500
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-01-27 16:07:58 -0500
commit27e8b237944af967e0a808580278d432cb028455 (patch)
tree28d1b8ef8ad2477afeb7874f3bdf5e86a9434e96 /drivers/gpu/drm/radeon/radeon_ttm.c
parent69a07f0b117a40fcc1a479358d8e1f41793617f2 (diff)
ttm: Expand (*populate) to support an array of DMA addresses.
We pass in the array of ttm pages to be populated in the GART/MM of the card (or AGP). Patch titled: "ttm: Utilize the DMA API for pages that have TTM_PAGE_FLAG_DMA32 set." uses the DMA API to make those pages have a proper DMA addresses (in the situation where page_to_phys or virt_to_phys do not give use the DMA (bus) address). Since we are using the DMA API on those pages, we should pass in the DMA address to this function so it can save it in its proper fields (later patches use it). [v2: Added reviewed-by tag] Reviewed-by: Thomas Hellstrom <thellstrom@shipmail.org> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Tested-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ttm.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_ttm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
index 01c2c736a1da..6f156e9d3f31 100644
--- a/drivers/gpu/drm/radeon/radeon_ttm.c
+++ b/drivers/gpu/drm/radeon/radeon_ttm.c
@@ -655,7 +655,8 @@ struct radeon_ttm_backend {
655static int radeon_ttm_backend_populate(struct ttm_backend *backend, 655static int radeon_ttm_backend_populate(struct ttm_backend *backend,
656 unsigned long num_pages, 656 unsigned long num_pages,
657 struct page **pages, 657 struct page **pages,
658 struct page *dummy_read_page) 658 struct page *dummy_read_page,
659 dma_addr_t *dma_addrs)
659{ 660{
660 struct radeon_ttm_backend *gtt; 661 struct radeon_ttm_backend *gtt;
661 662