summaryrefslogtreecommitdiffstats
path: root/userspace/extern/src
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-05 12:47:47 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-05 12:47:47 -0400
commit79327c204237052d16b948c8fb42e0d4c992564e (patch)
tree8a7bc0b92d201a32eaf4db4461090df97232a5d4 /userspace/extern/src
parent549d1e8126f96b3515d37037ae22e0dce430c20b (diff)
downloadopen-iov-79327c204237052d16b948c8fb42e0d4c992564e.tar.gz
open-iov-79327c204237052d16b948c8fb42e0d4c992564e.zip
vgsp: fix per-type VRAM type lookup and canonical FB-size encoding
The 549d1e81 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 'userspace/extern/src')
0 files changed, 0 insertions, 0 deletions