rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Add dma coherent allocator abstraction
@ 2024-11-01 11:33 Abdiel Janulgue
  2024-11-01 11:33 ` [PATCH v2 1/2] rust: error: Add EOVERFLOW Abdiel Janulgue
  2024-11-01 11:33 ` [PATCH v2 2/2] rust: add dma coherent allocator abstraction Abdiel Janulgue
  0 siblings, 2 replies; 4+ messages in thread
From: Abdiel Janulgue @ 2024-11-01 11:33 UTC (permalink / raw)
  To: rust-for-linux
  Cc: daniel.almeida, a.hindborg, linux-kernel, dakr, airlied,
	miguel.ojeda.sandonis, wedsonaf, Abdiel Janulgue

This series adds support for the dma coherent allocator. This is based
on code developed by Andreas Hindborg for the rnvme driver. We adapted
this for basic use in the Nova driver to access the GSP via DMA [0].

Changes since v1:
- Fix missing info in commit log where EOVERFLOW is used
- Restrict the dma coherent allocator to numeric types for now for valid
  behaviour. [1]
- Build slice dynamically [1]


[0] https://gitlab.freedesktop.org/abj/nova-drm
[1] https://lore.kernel.org/all/6CF29D3D-C930-4274-9BAC-365C0F32DF56@collabora.com/
  

Abdiel Janulgue (2):
  rust: error: Add EOVERFLOW
  rust: add dma coherent allocator abstraction.

 rust/kernel/dma.rs   | 165 +++++++++++++++++++++++++++++++++++++++++++
 rust/kernel/error.rs |   1 +
 rust/kernel/lib.rs   |   1 +
 3 files changed, 167 insertions(+)
 create mode 100644 rust/kernel/dma.rs


base-commit: 718c4069896cabba5c39b637cbb7205927f16ae0
-- 
2.43.0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-11-03  3:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-01 11:33 [PATCH v2 0/2] Add dma coherent allocator abstraction Abdiel Janulgue
2024-11-01 11:33 ` [PATCH v2 1/2] rust: error: Add EOVERFLOW Abdiel Janulgue
2024-11-01 11:33 ` [PATCH v2 2/2] rust: add dma coherent allocator abstraction Abdiel Janulgue
2024-11-03  3:41   ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).