diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 00:06:42 -0400 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-09-30 00:06:42 -0400 |
| commit | 2c001647e47455544739fc8f4e841c6b93cbe32f (patch) | |
| tree | 4121924eb52aa18d8b0a614320e830edb4e45951 /kernel/gsp_rm_emulation.c | |
| parent | 6d380a3c3f5cc3cac1fb3bea913b18bbfb1f3a13 (diff) | |
| download | open-iov-2c001647e47455544739fc8f4e841c6b93cbe32f.tar.gz open-iov-2c001647e47455544739fc8f4e841c6b93cbe32f.zip | |
gsprm: reply-latency logging + param dump cap; guest-diag: CDT_PAUSE, watcher reaping, wider CE stream window
Diffstat (limited to 'kernel/gsp_rm_emulation.c')
| -rw-r--r-- | kernel/gsp_rm_emulation.c | 12 |
1 files changed, 11 insertions, 1 deletions
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", |
