disp: msm: fix CPU mapping for memory buffers
The DMA buffers used by the display module are cached buffers. While mapping to the CPU, pgprot_writecombine should only be used for uncached buffers. The change fixes this mismatch during virtual address mapping. Change-Id: I2f54375b4eb4071d9bbcae44449bb6c99feb24a6 Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
This commit is contained in:
@@ -753,7 +753,7 @@ static void *get_vaddr(struct drm_gem_object *obj, unsigned madv)
|
|||||||
dma_buf_vmap(obj->import_attach->dmabuf);
|
dma_buf_vmap(obj->import_attach->dmabuf);
|
||||||
} else {
|
} else {
|
||||||
msm_obj->vaddr = vmap(pages, obj->size >> PAGE_SHIFT,
|
msm_obj->vaddr = vmap(pages, obj->size >> PAGE_SHIFT,
|
||||||
VM_MAP, pgprot_writecombine(PAGE_KERNEL));
|
VM_MAP, PAGE_KERNEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msm_obj->vaddr == NULL) {
|
if (msm_obj->vaddr == NULL) {
|
||||||
|
Reference in New Issue
Block a user