diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-11 00:23:21 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-11 00:23:21 -0500 |
| commit | 131d44e083925f35f842114b6f7b6db546f28368 (patch) | |
| tree | b3cf3da4a55a920c8d04d289adf682d853598420 /kernel/gsp_rm_emulation.c | |
| parent | 25e3e800df8e5caf18d7e846a0cd36df4f5834f9 (diff) | |
| download | open-iov-131d44e083925f35f842114b6f7b6db546f28368.tar.gz open-iov-131d44e083925f35f842114b6f7b6db546f28368.zip | |
vgsp: all-ones scrub release for registered waits; walk-page registration; GL frame publisher (CONT.416-417)
- gsp_sema_service: merge a scanner registration arriving after the
stash record instead of dropping it (a dropped registration let the
next authoring pass write the blocking pair into the page the guest
was polling, so the wait never ended); author the finish word
all-ones for every registered record while the sema word stays
put-based once real submissions were observed (CONT.416/417).
- scrub_pin_qmp (host scanner): accept an unstable-but-live wait page
instead of skipping it, and register the walk-resolved scrubber
channel page - first the walk summary, then the per-VAS kernel row
(h=0xc) when the summary path fails - so the release is armed before
the guest polls (r1762/r1764 evidence).
- guest-diag: add gl_frames, the direct-GL (GLX pbuffer) frame
publisher; with it the stack produced the first non-black
GPU-rendered frames (40/40, 640x480, animated) through
pbuffer -> sysmem -> ivshmem -> host frame_reader.
- gsp_rm_emulation: log the display-shim request words for triage.
Diffstat (limited to 'kernel/gsp_rm_emulation.c')
| -rw-r--r-- | kernel/gsp_rm_emulation.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/kernel/gsp_rm_emulation.c b/kernel/gsp_rm_emulation.c index ca14744..4ea6839 100644 --- a/kernel/gsp_rm_emulation.c +++ b/kernel/gsp_rm_emulation.c @@ -2260,8 +2260,17 @@ static void gsp_rm_handle_display_heads(struct gsp_emu_context *ctx, u32 cmd, u32 one = 1; u32 sz = req_size ? req_size : 72; u32 v; + u32 req_w0 = 0, req_w1 = 0, req_w2 = 0; memset(out_params, 0, sz); + if (req_params) { + if (req_size >= 4) + memcpy(&req_w0, req_params, 4); + if (req_size >= 8) + memcpy(&req_w1, req_params + 4, 4); + if (req_size >= 12) + memcpy(&req_w2, req_params + 8, 4); + } switch (cmd) { case 0x730102: /* SYSTEM_GET_NUM_HEADS: {subDev, flags, numHeads} */ if (sz >= 12) @@ -2371,8 +2380,8 @@ static void gsp_rm_handle_display_heads(struct gsp_emu_context *ctx, u32 cmd, *out_params_size = sz; *out_status = 0; nv_vgpu_info(ctx->vgpu, - "vgsp-rm: DISPLAY shim cmd=0x%x -> 1 head / 1 HDMI connector (size %u)", - cmd, sz); + "vgsp-rm: DISPLAY shim cmd=0x%x -> 1 head / 1 HDMI connector (size %u req=%#x/%#x/%#x)", + cmd, sz, req_w0, req_w1, req_w2); } /* |
