Rust ALLOC & DMA for v6.17
Danilo Krummrich
reviewerHi Miguel,
Please pull the following ALLOC & DMA changes.
All commits have been in linux-next for a couple of weeks. I did a test merge without any conflicts.
- Danilo
The following changes since commit 19272b37aa4f83ca52bdf9c16d5d81bdd1354494:
Linux 6.16-rc1 (2025-06-08 13:44:43 -0700)
are available in the Git repository at:
https://github.com/Rust-for-Linux/linux.git tags/alloc-next-v6.17-2025-07-15
for you to fetch changes up to d49ac7744f578bcc8708a845cce24d3b91f86260:
MAINTAINERS: add mm folks as reviewers to rust alloc (2025-07-09 16:01:17 +0200)
----------------------------------------------------------------
Alloc & DMA changes for v6.17
Box:
- Implement Borrow / BorrowMut for Box<T, A>.
Vec:
- Implement Default for Vec<T, A>.
- Implement Borrow / BorrowMut for Vec<T, A>.
DMA:
- Clarify wording and be consistent in 'coherent' nomenclature.
- Convert the read!() / write!() macros to return a Result.
- Add as_slice() / write() methods in CoherentAllocation.
- Fix doc-comment of dma_handle().
- Expose count() and size() in CoherentAllocation and add the corresponding type invariants.
- Implement CoherentAllocation::dma_handle_with_offset().
- Require mutable reference for as_slice_mut() and write().
- Add Vlastimil Babka, Liam R. Howlett, Uladzislau Rezki and Lorenzo Stoakes as reviewers (thanks everyone).
----------------------------------------------------------------
Abdiel Janulgue (3):
rust: dma: clarify wording and be consistent in coherent nomenclature
rust: dma: convert the read/write macros to return Result
rust: dma: add as_slice/write functions for CoherentAllocation
Alexandre Courbot (5):
rust: alloc: implement Borrow and BorrowMut for Vec
rust: alloc: implement Borrow and BorrowMut for KBox
rust: dma: fix doc-comment of dma_handle()
rust: dma: expose the count and size of CoherentAllocation
rust: dma: add dma_handle_with_offset method to CoherentAllocation
Alice Ryhl (1):
rust: vec: impl Default for Vec with any allocator
Danilo Krummrich (2):
Merge tag 'topic/dma-features-2025-06-23' into alloc-next
rust: dma: require mutable reference for as_slice_mut() and write()
Lorenzo Stoakes (1):
MAINTAINERS: add mm folks as reviewers to rust alloc
MAINTAINERS | 4 +++ rust/kernel/alloc/kbox.rs | 57 +++++++++++++++++++++++++++++++++++++ rust/kernel/alloc/kvec.rs | 55 ++++++++++++++++++++++++++++++++++- rust/kernel/dma.rs | 199 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------- samples/rust/rust_dma.rs | 28 +++++++++--------- 5 files changed, 295 insertions(+), 48 deletions(-)
Quoted 5 lines · Danilo Krummrich
Please pull the following ALLOC & DMA changes.
All commits have been in linux-next for a couple of weeks. I did a test merge without any conflicts.
Merged (yesterday) into rust-next -- thanks!
And, indeed, thanks to the MM folks.
(I see you needed to merged the DMA ones into Nova too.)
Cheers,
Miguel