mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Laura Nao <laura.nao@collabora.com>
To: laura.nao@collabora.com, daniel.almeida@collabora.com
Cc: a.hindborg@kernel.org, acourbot@nvidia.com, airlied@gmail.com,
	aliceryhl@google.com, bjorn3_gh@protonmail.com, boqun@kernel.org,
	dakr@kernel.org, deborah.brouwer@collabora.com,
	dri-devel@lists.freedesktop.org, gary@garyguo.net,
	kernel@collabora.com, linux-kernel@vger.kernel.org,
	lossin@kernel.org, ojeda@kernel.org,
	rust-for-linux@vger.kernel.org, simona@ffwll.ch,
	tamird@kernel.org, tmgross@umich.edu, work@onurozkan.dev
Subject: Re: [PATCH v7 3/3] drm/tyr: add Job IRQ handling
Date: Thu, 26 Nov 2026 15:18:30 +0100	[thread overview]
Message-ID: <20261126141830.215638-1-laura.nao@collabora.com> (raw)
In-Reply-To: <20261126111145.117769-1-laura.nao@collabora.com>

On 11/26/26 12:11, Laura Nao wrote:
>
> Makes sense, thanks for the pointer. I this this also means 
> job_irq_init needs to return Result<impl PinInit<Self, Error> + 'a>
> instead of a fully constructed Result<Pin<KBox<TyrIrqRegistration<'a, JobIrq>>>>,
> right?
>
> With [0], Firmware is no longer wrapped in Arc. Iiuic, combined with the
> above, this will let us embed both the firmware and the job IRQ 
> registration as plain #[pin] fields in the same TyrDrmRegistrationData 
> struct. The job IRQ can then borrow a reference to the firmware's 
> JobIrqEvents directly within that same struct, instead of cloning it
> through Arc.
>
> If that's correct, I'll change both job_irq_init() and 
> TyrIrqRegistration::request() to return a 
> Result<impl PinInit<Self, Error> + 'a>.
>

..and here I meant job_irq_init should return 
Result<impl PinInit<TyrIrqRegistration<'a, JobIrq>, Error> + 'a> and
TyrRegistration::request() should return 
Result<impl PinInit<Self, Error> + 'a>. Sorry for the confusion.

Using a pin initializer seems the right direction regardless[1], so I'll
make the change.

Best,

Laura

[1] https://lore.kernel.org/all/DN545I66CKO1.2YKP99UIQQR43@kernel.org/

  reply	other threads:[~2026-11-26 14:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 14:58 [PATCH v7 0/3] " Laura Nao
2026-11-23 14:58 ` [PATCH v7 1/3] drm/tyr: add HwGate::try_access_atomic() Laura Nao
2026-11-23 18:13   ` Onur Özkan
2026-11-23 14:58 ` [PATCH v7 2/3] drm/tyr: add TyrIrq threaded IRQ wrapper Laura Nao
2026-11-24 17:54   ` Daniel Almeida
2026-11-26 11:21     ` Laura Nao
2026-11-26 11:41   ` Danilo Krummrich
2026-11-26 14:21     ` Laura Nao
2026-11-23 14:58 ` [PATCH v7 3/3] drm/tyr: add Job IRQ handling Laura Nao
2026-11-24 20:49   ` Daniel Almeida
2026-11-26 11:11     ` Laura Nao
2026-11-26 14:18       ` Laura Nao [this message]
2026-11-26 16:01         ` Danilo Krummrich
2026-11-26 11:45   ` Danilo Krummrich
2026-11-26 14:23     ` Laura Nao

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=20261126141830.215638-1-laura.nao@collabora.com \
    --to=laura.nao@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=daniel.almeida@collabora.com \
    --cc=deborah.brouwer@collabora.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gary@garyguo.net \
    --cc=kernel@collabora.com \
    --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®