Repository navigation
visionipc: use the upstream kernel's DMA-BUF heaps - #724
Open
adeebshihadeh wants to merge 1 commit into
Open
adeebshihadeh wants to merge 1 commit into
adeebshihadeh wants to merge 1 commit into
Conversation
The upstream kernel AGNOS is moving to has no ION, so on comma devices VisionIPC buffers now come from /dev/dma_heap/system. The DMA-BUF fds are passed like ION's, and the ISP, Venus and the GPU import them directly. The downstream kernel is no longer supported. - visionbuf_dmabuf.cc replaces visionbuf_ion.cc, picked at build time on AGNOS like ION was; shared memory everywhere else, as before. The ION handle goes from VisionBuf. - DMA-BUF needs every CPU access bracketed with DMA_BUF_IOCTL_SYNC, so VisionBuf gets begin_cpu_access(write)/end_cpu_access(write). Only the needed direction is synced (each sync is cache maintenance over the whole buffer per attached device, 0.25-0.37 ms per road frame): reads invalidate at the start, writes clean at the end. begin_cpu_read(start, length) invalidates just the lines a partial read touches with DC CIVAC on arm64 (camerad's auto exposure: 5.3% -> 3.8% of a core). sync() is now a no-op. - Python: begin_cpu_access/begin_cpu_read/end_cpu_access (OSError on a failed sync), and VisionIpcServer.send brackets its copy. - visionbuf test_runner covers allocation, fd import and CPU access.
adeebshihadeh
force-pushed
the
mainline-kernel
branch
from
November 28, 2026 01:47
c5f84c1 to
f77db3b
Compare
This branch has not been deployed
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.
No description provided.