From: Inki Dae Date: Wed, 26 Dec 2012 09:06:01 +0000 (+0900) Subject: drm/exynos: consider buffer allocation without iommu X-Git-Tag: v3.8-rc3~6^2~3^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=694be458794da6415288978c7b5f8288ae2dc5c3;p=pandora-kernel.git drm/exynos: consider buffer allocation without iommu This patch fixes the issue that when buffer allocation is requested without iommu, the allocation is failed. Without iommu, dma_alloc_attrs function allocates some memory region and returns cpu address so this patch makes the cpu address to be set to buf->kvaddr correctly. Changelog v2: - fix buffer free . Without iommu, dma_free_attrs function requires kernel space address as argument. So it changes the argument, buf->pages to buf->kvaddr. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- Reading git-diff-tree failed