From 2c001647e47455544739fc8f4e841c6b93cbe32f Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 00:06:42 -0400 Subject: gsprm: reply-latency logging + param dump cap; guest-diag: CDT_PAUSE, watcher reaping, wider CE stream window --- kernel/gsp_rm_emulation.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'kernel/gsp_rm_emulation.c') diff --git a/kernel/gsp_rm_emulation.c b/kernel/gsp_rm_emulation.c index d1d87e9..777c63c 100644 --- a/kernel/gsp_rm_emulation.c +++ b/kernel/gsp_rm_emulation.c @@ -2545,6 +2545,7 @@ static void gsp_rm_handle_rm_control(struct gsp_emu_context *ctx, u8 *reply; u32 out_status = 0; u32 out_params_size = 0; + u64 t0 = ktime_get_ns(); memcpy(&req, req_data, GSP_RM_CTRL_HDR_SIZE); @@ -2730,7 +2731,7 @@ static void gsp_rm_handle_rm_control(struct gsp_emu_context *ctx, /* Dump small request params so mapping/alloc controls that * carry PAs can be identified (rate-limited). */ if (req.paramsSize && req.paramsSize <= 96 && - rm->ctrl_param_dumps < 60) { + rm->ctrl_param_dumps < 400) { rm->ctrl_param_dumps++; nv_vgpu_info(ctx->vgpu, "GSPRM: ctrl 0x%x params[0..%u]=%*phN", @@ -2765,6 +2766,15 @@ static void gsp_rm_handle_rm_control(struct gsp_emu_context *ctx, memcpy(reply + 16, &out_params_size, 4); memcpy(reply + 20, &req.flags, 4); + { + u64 dt_us = div_u64(ktime_get_ns() - t0, 1000); + + nv_vgpu_info(ctx->vgpu, + "GSPRM: RM_CONTROL reply cmd=0x%x hClient=0x%x hObject=0x%x in=%u out=%u status=0x%x us=%llu", + req.cmd, req.hClient, req.hObject, req.paramsSize, + out_params_size, out_status, dt_us); + } + if (gsp_rm_send(ctx, GSPRM_RPC_FUNC_GSP_RM_CONTROL, sequence, 0, reply, GSP_RM_CTRL_HDR_SIZE + out_params_size)) nv_vgpu_err(ctx->vgpu, "GSPRM: RM_CONTROL reply send failed cmd=0x%x", -- cgit v1.2.3