Use the direction argument passed into begin_cpu_access
and end_cpu_access when calling the dma_sync_sg_for_cpu/device.
The actual cache primitive called depends on the direction
passed in.
Signed-off-by: Sushmita Susheelendra
---
drivers/staging/android/ion/ion.c | 4 ++--
1 file changed, 2
Thanks for the catch!
-Sushmita
On 2017-07-10 01:20, Dan Carpenter wrote:
We recently added locking to this function but there was a direct
return
that was overlooked where we need to unlock.
Fixes: 0e08270a1f01 ("drm/msm: Separate locking of buffer resources
from struct_mutex")
Signed-off-by
Sounds good.
On 2017-06-16 15:44, Rob Clark wrote:
On Fri, Jun 16, 2017 at 5:32 PM, wrote:
Hi Rob,
This looks good to me!
Just one nit: msm_gem_vunmap becomes very shrinker specific as it
holds the
msm_obj->lock with the shrinker class. Should we have the caller i.e.
msm_gem_shrinker_vmap
also removes
unnecessary serialization when creating buffer objects, and also
between buffer object creation and GPU command submission.
Change-Id: I4fba9f8c38a6cd13f80f660639d1e74d4336e3fb
Signed-off-by: Sushmita Susheelendra
---
drivers/gpu/drm/msm/adreno/a5xx_gpu.c| 2 -
drivers/gpu/drm