diff options
Diffstat (limited to 'kernel/gsp_emulation.c')
| -rw-r--r-- | kernel/gsp_emulation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/gsp_emulation.c b/kernel/gsp_emulation.c index b1c67a4..47c8151 100644 --- a/kernel/gsp_emulation.c +++ b/kernel/gsp_emulation.c @@ -750,7 +750,7 @@ int gsp_emu_init(struct nv_vgpu_device *vgpu) * with GSCI fb_length/frtsOffset and NV_PFB_PRI_MMU_LOCAL_MEMORY_RANGE. */ ctx->boot_stage = 0; /* GSP_BOOT_STAGE_IDLE */ ctx->flcn_kick_count = 0; - ctx->wpr2_addr_lo = 0x001fe000; + ctx->wpr2_addr_lo = (u32)(((nv_vgpu_fb_emul_size(vgpu) - 0x200000) >> 12) << 4); /* The guest's BAR0 is the emulation shadow (vzalloc'd by * nv_vgpu_bar_emul_init, mapped to the guest via VFIO mmap) - NOT the |
