From: Konrad Rzeszutek Wilk Date: Thu, 2 Dec 2010 16:36:24 +0000 (-0500) Subject: nouveau/ttm/PCIe: Use dma_addr if TTM has set it. X-Git-Tag: v2.6.39-rc1~458^2~23^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0138c26cdeee8c033256ccd9e07d66db3c998be;p=pandora-kernel.git nouveau/ttm/PCIe: Use dma_addr if TTM has set it. If the TTM layer has used the DMA API to setup pages that are TTM_PAGE_FLAG_DMA32 (look at patch titled: "ttm: Utilize the DMA API for pages that have TTM_PAGE_FLAG_DMA32 set"), lets use it when programming the GART in the PCIe type cards. This patch skips doing the pci_map_page (and pci_unmap_page) if there is a DMA addresses passed in for that page. If the dma_address is zero (or DMA_ERROR_CODE), then we continue on with our old behaviour. [v2: Added a review-by tag] Reviewed-by: Thomas Hellstrom Signed-off-by: Konrad Rzeszutek Wilk Tested-by: Ian Campbell --- Reading git-diff-tree failed