diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-05 12:47:47 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-10-05 12:47:47 -0400 |
| commit | 0f227d063e281c4b8ec21e61132ae1ddf0920053 (patch) | |
| tree | aba72956d7ab9d6cb69212696f56091af77281ab /scripts/stack_manager.sh | |
| parent | 708a3802824358c1770d5ad0b3c2e24fae114eb8 (diff) | |
| download | open-iov-0f227d063e281c4b8ec21e61132ae1ddf0920053.tar.gz open-iov-0f227d063e281c4b8ec21e61132ae1ddf0920053.zip | |
vgsp: fix per-type VRAM type lookup and canonical FB-size encoding
The 708a3802 per-type VRAM change stripped an nvidia- prefix from
mdev->type->sysfs_name, but sysfs_name is the registered type name
verbatim; the mdev core only prefixes the type DIRECTORY with the parent
driver string. Every lookup failed, so all mdevs silently fell back to
512 MiB, nvidia-vgpu-turing-1g was unreachable and available_instances
capped at 1. Match sysfs_name directly in get_available,
show_description and mdev_create.
Also canonicalise the NV_PFB_PRI_MMU_LOCAL_MEMORY_RANGE encoder
(BAR0+0x100ce0) by stripping factors of two from MAG so 512 MiB encodes
0x19 again (1 GiB 0x1a, 2 GiB 0x1b) instead of the non-canonical 0x204.
Default-512M behaviour is now byte-equivalent to the known-good pre-VRAM
module except max_instances=2. Module sha256 cb1724d3.
Diffstat (limited to 'scripts/stack_manager.sh')
0 files changed, 0 insertions, 0 deletions
