[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5snrr6hpwqfd7pfpd4qqvytwuwv6aimfatv4zymhlo2ymre33b@hczasmdnwioh>
Date: Tue, 23 Sep 2025 14:42:50 +1000
From: Alistair Popple <apopple@...dia.com>
To: John Hubbard <jhubbard@...dia.com>
Cc: Timur Tabi <ttabi@...dia.com>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>, Alexandre Courbot <acourbot@...dia.com>,
"dakr@...nel.org" <dakr@...nel.org>,
"rust-for-linux@...r.kernel.org" <rust-for-linux@...r.kernel.org>, "lossin@...nel.org" <lossin@...nel.org>,
"ojeda@...nel.org" <ojeda@...nel.org>, "boqun.feng@...il.com" <boqun.feng@...il.com>,
"a.hindborg@...nel.org" <a.hindborg@...nel.org>, "tzimmermann@...e.de" <tzimmermann@...e.de>,
"tmgross@...ch.edu" <tmgross@...ch.edu>, "alex.gaynor@...il.com" <alex.gaynor@...il.com>,
"simona@...ll.ch" <simona@...ll.ch>, "mripard@...nel.org" <mripard@...nel.org>,
"maarten.lankhorst@...ux.intel.com" <maarten.lankhorst@...ux.intel.com>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"nouveau@...ts.freedesktop.org" <nouveau@...ts.freedesktop.org>, "bjorn3_gh@...tonmail.com" <bjorn3_gh@...tonmail.com>,
"airlied@...il.com" <airlied@...il.com>, "aliceryhl@...gle.com" <aliceryhl@...gle.com>,
Joel Fernandes <joelagnelf@...dia.com>, "gary@...yguo.net" <gary@...yguo.net>
Subject: Re: [PATCH v2 08/10] nova-core: falcon: Add support to check if
RISC-V is active
On 2025-09-23 at 11:07 +1000, John Hubbard <jhubbard@...dia.com> wrote...
> On 9/22/25 12:12 PM, Timur Tabi wrote:
> > On Mon, 2025-09-22 at 21:30 +1000, Alistair Popple wrote:
> >> +
> >> + /// Check if the RISC-V core is active.
> >> + ///
> >> + /// Returns `true` if the RISC-V core is active, `false` otherwise.
> >> + #[expect(unused)]
> >> + pub(crate) fn is_riscv_active(&self, bar: &Bar0) -> Result<bool> {
> >> + let cpuctl = regs::NV_PRISCV_RISCV_CPUCTL::read(bar, &E::ID);
> >> + Ok(cpuctl.active_stat())
> >> + }
> >
> > This should be part of the HAL, because a different register is used on Turing.
> >
> > You can leave it here if you want, and I'll move into a HAL when I post Turing support. Your
> > choice.
>
> Yes, it's similar to the DMA mask patch in that regard (Hopper/Blackwell needs
> a different value).
>
> In the spirit of the current "soul" of patchsets, which is "get
> GPU firmware running on Ampere/Ada"), I think let's defer the HALs
> until the first patchset that needs them.
Agreed, lets fix that when we add/need the HALs as that's outside the scope of
what this patch series is trying to achieve.
> thanks,
> --
> John Hubbard
>
Powered by blists - more mailing lists