Problem importing buffer allocated by etnaviv to imx-drm

Wladimir J. van der Laan laanwj at gmail.com
Mon Nov 20 14:12:29 UTC 2017


Hello Martin,

On Mon, Nov 20, 2017 at 11:36:48AM +0100, Martin Fuzzey wrote:
> Hi,
> 
> I'm trying to run etnaviv on i.MX6 / Android.
> 
> Using kernel 4.14 and mesa 17.3-rc2 with the latest drm_hwcomposer and
> gbm_gralloc
> 
> The problem I have is that when HWC tries to import the first client buffers
> (from bootanimation) there are errors like:
> 
> 01-01 17:27:02.282   443   443 E hwc-platform-drm-generic: failed to import
> prime fd 25 ret=-1
> 
> This is because the imx-drm kernel driver wants physically contiguous
> buffers for import (it uses drm_gem_cma_prime_import_sg_table()) but the
> buffer allocated by drm etnaviv isn't contiguous...

Hrm, with Mesa the buffers are normally allocated from imx-drm (using
drm_mode_create_dumb), and then imported into drm etnaviv for rendering, not
the other way around. These are contiguous.

Regards,
Wladimir


More information about the etnaviv mailing list