summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-17 09:21:07 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-17 09:21:07 -0500
commit4e56797c7eb445ef05a014feff54a5c86c436754 (patch)
treee550dfaa63eabddba67a2031cafbdc5f2e35cd9e /tools
parent007d1c9d51b607d9b3e1dd4b969e4e37f843d15d (diff)
downloadopen-iov-4e56797c7eb445ef05a014feff54a5c86c436754.tar.gz
open-iov-4e56797c7eb445ef05a014feff54a5c86c436754.zip
vgsp: fix compute channel MME golden body wedge + EGL surfaceless fallbackHEADmaster
- gsp_phys_booter: gate the MME prelude/golden pack and CALL resolution to the 0xbeef channel family. The compute channel (0xbfef0002) executed the synthetic mac=0xf1/pc=513 golden body, poisoned the MME (badf1201) and wedged the GR front-end so the guest's QMD never retired (D-state hang). - gz_es: a displayless vGPU creates the pbuffer but eglMakeCurrent fails EGL_BAD_ALLOC (0x3003); fall back to the surfaceless context (c1021 path).
Diffstat (limited to 'tools')
-rw-r--r--tools/guest-diag/gz_es.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/tools/guest-diag/gz_es.c b/tools/guest-diag/gz_es.c
index 5a56fee..9c8decd 100644
--- a/tools/guest-diag/gz_es.c
+++ b/tools/guest-diag/gz_es.c
@@ -245,8 +245,21 @@ static int create_context(void)
return -1;
}
} else if (!eglMakeCurrent(dpy, surf, surf, ctx)) {
- gzlog("[gzes] current(surf) 0x%x\n", eglGetError());
- return -1;
+ /*
+ * c1030 regression: a displayless vGPU can create the
+ * pbuffer surface but cannot bind it (EGL_BAD_ALLOC
+ * 0x3003). c1021 ran surfaceless; fall back to that
+ * path instead of failing the whole EGL bring-up.
+ */
+ gzlog("[gzes] current(surf) 0x%x -> surfaceless fallback\n",
+ eglGetError());
+ eglDestroySurface(dpy, surf);
+ surf = EGL_NO_SURFACE;
+ if (!eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE,
+ ctx)) {
+ gzlog("[gzes] current 0x%x\n", eglGetError());
+ return -1;
+ }
}
shm_open_frame();
gzlog("[gzes] OK api=%s renderer=%s version=%s surf=%d desktop=%d\n",