From 28f8734077106561485b121262a40dce37b8fc5c Mon Sep 17 00:00:00 2001 From: Satya Rama Aditya Pinapala Date: Wed, 7 Jul 2021 16:03:53 -0700 Subject: [PATCH] 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 --- msm/msm_gem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/msm_gem.c b/msm/msm_gem.c index 4e08fb15fb..78714a5264 100644 --- a/msm/msm_gem.c +++ b/msm/msm_gem.c @@ -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) {