RFC vb2: Handle user cache hints, allow drivers to choose cache coherency
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest11 patches 26 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | vb2: Rename confusingly named internal buffer preparation functionsdrivers/ | +10 | 2 replies | |
| 2/11 | vb2: Move buffer cache synchronisation to prepare from queuedrivers/ | +11 | 1 reply | |
| 3/11 | vb2: Move cache synchronisation from buffer done to dqbuf handlerdrivers/ | +10 | 3 replies | |
| 4/11 | v4l: Unify cache management hint buffer flagsDocumentation/ include/ include/ | +17 | 4 replies | |
| 5/11 | v4l2-core: Don't sync cache for a buffer if so requesteddrivers/ include/ | +49 | 5 replies | |
| 6/11 | vb2: Improve struct vb2_mem_ops documentation; alloc and put are for MMAPinclude/ | +10 | 2 replies | |
| 7/11 | vb2: dma-contig: Remove redundant sgt_base fielddrivers/ | +10 | 4 replies | |
| 8/11 | vb2: dma-contig: Move vb2_dc_get_base_sgt() updrivers/ | +22 | 1 reply | |
| 9/11 | vb2: dma-contig: Don't warn on failure in obtaining scatterlistdrivers/ | +2 | 1 reply | |
| 10/11 | vb2: dma-contig: Let drivers decide DMA attrs of MMAP and USERPTR bufsdrivers/ include/ | +79 | 1 reply | |
| 11/11 | vb2: dma-contig: Add WARN_ON_ONCE() to check for potential bugsdrivers/ | +6 | 2 replies |
Reviews trailers per patch
5 of 11 patches have a Reviewed-by or Acked-by.
| Patch | Hans Verkuil | Laurent Pinchart |
|---|---|---|
| 1/11 | A-b | R-b |
| 2/11 | ||
| 3/11 | ||
| 4/11 | A-b | |
| 5/11 | ||
| 6/11 | A-b | R-b |
| 7/11 | ||
| 8/11 | R-b | |
| 9/11 | R-b | |
| 10/11 | ||
| 11/11 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC RESEND 00/11] vb2: Handle user cache hints, allow drivers to choose cache coherency
Hi folks,
This RFC patchset achieves two main objectives:
1. Respects cache flags passed from the user space. As no driver nor videobuf2 has (ever?) implemented them, the two flags are replaced by a single one (V4L2_BUF_FLAG_NO_CACHE_SYNC) and the two old flags are deprecated. This is done since a single flag provides the driver with enough information on what to do. (See more info in patch 4.)
2. Allows a driver using videobuf2 dma-contig memory type to choose whether it prefers coherent or non-coherent CPU access to buffer memory for MMAP and USERPTR buffers. This could be later extended to be specified by the user, and per buffer if needed.
Only dma-contig memory type is changed but the same could be done to dma-sg as well. I can add it to the set if people are happy with the changes to dma-contig.
Signature · 2 lines
Kind regards, Sakari