Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Dave Airlie
On Wed, 21 May 2025 at 04:13, Joel Fernandes wrote: > > > > On 5/20/2025 11:36 AM, Danilo Krummrich wrote: > >>> If you want a helper type with Options while parsing that's totally fine, > >>> but > >>> the final result can clearly be without Options. For instance: > >>> > >>> struct Data { >

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Danilo Krummrich
On Tue, May 20, 2025 at 11:11:12AM -0400, Joel Fernandes wrote: > On 5/20/2025 11:01 AM, Danilo Krummrich wrote: > > I made this change and it LGTM. Thanks! I did not do the '.0' though since I > want to keep the readability, lets see in the next revision if that looks > good. I think readabilit

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Danilo Krummrich
On Tue, May 20, 2025 at 09:43:42AM -0400, Joel Fernandes wrote: > On 5/20/2025 5:30 AM, Danilo Krummrich wrote: > > On Tue, May 20, 2025 at 03:55:06AM -0400, Joel Fernandes wrote: > >> On 5/13/2025 1:19 PM, Danilo Krummrich wrote: > >>> On Wed, May 07, 2025 at 10:52:43PM +0900, Alexandre Courbot wr

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-20 Thread Danilo Krummrich
On Tue, May 20, 2025 at 03:55:06AM -0400, Joel Fernandes wrote: > On 5/13/2025 1:19 PM, Danilo Krummrich wrote: > > On Wed, May 07, 2025 at 10:52:43PM +0900, Alexandre Courbot wrote: > >> @@ -238,6 +239,8 @@ pub(crate) fn new( > >> > >> let _sec2_falcon = Falconnew(pdev.as_ref(), >

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-16 Thread Timur Tabi
On Wed, 2025-05-07 at 22:52 +0900, Alexandre Courbot wrote: > +impl FwSecBiosImage { > +    fn setup_falcon_data( > +    &mut self, > +    pdev: &pci::Device, > +    pci_at_image: &PciAtBiosImage, > +    first_fwsec_image: &FwSecBiosImage, > +    ) -> Result<()> { > +    let mut

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-14 Thread Danilo Krummrich
On Wed, May 07, 2025 at 10:52:43PM +0900, Alexandre Courbot wrote: > +/// PCI Data Structure as defined in PCI Firmware Specification > +#[derive(Debug, Clone)] > +#[repr(C)] > +struct PcirStruct { > +/// PCI Data Structure signature ("PCIR" or "NPDS") > +pub signature: [u8; 4], > +///

Re: [PATCH v3 16/19] nova-core: Add support for VBIOS ucode extraction for boot

2025-05-13 Thread Danilo Krummrich
On Wed, May 07, 2025 at 10:52:43PM +0900, Alexandre Courbot wrote: > From: Joel Fernandes > > Add support for navigating and setting up vBIOS ucode data required for > GSP to boot. The main data extracted from the vBIOS is the FWSEC-FRTS > firmware which runs on the GSP processor. This firmware r