From 4e56797c7eb445ef05a014feff54a5c86c436754 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Tue, 17 Nov 2026 09:21:07 -0500 Subject: vgsp: fix compute channel MME golden body wedge + EGL surfaceless fallback - 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). --- tools/guest-diag/gz_es.c | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'tools/guest-diag/gz_es.c') 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", -- cgit v1.2.3