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
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
, 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
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
4 matches
Mail list logo