Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-05-01 Thread Alexandre Courbot
On Thu May 1, 2025 at 9:22 AM JST, Joel Fernandes wrote: > Hi Alex, > > On 4/30/2025 8:09 PM, Alexandre Courbot wrote: I am just not seeing the benefits of not using dyn for this use case and only drawbacks. IMHO, we should try to not be doing the compiler's job. Maybe the

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Joel Fernandes
Hi Alex, On 4/30/2025 8:09 PM, Alexandre Courbot wrote: >>> I am just not seeing the benefits of not using dyn for >>> this use case and only drawbacks. IMHO, we should try to not be doing the >>> compiler's job. >>> >>> Maybe the only benefit is you don't need an Arc or Kbox wrapper? >> That's no

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Alexandre Courbot
On Thu May 1, 2025 at 3:16 AM JST, Danilo Krummrich wrote: > On Wed, Apr 30, 2025 at 10:38:11AM -0400, Joel Fernandes wrote: >> On 4/30/2025 9:25 AM, Alexandre Courbot wrote: >> > On Tue Apr 22, 2025 at 11:44 PM JST, Danilo Krummrich wrote: >> >> >>> +/// Returns a boxed falcon HAL adequate for th

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Joel Fernandes
On 4/30/2025 2:16 PM, Danilo Krummrich wrote: [...] >>> It is also the one that makes use of methods to abstract things (vs. >>> fixed parameters), so it is a natural candidate for using virtual >>> methods. I am not a fan of having ever-growing boilerplate match >>> statements for each method that

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Danilo Krummrich
On Wed, Apr 30, 2025 at 10:38:11AM -0400, Joel Fernandes wrote: > On 4/30/2025 9:25 AM, Alexandre Courbot wrote: > > On Tue Apr 22, 2025 at 11:44 PM JST, Danilo Krummrich wrote: > > >>> +/// Returns a boxed falcon HAL adequate for the passed `chipset`. > >>> +/// > >>> +/// We use this function an

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Joel Fernandes
On 4/30/2025 9:25 AM, Alexandre Courbot wrote: > Hi Danilo, > > On Tue Apr 22, 2025 at 11:44 PM JST, Danilo Krummrich wrote: >> This patch could probably split up a bit, to make it more pleasant to >> review. :) > > Probably yes. I thought since it is mostly new files, splitting up > wouldn't

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Alexandre Courbot
Hi Danilo, On Tue Apr 22, 2025 at 11:44 PM JST, Danilo Krummrich wrote: > This patch could probably split up a bit, to make it more pleasant to review. > :) Probably yes. I thought since it is mostly new files, splitting up wouldn't change much. Let me see what I can do. > > On Sun, Apr 20, 202

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-30 Thread Danilo Krummrich
On Wed, Apr 30, 2025 at 06:58:44AM +, Joel Fernandes wrote: > > On Apr 22, 2025, at 10:45 AM, Danilo Krummrich wrote: > > > [1] > > https://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=bf7035a07e79a4047fb6834eac03a9f2 > > I am still researching this idea from a rust point

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-29 Thread Joel Fernandes
> On Apr 22, 2025, at 10:45 AM, Danilo Krummrich wrote: > […] >> + >> +fn get_signature_reg_fuse_version( >> +&self, >> +bar: &Devres, >> +engine_id_mask: u16, >> +ucode_id: u8, >> +) -> Result; >> + >> +// Program the BROM registers prior to starting

Re: [PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-22 Thread Danilo Krummrich
This patch could probably split up a bit, to make it more pleasant to review. :) On Sun, Apr 20, 2025 at 09:19:43PM +0900, Alexandre Courbot wrote: > > +#[repr(u8)] > +#[derive(Debug, Default, Copy, Clone)] > +pub(crate) enum FalconSecurityModel { > +#[default] > +None = 0, > +Light =

[PATCH 11/16] gpu: nova-core: add falcon register definitions and base code

2025-04-20 Thread Alexandre Courbot
Add the common Falcon code and HAL for Ampere GPUs, and instantiate the GSP and SEC2 Falcons that will be required to boot the GSP. Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/falcon.rs | 469 ++ drivers/gpu/nova-core/falcon/gsp.rs | 27