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:
Satya Rama Aditya Pinapala
2021-07-07 16:03:53 -07:00
parent 6a01182c1e
commit 28f8734077

View File

@@ -753,7 +753,7 @@ static void *get_vaddr(struct drm_gem_object *obj, unsigned madv)
dma_buf_vmap(obj->import_attach->dmabuf);
} else {
msm_obj->vaddr = vmap(pages, obj->size >> PAGE_SHIFT,
VM_MAP, pgprot_writecombine(PAGE_KERNEL));
VM_MAP, PAGE_KERNEL);
}
if (msm_obj->vaddr == NULL) {