From: "Danilo Krummrich" <dakr@kernel.org>
To: "Philipp Stanner" <phasta@mailbox.org>
Cc: phasta@kernel.org, "Miguel Ojeda" <ojeda@kernel.org>,
"Boqun Feng" <boqun@kernel.org>, "Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <lossin@kernel.org>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
"Daniel Almeida" <daniel.almeida@collabora.com>,
"Tamir Duberstein" <tamird@kernel.org>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"Onur Özkan" <work@onurozkan.dev>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Yury Norov (NVIDIA)" <yury.norov@gmail.com>,
"Asahi Lina" <lina+kernel@asahilina.net>,
"Burak Emir" <burak.emir@gmail.com>,
"Lorenzo Stoakes" <ljs@kernel.org>,
"Joel Fernandes" <joelagnelf@nvidia.com>,
"FUJITA Tomonori" <fujita.tomonori@gmail.com>,
"Boris Brezillon" <boris.brezillon@collabora.com>,
linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org,
linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org,
linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH v10 1/2] rust: Add dma_fence abstractions
Date: Fri, 04 Sep 2026 21:10:44 +0200 [thread overview]
Message-ID: <DL6RPZU472G9.2IG1XWSTOAMFU@kernel.org> (raw)
In-Reply-To: <5916d336906e4918a379178eca5699c2f7506ce8.camel@mailbox.org>
On Fri Sep 4, 2026 at 8:53 PM CEST, Philipp Stanner wrote:
> On Fri, 2026-09-04 at 17:32 +0200, Danilo Krummrich wrote:
>> On Wed Aug 12, 2026 at 9:22 AM CEST, Philipp Stanner wrote:
>> > Add abstractions for dma_fence in Rust.
>>
>> I was about to pick this up, but ended up with too many things to tweak.
>
> :(
>
>>
>> * Fix checkpatch.pl warnings,
>
> I get two, one of them being obsolete
I think the other one was a spelling mistake, do you run --codespell?
> WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
> #114:
> new file mode 100644
>
> WARNING: line length of 101 exceeds 100 columns
> #158: FILE: rust/helpers/dma_fence.c:40:
> +__rust_helper void rust_helper_dma_fence_unlock_irqrestore(struct dma_fence *f, unsigned long *flags)
>
>
>>
>> * use Opaque::zeroed() instead of __GFP_ZERO,
>
> That's literally what I had originally, but Alice objected and wanted
> GFP_ZERO, AFAIR because it's more efficient.
I don't think you can say this in general, it depends e.g. on the size of
T::FenceDataType, etc.
But struct dma_fence is pretty small, I doubt one can even measure the overhead.
Besides that, fence context creation is a cold path with many *much* more
expensive operations.
If we'd really care about that, you could also do neither as __dma_fence_init()
should write all fields anyway.
> Maybe you two want to get to an agreement on what's better.
Nah, it doesn't really matter, anything is fine with me.
>> * use kernel vertical import style.
>> Here's the diff I suggest for a v11:
>
> Thx, I'll take it into account.
next prev parent reply other threads:[~2026-09-04 19:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 7:22 [PATCH v10 0/2] rust / dma_buf: Add abstractions for dma_fence Philipp Stanner
2026-08-12 7:22 ` [PATCH v10 1/2] rust: Add dma_fence abstractions Philipp Stanner
2026-09-04 15:32 ` Danilo Krummrich
2026-09-04 18:53 ` Philipp Stanner
2026-09-04 19:10 ` Danilo Krummrich [this message]
2026-08-12 7:22 ` [PATCH v10 2/2] MAINTAINERS: Add entry for Rust dma-buf Philipp Stanner
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=DL6RPZU472G9.2IG1XWSTOAMFU@kernel.org \
--to=dakr@kernel.org \
--cc=a.hindborg@kernel.org \
--cc=acourbot@nvidia.com \
--cc=aliceryhl@google.com \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun@kernel.org \
--cc=boris.brezillon@collabora.com \
--cc=burak.emir@gmail.com \
--cc=christian.koenig@amd.com \
--cc=daniel.almeida@collabora.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fujita.tomonori@gmail.com \
--cc=gary@garyguo.net \
--cc=gregkh@linuxfoundation.org \
--cc=joelagnelf@nvidia.com \
--cc=lina+kernel@asahilina.net \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=ljs@kernel.org \
--cc=lossin@kernel.org \
--cc=ojeda@kernel.org \
--cc=phasta@kernel.org \
--cc=phasta@mailbox.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=tamird@kernel.org \
--cc=tmgross@umich.edu \
--cc=work@onurozkan.dev \
--cc=yury.norov@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
all inboxes | Powered by JetHome®