summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_gpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/gsp_phys_gpu.h')
-rw-r--r--kernel/gsp_phys_gpu.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/kernel/gsp_phys_gpu.h b/kernel/gsp_phys_gpu.h
index c8beb1d..709b3a6 100644
--- a/kernel/gsp_phys_gpu.h
+++ b/kernel/gsp_phys_gpu.h
@@ -11,6 +11,7 @@ bool gsp_phys_gpu_claimed(void);
int gsp_phys_gpu_claim(void);
void gsp_phys_gpu_release(void);
void __iomem *gsp_phys_gpu_bar0(void);
+u32 gsp_phys_gpu_fw_crc32(void);
/*
* Read by the backend session to enforce the mdev-owned start gate; the
@@ -61,4 +62,30 @@ u32 gsp_phys_backend_generation(void);
*/
bool gsp_phys_mdev_owned_enabled(void);
+/*
+ * True when the gsp_phys_static_live module parameter is set (default 0:
+ * the guest GET_GSP_STATIC_INFO reply is the emulated model unchanged). When
+ * set, the handler overlays the live GPU name/short-name/VBIOS identity from
+ * the backend snapshot, failing open to the emulated reply on any miss.
+ */
+bool gsp_phys_static_live_enabled(void);
+
+/*
+ * True when the gsp_phys_ctrl_forward module parameter is set (default 0:
+ * guest GSP_RM_CONTROL replies are the emulated answers unchanged). When set,
+ * a whitelist of side-effect-free control queries is forwarded to the live
+ * backend with the snapshot's adopted internal handles, falling back to the
+ * emulated per-command handler on any miss.
+ */
+bool gsp_phys_ctrl_forward_enabled(void);
+
+/*
+ * True when the gsp_phys_work_forward module parameter is set (default 0: the
+ * guest's CE pushes stay software-emulated exactly as before). When set, the
+ * sema service shadows each decoded CE push as one copy on the debugfs ladder's
+ * real channel using only module-owned ladder buffers; the software release
+ * remains authoritative and is applied unchanged either way.
+ */
+bool gsp_phys_work_forward_enabled(void);
+
#endif /* GSP_PHYS_GPU_H */