Re: [PATCH 1/6] gpu: nova-core: print FB sizes, along with ranges
From: John Hubbard
Date: Wed Nov 19 2025 - 02:36:45 EST
On 11/18/25 11:33 PM, Alexandre Courbot wrote:
On Thu Nov 6, 2025 at 12:54 PM JST, John Hubbard wrote:...
And with this new type, we can also address one another shortcoming that
was bugging me! In e.g. `boot.rs` we have this ugly bit:
frts_size: fb_layout.frts.end - fb_layout.frts.start,
What we want is a `len` method, but since our range uses u64, and `len`
returns a `usize`, standard Rust doesn't provide one for us. But thanks
to this dedicated type we can now implement our own! :)
Not saying this has to be done in this patch though, but it's a nice
side-effect.
This all sounds good, I'll do it, thanks for the ideas and most of
the implementation too. :)
thanks,
--
John Hubbard