[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DFSOO86MMNW8.37S7T88EKPEFA@kernel.org>
Date: Mon, 19 Jan 2026 16:50:10 +0100
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Alexandre Courbot" <acourbot@...dia.com>
Cc: "Alice Ryhl" <aliceryhl@...gle.com>, "David Airlie" <airlied@...il.com>,
"Simona Vetter" <simona@...ll.ch>, "John Hubbard" <jhubbard@...dia.com>,
"Alistair Popple" <apopple@...dia.com>, "Joel Fernandes"
<joelagnelf@...dia.com>, "Timur Tabi" <ttabi@...dia.com>, "Edwin Peer"
<epeer@...dia.com>, "Eliot Courtney" <ecourtney@...dia.com>,
<nouveau@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, <rust-for-linux@...r.kernel.org>, "Lyude
Paul" <lyude@...hat.com>
Subject: Re: [PATCH v2 07/10] gpu: nova-core: firmware: fwsec: do not
require bound device when unneeded
On Tue Dec 16, 2025 at 5:27 AM CET, Alexandre Courbot wrote:
> /// Loads the FWSEC firmware into `falcon` and execute it.
> - pub(crate) fn run(
> - &self,
> - dev: &Device<device::Bound>,
> - falcon: &Falcon<Gsp>,
> - bar: &Bar0,
Hm..the method also takes a &pci::Bar, so its either called from a bound context
or within a Revocable critical section.
Leaving the other argument as &Device<Bound> makes it obvious which one it is
(and should be).
> - ) -> Result<()> {
> + pub(crate) fn run(&self, dev: &Device, falcon: &Falcon<Gsp>, bar: &Bar0) -> Result<()> {
> // Reset falcon, load the firmware, and run it.
> falcon
> .reset(bar)
>
> --
> 2.52.0
Powered by blists - more mailing lists