summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_emulation.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_emulation.c')
-rw-r--r--kernel/gsp_emulation.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/kernel/gsp_emulation.c b/kernel/gsp_emulation.c
index 5b75ec6..b1c67a4 100644
--- a/kernel/gsp_emulation.c
+++ b/kernel/gsp_emulation.c
@@ -742,14 +742,15 @@ int gsp_emu_init(struct nv_vgpu_device *vgpu)
/* Physical GSP boot emulation state. wpr2_addr_lo matches what the
* guest driver expects WPR2_ADDR_LO to read after FWSEC FRTS:
- * frtsOffset = fbSize - reservedFromEnd. With fbSize = 256MB
- * (LOCAL_MEMORY_RANGE) and the 570.144 image's 2MB reservation,
- * frtsOffset = 0x10000000 - 0x200000 = 0xfe00000; the register's
- * _VAL field (bits31:4) must equal frtsOffset >> 12 = 0xfe00, so the
- * raw register value is 0xfe000. */
+ * frtsOffset = fbSize - reservedFromEnd. With fbSize = 512MB
+ * (LOCAL_MEMORY_RANGE / GSCI fb_length) and the 570.144 image's 2MB
+ * reservation, frtsOffset = 0x20000000 - 0x200000 = 0x1fe00000; the
+ * register's _VAL field (bits31:4) must equal frtsOffset >> 12 =
+ * 0x1fe00, so the raw register value is 0x1fe000. Kept in lockstep
+ * 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 = 0x000fe000;
+ ctx->wpr2_addr_lo = 0x001fe000;
/* 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