diff options
Diffstat (limited to 'kernel/gsp_emulation.c')
| -rw-r--r-- | kernel/gsp_emulation.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/kernel/gsp_emulation.c b/kernel/gsp_emulation.c index 7b3b261..c8f8041 100644 --- a/kernel/gsp_emulation.c +++ b/kernel/gsp_emulation.c @@ -190,6 +190,22 @@ static void gsp_emu_poll_boot(struct gsp_emu_context *ctx) mmu_inv); } + /* CrashCat wayfinder suppression: if the GSP falcon's DEBUGINFO + * register holds a valid wayfinder-L0 signature (0xdead), the driver's + * kgspHealthCheck (run on every RPC drain) reads "reports" from + * garbage and loops forever in nv_open_q, which then can't poll RPCs + * (fn-10 FREE timeouts). Force it invalid - our emulated GSP has no + * crashcat reports to offer. */ + { + u32 wfl0 = gsp_emu_shadow_read32(ctx, GSP_EMU_REG_FALCON_DEBUGINFO); + + if ((wfl0 & 0xffff) == 0xdead) { + gsp_emu_shadow_write32(ctx, GSP_EMU_REG_FALCON_DEBUGINFO, 0); + nv_vgpu_info(ctx->vgpu, "GSP-BOOT: cleared CrashCat wayfinder (was 0x%x)", + wfl0); + } + } + /* GSP ENGINE reset asserted -> falcon rebooted, restart stage tracking */ if ((engine & 0x1) && ctx->boot_stage != GSP_BOOT_STAGE_IDLE) { nv_vgpu_info(ctx->vgpu, "GSP-BOOT: falcon reset, back to IDLE"); |
