Re: [PATCH v4 19/33] gpu: nova-core: Hopper/Blackwell: calculate reserved FB heap size

From: John Hubbard

Date: Fri Feb 20 2026 - 17:10:10 EST


On 2/19/26 1:01 AM, Miguel Ojeda wrote:
> On Thu, Feb 19, 2026 at 4:02 AM John Hubbard <jhubbard@xxxxxxxxxx> wrote:
>>
>> That doesn't compile on rustc 1.78.0:
>>
>> error[E0658]: inline-const is experimental
>> --> drivers/gpu/nova-core/num.rs:225:5
>> |
>> 225 | const { core::assert!(ALIGN.is_power_of_two(), "ALIGN must be a power of two") };
>> | ^^^^^
>> |
>> = note: see issue #76001 <https://github.com/rust-lang/rust/issues/76001> for more information
>> = help: add `#![feature(inline_const)]` to the crate attributes to enable
>> = note: this compiler was built on 2024-04-29; consider upgrading it if it is out of date
>>
>> error: aborting due to 1 previous error
>>
>> For more information about this error, try `rustc --explain E0658`.
>
> Please feel free to add `inline_const` to `rust_allowed_features` in
> `scripts/Makefile.build`.
>

OK, then! Done in v5.

thanks,
--
John Hubbard

> We are going to do it here:
>
> https://lore.kernel.org/rust-for-linux/20260206171253.2704684-2-gary@xxxxxxxxxx/
>
> Cheers,
> Miguel