mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Almeida <daniel.almeida@collabora.com>
To: Danilo Krummrich <dakr@kernel.org>
Cc: aliceryhl@google.com, airlied@gmail.com, simona@ffwll.ch,
	lossin@kernel.org, gary@garyguo.net, ojeda@kernel.org,
	boqun@kernel.org, bjorn3_gh@protonmail.com,
	a.hindborg@kernel.org, tmgross@umich.edu, tamird@kernel.org,
	acourbot@nvidia.com, work@onurozkan.dev,
	dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/4] drm/tyr: use pin-init self-referential support
Date: Mon, 30 Nov 2026 20:23:31 -0300	[thread overview]
Message-ID: <05936DC8-AEA1-4DF5-ACF3-82CA0E7785C2@collabora.com> (raw)
In-Reply-To: <DN8XEIW6QENV.2NPH2JKJNS4KY@kernel.org>

Hi Danilo,

> On 30 Nov 2026, at 20:15, Danilo Krummrich <dakr@kernel.org> wrote:
> 
> On Wed Nov 25, 2026 at 12:03 AM CET, Daniel Almeida wrote:
>> You're saying this is possible under the code you're proposing? Because at
>> first glance this looks like a shortening of 'iomem to 'a (from
>> DriverFile<'a>), which I assume the compiler would reject due to invariance?
> 
> Yes. A user VM can borrow &'a Mmu<'iomem>. The lifetime 'a bounds the borrow,
> while the invariant 'iomem stays unchanged. That's why Vm has separate borrow
> and resource lifetime parameters. The invariant parameter can e.g. be hidden
> existentially in the file-private data (or an abstraction for a collection of
> data associated with handles created by ioctls), as it is in Firmware.


Ok, no complaints from my side :)

Thanks a lot for the patches! I’ll have a look this week

— Daniel

      reply	other threads:[~2026-11-30 23:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-18 23:37 Danilo Krummrich
2026-11-18 23:37 ` [PATCH 1/4] drm/tyr: name resource lifetimes after their types Danilo Krummrich
2026-11-19  2:08   ` Gary Guo
2026-11-19 10:34     ` Danilo Krummrich
2026-11-19 11:28       ` Gary Guo
2026-11-19 12:28         ` Danilo Krummrich
2026-11-19 12:56           ` Gary Guo
2026-11-19 13:57             ` Danilo Krummrich
2026-11-19 15:44               ` Alice Ryhl
2026-11-19 16:38                 ` Danilo Krummrich
2026-11-23 16:26                   ` Gary Guo
2026-11-18 23:37 ` [PATCH 2/4] rust: pin-init: internal: suppress multiple_bound_locations Danilo Krummrich
2026-11-19  2:23   ` Gary Guo
2026-11-18 23:37 ` [PATCH 3/4] drm/tyr: use pin-init self-referential support Danilo Krummrich
2026-11-18 23:37 ` [PATCH 4/4] drm/tyr: use ScopeGuard for firmware loading cleanup Danilo Krummrich
2026-11-23 22:20 ` [PATCH 0/4] drm/tyr: use pin-init self-referential support Daniel Almeida
2026-11-23 23:34   ` Danilo Krummrich
2026-11-24 23:03     ` Daniel Almeida
2026-11-30 23:15       ` Danilo Krummrich
2026-11-30 23:23         ` Daniel Almeida [this message]

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=05936DC8-AEA1-4DF5-ACF3-82CA0E7785C2@collabora.com \
    --to=daniel.almeida@collabora.com \
    --cc=a.hindborg@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun@kernel.org \
    --cc=dakr@kernel.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gary@garyguo.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=ojeda@kernel.org \
    --cc=rust-for-linux@vger.kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tamird@kernel.org \
    --cc=tmgross@umich.edu \
    --cc=work@onurozkan.dev \
    /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®