drm/exynos: g2d userptr memory corruption

2015-08-27 Thread Tobias Jakobi
Tobias Jakobi wrote: > Next I looked into Jerome's question about whethere the G2D is > cache coherent with the CPU. I looked into old Android code and > found FIMG2D_AXI_MODE_REG, a register that currently isn't > touched in the DRM code. > It seems to manipulate signals to the AXI Master

drm/exynos: g2d userptr memory corruption

2015-08-27 Thread Tobias Jakobi
Hello, I did some further investigation into this issue. I extended my test application to also cover GEM/GEM and GEM/userptr transfers, and also putting GEM allocation flags into the mix. You can find the current version here:

drm/exynos: g2d userptr memory corruption

2015-08-19 Thread Tobias Jakobi
Adding Jérôme to Cc. I think he looked the userptr code before, so maybe he has some idea what is going wrong here. I also had a look at the code, but my knowledge about the DMA API is almost nonexistant. However I can see that before doing any DMA via the G2D on the buffer the code calls

drm/exynos: g2d userptr memory corruption

2015-08-19 Thread Rob Clark
On Wed, Aug 19, 2015 at 10:08 AM, Jerome Glisse wrote: > On Wed, Aug 19, 2015 at 03:53:44PM +0200, Tobias Jakobi wrote: >> Adding Jérôme to Cc. I think he looked the userptr code before, so maybe >> he has some idea what is going wrong here. >> >> I also had a look at the code, but my knowledge

drm/exynos: g2d userptr memory corruption

2015-08-19 Thread Jerome Glisse
On Wed, Aug 19, 2015 at 03:53:44PM +0200, Tobias Jakobi wrote: > Adding Jérôme to Cc. I think he looked the userptr code before, so maybe > he has some idea what is going wrong here. > > I also had a look at the code, but my knowledge about the DMA API is > almost nonexistant. However I can see

drm/exynos: g2d userptr memory corruption

2015-08-17 Thread Tobias Jakobi
Thanks Lucas for the explanation! Lucas Stach wrote: > Hi Tobias, > > Am Sonntag, den 16.08.2015, 14:48 +0200 schrieb Tobias Jakobi: >> Hello, >> >> some time ago I checked whether I could use the userptr functionality to >> do zero-copy from userspace allocated buffers via the G2D. This didn't

drm/exynos: g2d userptr memory corruption

2015-08-17 Thread Lucas Stach
Hi Tobias, Am Sonntag, den 16.08.2015, 14:48 +0200 schrieb Tobias Jakobi: > Hello, > > some time ago I checked whether I could use the userptr functionality to > do zero-copy from userspace allocated buffers via the G2D. This didn't > work out so well, so kinda put this to the bottom of my TODO

drm/exynos: g2d userptr memory corruption

2015-08-16 Thread Tobias Jakobi
Hello, some time ago I checked whether I could use the userptr functionality to do zero-copy from userspace allocated buffers via the G2D. This didn't work out so well, so kinda put this to the bottom of my TODO list. Now that IOMMU support has landed and Jan Kara has rewrote page pinning using