Re: [PATCH 4/4] drm: nova: Add a GETPARAM parameter to read usable VRAM size

From: Danilo Krummrich

Date: Mon Jul 06 2026 - 15:46:29 EST


On Mon Jul 6, 2026 at 7:34 AM CEST, Alistair Popple wrote:
> + /// Returns the total usable VRAM size in bytes, i.e. the summed lengths of all usable FB
> + /// regions.
> + pub(crate) fn vram_size(&self) -> u64 {
> + self.usable_fb_regions
> + .iter()
> + .fold(0, |size, region| size.saturating_add(region.end - region.start))
> + }
> }

Please make sure to run the rustfmt make target.