summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_emulation.h
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-12 14:55:25 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-12 14:55:25 -0500
commit10c043a669fed5340eb953a17e341a35a4bce1b5 (patch)
treeb4fc5a197bd4ce7518ffe5356d420a0e9809caab /kernel/gsp_emulation.h
parent6260daa1eb66094e86a1d02128b97708242074e8 (diff)
downloadopen-iov-10c043a669fed5340eb953a17e341a35a4bce1b5.tar.gz
open-iov-10c043a669fed5340eb953a17e341a35a4bce1b5.zip
vgsp: direct-GL ring/push rescue, VAS/pdb scanners and PTIMER tick; r1780 cycle tooling
Diffstat (limited to 'kernel/gsp_emulation.h')
-rw-r--r--kernel/gsp_emulation.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/gsp_emulation.h b/kernel/gsp_emulation.h
index d9a7f01..16f4db4 100644
--- a/kernel/gsp_emulation.h
+++ b/kernel/gsp_emulation.h
@@ -192,6 +192,14 @@ struct gsp_emu_context {
u32 bar0_window_base; /* last-seen NV_PBUS_BAR0_WINDOW BASE (page) */
u32 bar0_window_target; /* last-seen TARGET (0=vidmem, 2/3=sysmem) */
bool bar0_window_valid; /* base/target captured at least once */
+
+ /* Emulated PTIMER (BAR0 0x9400/0x9410): the guest RM's time source.
+ * Seeded from the shadow's current 64-bit value on the first tick so
+ * the guest-observed time stays continuous, then advanced by the host
+ * monotonic clock. Without this the RM's timed waits never expire. */
+ u64 ptimer_base;
+ u64 ptimer_t0;
+ bool ptimer_seeded;
};
/* Shadow accessors shared with gsp_rm_emulation.c */