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

framebuffer/de: use vblank interrupt #23

Open
cnuke opened this issue Jun 26, 2023 · 1 comment
Open

framebuffer/de: use vblank interrupt #23

cnuke opened this issue Jun 26, 2023 · 1 comment
Labels

Comments

@cnuke
Copy link
Member

cnuke commented Jun 26, 2023

The following proof-of-concept commit replaces the timer-based capturing of screen data with using the VBLANK interrupt to trigger the update. It patches the a64_linux kernel to never disable the interrupt and adds a specific lx_emul function (lX_emul_framebuffer_vblank()) that is executed in the interrupt handler. The handler is called every ~26ms.

This was also reproduced with the pc_intel_fb_drv where the interrupt occurred every ~16ms when only one display was used and at varying intervals when multiple displays were connected.

So for less invasive (and properly accounting for mutiple displays) vblank handling we could look at how to profit from the drm_crtc_handle_vblank() call and how to enable the interrupt from the user's side of things.

@cnuke cnuke added the feature label Jun 26, 2023
cnuke added a commit to cnuke/genode-allwinner that referenced this issue Jun 26, 2023
@cnuke
Copy link
Member Author

cnuke commented Jul 30, 2024

@nfeske this issue contains the PoC commit for A64 - as I cannot find the corresponding intel_fb commit I assume I reiterated the same approach there as well (and did not deem it worthy for committing).

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

No branches or pull requests

1 participant