From 708a3802824358c1770d5ad0b3c2e24fae114eb8 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 5 Oct 2026 12:25:05 -0400 Subject: vgsp: per-mdev emulated VRAM size (1.0 multiple mediate sizes) - nv_vgpu_type_info/ioctl gain vram_mb; nv_vgpu_device gains fb_emul_size bound from the mdev type at create (default 512 MiB). - New nvidia-vgpu-turing-1g type (1024 MiB); turing max_instances 1 -> 2; show_description reports the per-type framebuffer and max_instance. - Thread fb_emul_size through GSCI fb_length/region/frtsOffset, WPR2, NV_PFB_PRI_MMU_LOCAL_MEMORY_RANGE, the vidmem allocator bound and the BAR1 shadow; bar_info callback uses the per-device size. - UNTESTED at commit time: builds clean; validation blocked by the Xid 140 incident (reboot pending). See Handoff-vGPU-IO.md ADDENDUM 48. --- kernel/gsp_rpc_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/gsp_rpc_client.c') diff --git a/kernel/gsp_rpc_client.c b/kernel/gsp_rpc_client.c index 28659ff..be197cc 100644 --- a/kernel/gsp_rpc_client.c +++ b/kernel/gsp_rpc_client.c @@ -592,7 +592,7 @@ int gsp_rpc_alloc_emul(struct gsp_client *client, u64 va = addr_hint ? addr_hint : 0x100000000ULL; /* Default 4GB */ dma_addr_t iova; static u64 next_vidmem_va = 0x100000; /* Start after 1MB (skip WPR2/reserved) */ - u64 fb_size = NV_VGPU_EMUL_FB_SIZE; + u64 fb_size = nv_vgpu_fb_emul_size(vgpu); /* For vidmem allocations (golden image, channels, etc.), allocate from * the emulated GPU's vidmem address range (0 - fb_size). The memmgr -- cgit v1.2.3