commit | 582fe31d2719b45fd0accf85bf2351f1a15b97b7 | [log] [tgz] |
---|---|---|
author | Jeremy Gebben <jgebben@codeaurora.org> | Fri Mar 23 10:19:44 2012 -0600 |
committer | Ajay Dudani <adudani@codeaurora.org> | Sun Mar 25 13:39:28 2012 -0700 |
tree | a7484e330ae7810199adfb395e2a0ba204a8c3a6 | |
parent | 74e57d4eb3b37fbf57145573c5cb3892c89d8bc0 [diff] |
msm: kgsl: set the dma_address field of scatterlists Ion carveout and content protect heap buffers do not have a struct page associated with them. Thus sg_phys() will not work reliably on these buffers. Set the dma_address field on physically contiguous buffers. When mapping a scatterlist to the gpummu use sg_dma_address() first and if it returns 0 then use sg_phys(). Change-Id: Ie5f19986446be4383dfbfffa2534136b592e8e46 Signed-off-by: Jeremy Gebben <jgebben@codeaurora.org>