Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
any1 opened this issue Sep 6, 2019 · 7 comments
Open
Labels
needs investigation Needs some investigation to find the cause of the issue question The issue is a question from the reporter

Comments

@any1
Copy link
Contributor

any1 commented Sep 6, 2019

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?

@zdobersek
Copy link
Contributor

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).

@any1
Copy link
Contributor Author

any1 commented Sep 7, 2019

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

@aperezdc aperezdc added the question The issue is a question from the reporter label Sep 9, 2019
@zdobersek
Copy link
Contributor

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)

@aperezdc aperezdc added the needs investigation Needs some investigation to find the cause of the issue label Sep 9, 2019
@woutervanh
Copy link

woutervanh commented Jun 15, 2020

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

@ventosus
Copy link

ventosus commented Jun 23, 2021

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

@clopez
Copy link
Contributor

clopez commented Sep 15, 2021

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 clopez changed the title drm platform: drmModeAddFB2WithModifiers returns ENOENT [i.MX][Etnaviv] drm platform: drmModeAddFB2WithModifiers returns ENOENT Sep 15, 2021
@woutervanh
Copy link

woutervanh commented Feb 6, 2024

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

@woutervanh woutervanh mentioned this issue Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs investigation Needs some investigation to find the cause of the issue question The issue is a question from the reporter
Projects
None yet
Development

No branches or pull requests

6 participants