From: Abdiel Janulgue <abdiel.janulgue@gmail.com>
To: rust-for-linux@vger.kernel.org
Cc: daniel.almeida@collabora.com, a.hindborg@kernel.org,
linux-kernel@vger.kernel.org, dakr@redhat.com,
airlied@redhat.com, miguel.ojeda.sandonis@gmail.com,
wedsonaf@gmail.com, Abdiel Janulgue <abdiel.janulgue@gmail.com>
Subject: [PATCH v2 0/2] Add dma coherent allocator abstraction
Date: Fri, 1 Nov 2024 13:33:22 +0200 [thread overview]
Message-ID: <20241101113422.2615566-1-abdiel.janulgue@gmail.com> (raw)
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
next reply other threads:[~2024-11-01 11:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-01 11:33 Abdiel Janulgue [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241101113422.2615566-1-abdiel.janulgue@gmail.com \
--to=abdiel.janulgue@gmail.com \
--cc=a.hindborg@kernel.org \
--cc=airlied@redhat.com \
--cc=dakr@redhat.com \
--cc=daniel.almeida@collabora.com \
--cc=linux-kernel@vger.kernel.org \
--cc=miguel.ojeda.sandonis@gmail.com \
--cc=rust-for-linux@vger.kernel.org \
--cc=wedsonaf@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).