From b33d891cf3f897329ace253bfdc4d3970b5eceea Mon Sep 17 00:00:00 2001 From: Shubhraprakash Das Date: Mon, 21 Mar 2011 14:45:28 -0600 Subject: [PATCH] libgralloc-qsd8k: Flush ashmem region cache instead of Invalidating it ashmem ioctl does not allow the ashmem region to be invalidated anymore, so we have to flush the ashmem region instead of simply invalidating it. Change-Id: I912d2cf293e6ad39d40fb04fd0a1d21700a3907b --- mapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapper.cpp b/mapper.cpp index 9234c8d..5e194c7 100644 --- a/mapper.cpp +++ b/mapper.cpp @@ -291,7 +291,7 @@ int gralloc_unlock(gralloc_module_t const* module, err = ioctl( hnd->fd, PMEM_CLEAN_CACHES, &pmem_addr); } else if ((hnd->flags & private_handle_t::PRIV_FLAGS_USES_ASHMEM)) { unsigned long addr = hnd->base + hnd->offset; - err = ioctl(hnd->fd, ASHMEM_CACHE_CLEAN_RANGE, NULL); + err = ioctl(hnd->fd, ASHMEM_CACHE_FLUSH_RANGE, NULL); } LOGE_IF(err < 0, "cannot flush handle %p (offs=%x len=%x)\n",