Problem importing buffer allocated by etnaviv to imx-drm

Robert Foss robert.foss at collabora.com
Mon Nov 20 16:32:39 UTC 2017


Hey guys,

There is some dirty business going on in gbm_gralloc/drm_hwc related to
opening a device only once, but I think Martin seems to have had a look
at that already.

Martin: Does the post Chris mentioned help you in any way?

The build scripts I conjured up during development are linked here:
https://memcpy.io/android-getting-up-and-running-on-the-imx6.html


Rob.

On Mon, 2017-11-20 at 07:31 -0800, Chris Healy wrote:
> Hi Martin,
> 
> Have you looked at the work Robert Foss at Collabora did for Android
> on the i.MX6q and i.MX6qp?
> 
> https://www.collabora.com/news-and-blog/blog/2017/07/24/android-nxp-i
> .mx6-on-etnaviv-update/
> 
> Some of the work needed to support Android with etnaviv on the i.MX6
> has landed upstream but I don't believe it all has.
> 
> Robert, do you know what for sure has not landed upstream that would
> be needed for someone to run AOSP with etnaviv on the i.MX6?
> 
> Regards,
> 
> Chris
> 
> On Mon, Nov 20, 2017 at 2:36 AM, Martin Fuzzey <mfuzzey at parkeon.com>
> 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...
> > 
> > Any ideas on this?
> > 
> > 
> > Regards,
> > 
> > Martin
> > 
> > _______________________________________________
> > etnaviv mailing list
> > etnaviv at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/etnaviv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/etnaviv/attachments/20171120/12b06bc1/attachment.sig>


More information about the etnaviv mailing list