Skip to content
Commit 7b4eeed1 authored by James Harper's avatar James Harper Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarJames Harper <james.harper@ejbdigital.com.au>
Signed-off-by: default avatarMauro Carvalho Chehab <m.chehab@samsung.com>
parent b601fe56
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment