[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241101113422.2615566-1-abdiel.janulgue@gmail.com>
Date: Fri, 1 Nov 2024 13:33:22 +0200
From: Abdiel Janulgue <abdiel.janulgue@...il.com>
To: rust-for-linux@...r.kernel.org
Cc: daniel.almeida@...labora.com,
a.hindborg@...nel.org,
linux-kernel@...r.kernel.org,
dakr@...hat.com,
airlied@...hat.com,
miguel.ojeda.sandonis@...il.com,
wedsonaf@...il.com,
Abdiel Janulgue <abdiel.janulgue@...il.com>
Subject: [PATCH v2 0/2] Add dma coherent allocator abstraction
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
Powered by blists - more mailing lists