Re: [Linaro-mm-sig] [PATCH 2/4] staging: android: ion: Restrict cache maintenance to dma mapped memory

2019-02-07 Thread Ørjan Eide
back to the device using dma_sync_{single,sg}_to_device. > > > I've run some testing, and this patch does indeed fix the crash in > > dma_sync_sg_for_cpu when it tried to use the 0 dma_address from the sg > > list. > > > > Tested-by: Ørjan Eide > > &g

Re: [Linaro-mm-sig] [PATCH 2/4] staging: android: ion: Restrict cache maintenance to dma mapped memory

2019-02-06 Thread Ørjan Eide
rally > > > while a buffer is dma mapped you have the device access it (though of > > > course it is supported for CPU to access to the buffer while dma mapped) > > > and then once the buffer is dma-unmapped the CPU can access it. This is > > > how the D

[PATCH 1/2] drm: rockchip: Don't pass DRM fake offset to dma-api

2015-04-16 Thread Ørjan Eide
, ignores the offset completely. Signed-off-by: Ørjan Eide --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_gem.c index 7ca8799e..69f01c3 100644 --- a/drivers

[PATCH 2/2] ARM: DMA: Use vm_pgoff for IOMMU mmap

2015-04-16 Thread Ørjan Eide
drm_gem.c still does this. It should be fixed before fixing arm_iommu_mmap_attrs(). Signed-off-by: Ørjan Eide --- arch/arm/mm/dma-mapping.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index c274476..07d571b 100644 --- a/arch/a