cog icon indicating copy to clipboard operation
cog copied to clipboard

[i.MX][Etnaviv] drm platform: drmModeAddFB2WithModifiers returns ENOENT

Open any1 opened this issue 6 years ago • 7 comments

I'm experimenting with the experimental drm platform. It seems that the framebuffer object passed to on_export_dmabuf_resource() cannot be found.

What's the current state of this platform? Is it expected to work in some limited capacity on some system or is it entirely work in progress?

any1 avatar Sep 06 '19 17:09 any1

Can you describe your hardware and software stack?

So far this was working on Intel integrated GPUs. Pull #145 adds support for wl_resource imports and the drmModeAddFB2 fallback, which got it to work on a RockPi using the open-source stack (i.e. Mesa with Panfrost).

zdobersek avatar Sep 07 '19 09:09 zdobersek

I have i.MX6Q running etnaviv (mesa 19.0) on kernel 4.19. I will test the PR and see if it works.

any1 avatar Sep 07 '19 11:09 any1

I tested it on my side, and it still doesn't seem to work:

08:25:50.272168 ioctl(10, DRM_IOCTL_MODE_ADDFB2, 0xbeeca458) = -1 ENOENT (No such file or directory)
08:25:50.272537 ioctl(10, DRM_IOCTL_MODE_ADDFB2, 0xbeeca430) = -1 ENOENT (No such file or directory)

zdobersek avatar Sep 09 '19 08:09 zdobersek

I'm having this issue too. Linux 5.4 & mesa 20.0.7 I can investigate, but will need some directions/input

I traced it down to: DRM_DEBUG_KMS("Failed to lookup GEM object\n"); in drivers/gpu/drm/drm_gem_framebuffer_helper.c

woutervanh avatar Jun 15 '20 08:06 woutervanh

Same issue on IMX6DL

# cog --version
0.10.0 (WPE WebKit 2.32.1)

# uname -a
Linux gtv 5.4.77 #1 SMP Tue Jun 22 12:41:11 CEST 2021 armv7l GNU/Linux

# glmark2-es2-wayland 
=======================================================
glmark2 2020.04
=======================================================
OpenGL Information
GL_VENDOR:     etnaviv
GL_RENDERER:   Vivante GC880 rev 5106
GL_VERSION:    OpenGL ES 2.0 Mesa 20.3.5

ventosus avatar Jun 23 '21 15:06 ventosus

Can you try with this patch for Mesa/Etnaviv ?

There is here a report of someone that could make cog start with that (with i.MX and Etnaviv), but the screen is still not showing properly the webview.

clopez avatar Sep 15 '21 11:09 clopez

Issue seems still apparent with mesa 23.2.1 / linux 6.1.38 Tried above suggestions/patches but no progress

woutervanh avatar Feb 06 '24 14:02 woutervanh