[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <DBCO0KQERIT5.GS89BZ9LY4TM@kernel.org>
Date: Tue, 15 Jul 2025 15:32:44 +0200
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Miguel Ojeda" <ojeda@...nel.org>
Cc: "Lorenzo Stoakes" <lorenzo.stoakes@...cle.com>, "Vlastimil Babka"
<vbabka@...e.cz>, "Liam R. Howlett" <Liam.Howlett@...cle.com>, "Uladzislau
Rezki" <urezki@...il.com>, "Alex Gaynor" <alex.gaynor@...il.com>, "Boqun
Feng" <boqun.feng@...il.com>, "Gary Guo" <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>, "Benno Lossin"
<benno.lossin@...ton.me>, "Andreas Hindborg" <a.hindborg@...nel.org>,
"Alice Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>,
<rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [GIT PULL] Rust ALLOC & DMA for v6.17
Hi 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(-)
Powered by blists - more mailing lists