nouveau's "Xid:13 Graphics Exception: Shader Program Header N Error"
(upstream #262, an RTX 4060 Laptop on Meteor Lake MS-Hybrid) names the
exception and its ESR words but not the shader, and the loss's refusal
named only the entry points in flight.
The service's description of a loss now ends with a fault dump, logged as
GPU FAULT lines apart from the refusals logged once per text:
- an opening line: the command buffers the GPU was given and had not
finished, and the pipelines they bound, render pipelines first;
- a line for each stage of each pipeline (at most 8 pipelines, 4 Vulkan
variants each): its functions, the code's size and SHA-256, NVK's
instruction, GPR and SLM counts, the header's GPU address, whether the
upload queue or a CPU mapping wrote the shader, and the 32 SPH words;
- for the boot's first fault only, each stage's code in hex, 64 bytes a
line, within 32 KiB;
- after the opening, the kernel's first 12 Xid, rc and disabled-channel
lines of the boot (ESR, chid, exception type) and a count of all of them.
It is always on and bounded, as the loss's other reports are: nothing asks
the driver until the device is lost, and only the boot's first 3 losses
are dumped. NVK reports the header and code through
VK_KHR_pipeline_executable_properties with Mesa patch 0043, which also
changes the pipeline store's compiler key, so the first boot recompiles.