Support DMA-BUF memory type in buffer queue#41
Merged
jserv merged 3 commits intosysprog21:masterfrom Aug 14, 2025
Merged
Conversation
Contributor
liangchingyun
commented
Jun 17, 2025
- Added VB2_DMABUF to vb2_queue.io_modes
- Set mem_ops to vb2_dma_contig_memops for physically contiguous memory
- Implemented buf_init() and buf_cleanup() to manage per-buffer state
- Added VB2_DMABUF to vb2_queue.io_modes - Set mem_ops to vb2_dma_contig_memops for physically contiguous memory - Implemented buf_init() and buf_cleanup() to manage per-buffer state
e4e3d68 to
8d41b00
Compare
jserv
requested changes
Jul 1, 2025
Collaborator
jserv
left a comment
There was a problem hiding this comment.
Improve the configuration tool to make it aware of DMABUF.
Enable configuring vcam device memory type via user-space tool and driver. Users can now specify whether to use MMAP or DMABUF for buffer management.
8a0c30e to
599a2f9
Compare
jserv
reviewed
Jul 20, 2025
| ``` | ||
| Available virtual V4L2 compatible devices: | ||
| 1. fbX(640,480,rgb24) -> /dev/video0 | ||
| 1. fbX(640,480,rgb24,mmap) -> /dev/video0 |
Collaborator
There was a problem hiding this comment.
Add note for DMA-BUF to illustrate the results.
Briefly describe DMA-BUF's purpose for cross-device buffer sharing.
Collaborator
|
Thank @liangchingyun for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.