MGKFN's i5-1235U Iris Xe hung with the GPU at 400 MHz of the 1200 RPS
asked for, which only the reset's line said. The render engine's
heartbeat now reads the actual and requested frequency, the RPS range and
the package's limit reasons (PROCHOT, thermal, RATL, VR thermal alert,
VR TDC, PL4, PL1, PL2 and the sticky log above them) and says them in one
line: at most every 30 s while it beats, and at each beat that finds a
heartbeat request stuck. Engines other than render say nothing.
dev64's test 4 boot lost its device at 1362.8 s: the GuC reset rcs0 for a
request queued 10543 ms before, at 1500 MHz, so a request that ran and
did not yield rather than a slow clock. The dump named command buffer
29382 and its 68 pipelines but could not say which pass hung, and with
30 marks WindowServer's Liquid Glass frames already spent their longest
spans after the 30th pass.
Each command buffer's timestamps (its start, the end of each pass and
dispatch group up to the mark limit, its end) are now read at the loss
without waiting: the first span whose start the GPU wrote and whose end
it did not is the work it was in. ANV answered every query read of a lost
device with VK_ERROR_DEVICE_LOST; Mesa patch 0045 lets a read that does
not wait return what the GPU wrote, from the pool's memory, which stays
mapped. A driver that answers nothing is named so. The line also counts
the span's indirect draws and dispatches, whose counts the GPU reads.
From PR #23, without its i915_vma_pin retry loop: its i915_gem_shrink
asked for a target of 0 pages, so it reclaimed nothing, and execbuf pins
through i915_vma_pin_ww, which the loop never reached.
ANV's execbuf can fail with ENOMEM without making any of the
submission's signals. The Metal device took every failed submission as a
loss. submit_and_settle now loses the device only for DeviceLost; another
failure fails just its command buffer: with no earlier segment submitted
its event signals are reached at once, and otherwise the flight stays
pinned until the submitted part completes, when Stela makes the signals
ANV never made, so nothing the GPU still reads is freed early.
Mesa patch 0044 lowers the execbuf ioctl wrapper's retries from 80
(about 16.7 s of sleeps) to 20 (about 0.3 s), and ANV answers a
persistent ENOMEM with VK_ERROR_OUT_OF_DEVICE_MEMORY after three tries
instead of marking its queue lost.
From PR #23, without its single-sample framebuffer check and its 4 MiB
heap headroom test.
nouveau_fence_wait_busy() never blocks, and on Stela's Linux layer
jiffies move only when a task resumes or a service pass runs, so its
jiffies timeout and patch 0218's "once a tick" nvkm_device_gone() look
never fired inside one step. At a stop after an RTX 3050 Mobile left
the bus, nouveau_drm_shutdown() idled each channel through this wait
and the step watchdog ended it after 30 s, losing the end of the boot
log. The wait now also ends once what was left of the fence's timeout
has passed by ktime_get(), and looks at the device at once and then
each NOUVEAU_FENCE_GONE_MS of that clock, as r535_gsp_gone() does.
dev64-2, a second test build for the Raptor Lake P tester (8086:a7a0).
dev64-1's GuC started, then each of ANV's first EXECBUFFER2 calls failed
with -ENOMEM, 80 times over Mesa's 16.7 s retry budget (100 us times the
retry squared), and ANV reported VK_ERROR_DEVICE_LOST: no hang check, no
completed request. eb_move_to_gpu's _i915_vma_move_to_active reaches
i915_active_add_request, whose active_instance takes a new node with
GFP_ATOMIC under the tree's IRQs-off lock. Stela's slab serves a
nonblocking request only from a slot it holds ready and never grows a
cache for one, and the only blocking allocation from i915's active_node
cache, a barrier's preallocation, is skipped under GuC submission
(intel_context_active_acquire), so the cache never had a slot. Ashu's
a7ab failed the same way. Execlists would only have grown the few slots
its barriers take, short of an execbuf naming many buffers. Patch 0237
takes the node with GFP_KERNEL before the lock where the caller may
sleep, and says where an execbuf fails, its first passes and the first
user requests that complete. Stela's slab now says, once a cache, a
nonblocking allocation it finds no slot for and a growth with no backing.
The record dev64-1's boot 22 wrote was read by the loader in boot 23, but
the engine runs a copy of the image taken before any static was set, so
its log_file::earlier_guc was empty and the GuC started again. The record
now goes to the engine in the handoff, as serial_present does, and the
loader says the record it read. A test reads the record from boot 22's
own bytes.
On Alder Lake P (Raptor Lake P and U, Alder Lake N), --i915-guc auto, the
default, now starts i915 with enable_guc=0 ("INTEL GUC off (dev64-2)"),
so one boot tests execlists; --i915-guc on asks for the GuC and still
falls back the boot after a failure. Records of dev64-1 are passed over.
The stop's reason never showed: after i915 took the eDP panel the console
drew its front buffer with the CPU and sent no DIRTYFB, which panel self
refresh and framebuffer compression need to show a write. i915 and xe
now start with enable_psr, enable_panel_replay and enable_fbc 0.
--i915-guc is a hand-written override setup never writes, so the options
revision stays 13; the bundle revision stays 39 and the translator id is
unchanged.
A test build for one Raptor Lake P tester (Iris Xe 8086:a7a0). Its 0.6.1
boot logged "LINUX unsupported: cache allocation policy or context", then
"GT0: GuC initialization failed -11": new_guc_id's ida_alloc_range with
GFP_KERNEL under submission_state's IRQs-off spinlock needed a new IDA
bitmap and xarray node, the slab refused a blocking request there, and
steal_guc_id's -EAGAIN failed guc_init_submission on each of pin_guc_id's
four tries. Patch 0236 reserves the guc_id before the lock, where
pin_guc_id may sleep.
Any other GuC failure falls back by itself. i915 cannot be unbound and
probed again in the same boot (its unload is never run, and a failed
probe's IRQ line is retired), so the boot writes one record line,
"INTEL GUC RECORD failed device=XXXX cause=... build=dev64-1", the moment
i915 prints a GuC error (its start, a wedged GT, a CT error) or, at the
stop for want of a Metal device, as the Metal device's; and that stop
says "Intel graphics needs a second start; restart the PC". The next
boot reads the record back from the log as the Wi-Fi page's record is
read, and for the same device on Alder Lake P (Raptor Lake P and U,
Alder Lake N), Raptor Lake S or DG1 adds i915.enable_guc=0 (execlists,
host RPS and RC6), writing a kept-off record so the boots after it stay
without the GuC. A record of another device or build is passed over.
Each boot with such a GPU prints one INTEL GUC on, off or fallback line.
--i915-guc auto|off, auto unless given, is a hand-written override that
setup never writes, so the options revision stays 13; the bundle
revision stays 39 and no fingerprinted engine file changes.
Both sides kept where both added: --hybrid-scanout beside --asus-mode,
--gpu-aspm, --tlbi-keep, --host-core, --tier2 and --pack-preload in the
options, their errors, parsing, tests and mount_interface's notes;
amd_discovery beside acpi_hardware; the stop's firmware picture beside
tier 2's line; set_hybrid_scanout beside gpu::link::choose; the
integrated GPU's memory plan beside the pack preload's bounds.
The translation store passes the GPU plan to pack_budget and the
background preload to translations::read. The firmware counts keep the
GPU branch's per-port sums, its base now 93 files, 188,594,997 bytes,
with build1c's rtw88 RTL8821C firmware (BUILT_BUNDLE 469/442/120/93).
build1c's preload tests give pack_budget and sizes_with_room the
GpuMemory::Own the GPU branch's signatures take.
Each perf round reads NV_THERM_I2CS_SENSOR_00 as gp100_temp_get() does;
nvkm_perf gains the register as last read, the temperature and the
beat's highest. "GPU THERMAL temp=52C max=55C power=unread" follows the
GPU PERF line every beat with a reading; a sensor that gives none (a
GSP-RM priv error or all ones) is said once with its register. Whether
GSP-RM leaves the sensor readable to the CPU is untested. Power is not
read: GSP-RM 570.144's headers hold no power monitor control.
On the tester's boot 3 the GPU was gone at 531.7 s; from 609.8 s, after
NVK's device loss, a job ran tu102_vmm_flush() over and over, each a
stalled PTIMER, a "timeout" and a WARN at vmmtu102.c:51, until the step
watchdog stopped it at 640.6 s. Its rip, image+0x1f2653e, sits on an
lfence before a return (code 0faee85dc3), as after an MMIO read; the
0.5.0 image's symbols are not at hand to name the function. Patch 0222 makes the
nvkm_rd*()/nvkm_wr*() accessors give all ones and drop writes once
nvkm_device_gone() holds, ends nvkm_nsec() waits with -ENODEV before
their condition runs, ends a wait whose PTIMER reads all ones at once
(feeding nvkm_device_gone()), and warns for neither, so the boot
reaches the GPU-lost stop.
Eight files conflicted; every resolution keeps both sides.
- gpu_status.rs (9 hunks), host_memory.rs, engine/gpu/before.rs,
stela-driver-gpu lib.rs: gpu/intel's GPU-generic screen text (the GPU by
its name, the drivers this build has, shown_by_copy(gpu)) in the fork's
brand: Stambha and `stambha repair` where gpu/intel's words said Stela.
- storage.rs: gpu/intel's memory-plan census (plan_gpu_memory, gpu_census,
gpu_plan) and the fork's census_pci, drawn_by_other and Install caution.
drawn_by_other goes through H1's GpuStack::drawing (select, then draws),
built on gpu/intel's admits, and answers the adapter with its revision
too, for the HOST GPU line's market name.
- xe.rs: gpu/intel's admission (a GuC image and ANV opening the device);
host_firmware.rs: gpu/intel's MAX_IMAGES 512 beside the 1 MiB manifest
both sides have; bundle/tests.rs: gpu/intel's amdgpu, xe and i915
selection tests (the fork's Raphael-only family test is for recipes this
branch replaced).
Merged clean, fixed after the build: the fork's lost-device dump
(059d63ddf) read a render pipeline's bicubic variants as 3-tuples;
gpu/intel's f8b623bd7 gave them a topology class, so they are 4-tuples.
gpu/intel's other screen lines that said Stela (amd_metal's refusals,
selection's backend line) and gpu_step's and host_memory's expected text
now say Stambha.
The memory plan is as before (only its refusal's name changed). Interface
unchanged: bundle schema 4, OPTIONS_REVISION 13. Mesa patch 0043 (each
shader's program header and code) comes with fork/next.
Mesa patch 0043: each executable lists "NAK program header" (the 128-byte
SPH from Turing on; none for compute), "NAK geometry program header" for a
mesh shader that has one, and "NAK binary", whether or not the pipeline
asked to capture its representations. Its statistics add "Program header
address" and "Uploaded by queue" (1 when the shader heap has no CPU
mapping, as on a laptop without Resizable BAR).
It changes libstela-nvk.a and so the pipeline store's compiler key: the
first boot of a build with it compiles its pipelines again.
upstream/gpu/intel @164d332ee holds all of gpu/amd @eca683096: 181 commits
by Tyler Smith past main. Eleven files conflicted; five are upstream's own
(main against gpu/intel), six are the fork's.
Memory plan (upstream):
- host_memory.rs: sizes() takes gpu/intel's GpuPlan and plans through
plan(); main's code budget is applied to every estimate inside plan
(budgeted()), so the GPU's share, the apertures' tables and the fallback's
room are planned against the heap the boot runs with. Applying it after
plan() would shrink the heap under a fallback reserve sized for the
larger one. sizes_with_room() takes the GpuPlan; pack_budget()'s fallback
lack reads the budgeted heap too. The fork's with_window() is unchanged.
With GpuMemory::Own and no fallback the plan is main's exactly.
- host_memory/tests.rs (33 hunks): the base suite keeps main's pre-budget
staged() split over GpuMemory::Own; main's code-budget, small-host,
--code-window and pack-room tests and all of gpu/intel's GPU-plan tests
are kept. Five gpu/intel tables were measured before the budget and are
recomputed: heap and code move by the same bytes, the pool, guest and
GPU share do not; the fallback room grows on small hosts and every host
keeps its 768M bound; NVIDIA's 16 GiB numbers are main's own
(small_hosts_move_their_kept_code_into_the_window).
- system/memory.rs: one HOST MEMORY line with both sides' fields (window,
kept, gpu, aperture, pages, fallback); the page bound is taken after
--code-window; EngineMemory keeps kept_code and the GPU fields.
- system.rs: both destructured field sets and the handoff's union.
- engine/gpu/gate.rs: main's unmapping of a failed service's stack with
gpu/intel's Result and its refusal of a stack that did not run; the
services' GPU names (main) follow the spliced served list, so a
fallback's services keep their names.
- xtask/src/gpu/radv/metal.rs (merged clean, built broken): gpu/intel's
RADV host harness builds the Metal compiler Service without main's
compose_kernel (0ae834ade); it now resolves stela_metal_compose_kernel
from the hosted library as the linked path does.
The fork's (union, nothing dropped):
- handoff.rs: low_dma and wifi_saved beside gpu_share, gpu_pages,
gpu_pages_held and gpu_census.
- stela-cli/Cargo.toml: intel-port beside the trackpad's workspace-check.
- bundle.rs: gpu/intel's cfg-gated slice with the fork's Realtek
Bluetooth family.
- bundle/tests.rs, setup/firmware.rs, setup/tests.rs: BASE is the fork's
92 files and 188,455,525 bytes (upstream's 88 and the Realtek files), so
BUILT_BUNDLE is (468, 245.8) with both ports, (441, 240.3) AMD only,
(119, 185.2) Intel only and (92, 179.7) without.
Interface unchanged: bundle schema 4, OPTIONS_REVISION 13, NOR 0x800000,
SEP 0x10000, boot bundle REVISION 39 on both sides.