RFC scatterlist rust bindings
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | rust: add initial scatterlist bindingsrust/ rust/ rust/ +2 more | +303 | 14 replies | |
| 2/2 | samples: rust: add sample code for scatterlist bindingssamples/ | +13 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 0/2] scatterlist rust bindings
Hi,
Here are the scatterlist bindings that has been brewing for a while in my local tree while working with Nova code. The bindings are used mostly to build the radix3 table from the GSP firmware which is loaded via dma. This interface can be used on top of existing kernel scatterlist objects or to allocate a new one from scratch.
Some questions still need to be resolved, which mostly come from the DeviceSGTable::dma_map() function. Primarily, what if you call bindings::dma_map_sgtable() on an already mapped sg_table? From my experiments it doesn't seem to do anything and no indication is returned if the call succeeded or not. Should we save the "mapping info" to a list everytime we call DeviceSGTable::dma_map more than once?
Hoping this initial submission will generate some discussion. I'd like to acknowledge valuable feedback from Danilo Krummrich and Lyude Paul in shaping this up.
Abdiel Janulgue (2):
rust: add initial scatterlist bindings
samples: rust: add sample code for scatterlist bindings
rust/bindings/bindings_helper.h | 1 + rust/helpers/helpers.c | 1 + rust/helpers/scatterlist.c | 25 +++ rust/kernel/lib.rs | 1 + rust/kernel/scatterlist.rs | 275 ++++++++++++++++++++++++++++++++ samples/rust/rust_dma.rs | 14 +- 6 files changed, 316 insertions(+), 1 deletion(-) create mode 100644 rust/helpers/scatterlist.c create mode 100644 rust/kernel/scatterlist.rs
base-commit: dd21715de3dfa6f6457432ce909e5f7eb142a7d2
Signature · 1 line
2.43.0