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

Add postmarketOS implemention in Wiki #9

Closed
ZenithalHourlyRate opened this issue Jan 20, 2022 · 8 comments
Closed

Add postmarketOS implemention in Wiki #9

ZenithalHourlyRate opened this issue Jan 20, 2022 · 8 comments

Comments

@ZenithalHourlyRate
Copy link

https://github.com/notro/gud/wiki/Gadget-Implementations mentioned old tablets/phones.

One way is to port f_gud to Android kernel, another way is to use mainline kernel with these old tablets/phones.

One implementation using postmarketOS is detailed in https://gist.github.com/ZenithalHourlyRate/220186818bae434386e80c62ee1bc7bc

@notro
Copy link
Owner

notro commented Jan 20, 2022

That's really cool and nice writeup!

I've added the link to the wiki page. The wiki should be writeable for all, so you can make the changes you want.

@notro
Copy link
Owner

notro commented Jan 20, 2022

I added a section in the wiki regarding your userspace implementation note: https://github.com/notro/gud/wiki/Gadget-Implementations#userspace-linux

@ZenithalHourlyRate
Copy link
Author

That's really cool and nice writeup!

Thanks!

I've added the link to the wiki page. The wiki should be writeable for all, so you can make the changes you want.

I think I should notify you about the changes are to made.

@notro
Copy link
Owner

notro commented Jan 20, 2022

Made a short note in the wiki about buffer sharing which I guess is the problem with the Nvidia driver: https://github.com/notro/gud/wiki/Linux-Host-Driver#prime-buffer-sharing

Seems to be 2 problems:

  1. The GUD driver uses the drm shmem helper and it doesn't support buffers that set map->is_iomem.
  2. There's a bug somewhere that triggers a BUG_ON() in dma-buf. Probably an error path somewhere that doesn't clean up properly.

@ZenithalHourlyRate
Copy link
Author

Made a short note in the wiki about buffer sharing which I guess is the problem with the Nvidia driver: https://github.com/notro/gud/wiki/Linux-Host-Driver#prime-buffer-sharing

Partial log for the host here (Repeated warnings ignored).

This happened when I unplugged GUD device from the host.

It seemds that the host can not find the buffer? Thus causing dma panic? Related line

gud 1-3:1.0: Failed to flush framebuffer: error=-5

@ZenithalHourlyRate
Copy link
Author

ZenithalHourlyRate commented Jan 20, 2022

Made a short note in the wiki about buffer sharing which I guess is the problem with the Nvidia driver: https://github.com/notro/gud/wiki/Linux-Host-Driver#prime-buffer-sharing

DRM PRIME Log here http://shz.al/xr7C. Generated by appending drm.debug=0x8 to kernel cmdline.

@notro
Copy link
Owner

notro commented Jan 21, 2022

Made a short note in the wiki about buffer sharing which I guess is the problem with the Nvidia driver: https://github.com/notro/gud/wiki/Linux-Host-Driver#prime-buffer-sharing

DRM PRIME Log here http://shz.al/xr7C. Generated by appending drm.debug=0x8 to kernel cmdline.

Looks like you forgot to plug in the USB display, there are no prime messages nor any splat.

@ZenithalHourlyRate
Copy link
Author

Looks like you forgot to plug in the USB display, there are no prime messages nor any splat.

http://shz.al/P3SB. This time I booted up with GUD plugged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants