From: James Harper Date: Thu, 12 Jun 2014 09:53:38 +0000 (-0300) Subject: [media] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready X-Git-Tag: omap-for-v3.17/fixes-against-rc2~155^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b4eeed174b71c325705ff8c53f333bc79d0ee7a;p=pandora-kernel.git [media] vmalloc_sg: make sure all pages in vmalloc area are really DMA-ready Patch originally written by Konrad. Rebased on current linux media tree. Under Xen, vmalloc_32() isn't guaranteed to return pages which are really under 4G in machine physical addresses (only in virtual pseudo-physical addresses). To work around this, implement a vmalloc variant which allocates each page with dma_alloc_coherent() to guarantee that each page is suitable for the device in question. Signed-off-by: Konrad Rzeszutek Wilk Signed-off-by: James Harper Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed