Skip to content

Conversation

@liangchingyun
Copy link
Contributor

  • 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
Copy link
Collaborator

@jserv jserv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
```
Available virtual V4L2 compatible devices:
1. fbX(640,480,rgb24) -> /dev/video0
1. fbX(640,480,rgb24,mmap) -> /dev/video0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add note for DMA-BUF to illustrate the results.

Briefly describe DMA-BUF's purpose for cross-device buffer sharing.
@liangchingyun liangchingyun requested a review from jserv July 27, 2025 06:02
@jserv jserv merged commit e81d3ed into sysprog21:master Aug 14, 2025
2 checks passed
@jserv
Copy link
Collaborator

jserv commented Aug 14, 2025

Thank @liangchingyun for contributing!

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

Successfully merging this pull request may close these issues.

2 participants