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.
When freeing recycled textures and free upload chunks is not enough, the
Metal device waits on its timeline for the newest command buffer the GPU
was given whole (held work is never waited for), retires what finished,
frees again and retries. The share's and a test build's caps still refuse
what they would not hold. A saved allocation leaves an
"OUT OF MEMORY AVERTED n" note at the first and each power of two.
A 16 GB Renoir laptop (14842 MiB free) now gets a 3710 MiB share and tells
Metal 2398 MiB; a nominal 16 GiB host 3968 / 2592. The share comes out of
the heap's growth past its floor while the guest keeps its 6 GiB room;
12 GB hosts grow by 150-400 MiB and 8 GB hosts, whose share is what the
guest's floor leaves, are unchanged, as is the 7 GB minimum.
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.
With no hardware video decoder, VideoToolbox decodes on the CPU into a
CVPixelBufferPool, which reuses only a surface that is not in use
(IOSurfaceIsInUse). The guest driver never marked a surface in use, so
the pool handed a frame back to the decoder as soon as WindowServer
committed the command buffer that sampled it; the service then copied the
4K 10-bit frame into device memory while the decoder rewrote it: zero
luma and chroma below the decoder's wavefront, green in YCbCr, for a frame
(rnz, RTX 5070 Laptop; reproducible on the ASUS TUF A16).
The commit now increments the use count of every IOSurface the command
buffer names, once a surface, and its completion or refusal decrements
them before anyone learns it completed.
Each distinct two-plane IOSurface texture is named once in the log
(GPU TWO-PLANE TEXTURE): format, size, usage, the surface's pixel format,
each plane's offset, row, extent and format, and whether the GPU samples a
device copy or the rows in place. Tests cover the note and the device copy
of a 3840x2160 10-bit 4:2:0 frame's two planes.
amdgpu_device_get_pcie_info takes both module parameters before it reads
any link, for every generation, so the SMU's forced link levels come from
Stambha's own read of the link amdgpu would read on Linux
(amdgpu::link::slot: its link_dev past the card's 1478/1479 switch and
its link_partner). gen 4 x16 gives 0xf000f and 0x3f003f, and the SMU
argument 0x0306 native Linux sends. Nothing is given for an integrated
GPU, another vendor's, one whose link does not read, or on an AMD host,
whose PCIe DPM keeps the SMU's own levels. Two AMD GPUs' masks keep the
bits both set (command_line::add). One line names the link and masks.
The guest network records each join's outcome and a wired link coming up
as "WIFI RECORD" lines that name a network only as configured (--wifi) or
saved-N, its place in wifi.saved. Before the menu, the next boot reads the
earlier boot from the bytes log_file already reads back for the
device-start record, and wifi_prompt::decide opens the page:
- with no network set up: "Connect to Wi-Fi so macOS has internet. Esc:
start without Wi-Fi.";
- after a failed join: that network selected, its dialog on the password,
and "Couldn't join <name>: the password may be wrong..." or "<name> isn't
in range..."; the name is shown, never logged.
Esc skips Wi-Fi for this boot; a network saved there starts the boot.
It stays closed, and the boot goes on as before, after a restart macOS
asked for (the installer's and an update's restarts, any boot an install
chains into), after a stop or a boot that never ended, after a boot whose
wired network was up or that joined Wi-Fi, on a menu that holds for setup
or opens no menu, when the log could not be read, and on a PC whose chip
the driver does not start. A console with no input leaves it at once. A
join, or a network saved or forgotten at the menu, clears the failure.
With no --wifi, the boot now joins the saved networks, the newest first,
and the loader reads wifi.saved without --wifi, so a network saved on the
page is joined; choosing one moves it last in the file. The --wifi
network's password typed again goes to its key file. No option, the
options revision (13), the bundle revision (39) or the translator id
changes.
The keeper notes a join as Joined when its port opens (an open network's
association or the 4-way handshake), WrongPassword when the handshake fails
or times out (wpa_supplicant's WRONG_KEY), and NotInRange when a scan finds
neither the preferred network nor any saved one. Each change is given once;
the network's name stays in memory for the boot to place, never in a log
line. The probe's adapters forward it for the Intel, MediaTek, Realtek and
rtw89 stations; a wired link gives none.
The tester's 0.6.0 boot (Ryzen 7800X3D, B650, 10ec:8168 rev 15) got
its frames in runs of exactly 256 (to_guest 172, 428, 684, ... 2476),
where a working adapter's count grows unevenly. The driver waited on a
slot the chip had skipped while the chip wrote the other 255, so each
frame was released a full ring late, past macOS's DHCP and ARP timeouts.
Ring::follow_the_chip moves the driver's slot to the chip's first
completed slot past it at the second empty look that sees the same
pair; the skipped slots stay offered. Linux's layout, RxMaxSize 16384
and RX_MULTI_EN from 0.6.0 are kept. The diagnostic line gains
resyncs= and skipped=.
test_upstream gains a Navi card whose root port reads 0, which now gives
the card's upstream port's gen 3 x8, and a GPU whose every link reads 0,
which gives no bandwidth with speed and width unknown rather than x0.
On a PC whose census finds a Wi-Fi chip no driver here starts, the menu
showed no Wi-Fi line and W did nothing. Its bottom line now says
"Wi-Fi: this chip isn't supported yet (press W)", and W opens a page naming
the chip by vendor and PCI ID, saying to use Ethernet, a USB tether or a
supported card, and to post the log in hardware-reports to ask for it. With
no Wi-Fi chip at all, W opens a page saying so and the bottom line stays
clear. Every line of the page is at most 40 characters, inside the column.
W also opened the Wi-Fi page only with a --wifi entry or a wifi.saved file,
so on a USB with neither, the "press W to choose a network" line of
a95ddeb98 pointed at a key that did nothing. W now opens it whenever the
page is offered; a network saved there joins as before.
amd_graphics_version returned at once when the description held no
memory range, so the by-address read added for firmware that does not
describe the BAR never ran. The decision is now
amd_discovery::described_registers, whose error falls through to that
read. Where the read still fails, gpu_kind looks at the bridges the
firmware lists: an APU sits straight below a host bridge or root port,
never below Navi's own switch.
The retired line's owners stay with it and nothing of the new request is
published, as for the other refusals before a route in irq_enable. The
software IRQ peer of the workqueue fixture now keeps a freed line retired
on request, and the fixture checks that the next driver's request_irq on
it returns -EOPNOTSUPP with nothing enabled. MSI still has no fresh line
past a retired one, as MSI-X has, so xe cannot yet take over the interrupt
after i915 fails; that is left for later.
shmem_folio forwards RETRY_MAYFAIL to the radix node it grows (file.c),
and i915's shmem_sg_alloc_table retries with it once its non-blocking
first attempt finds the node cache full. The cache test now grows a slab
with the flag (one page attempt, refused or not, and no refusal counted)
instead of listing it as unsupported, and the trees test stores past the
root with every free node held: -ENOMEM where pages are refused, a grown
node where they are not.
The workspace and stela-boot versions go from 0.6.0 to 0.6.1, with the same
workspace members in both Cargo.lock files as the 0.6.0 bump. The boot
bundle revision (39), the options revision (13) and the translator id stay
as they are.
The confirm page's Left button and key hint said "Check only", and the
PASS screen began "nothing was written. Turn the PC off". The button and
hint are now "Install check (dry run)" with "A dry run, changes nothing: it
reads the disk and installs nothing" under them, and both PASS and FAIL
screens and statuses say nothing was installed because this was only a
check; FAIL also says where the log is.
The stop screens and the restart screen named only `stambha log`, and the
help gave no place at all. Each now also names the file on the stick, whose
path stays \EFI\stela\boot.log.
The version macOS users saw as "Stela 0.6.0" is the app's About This PC
caption, "Stela \(stelaVersion)", over the StelaVersion key stela.efi
publishes. The caption, the copied summary line, the Updates row and the
no-description card now say Stambha; the bundle identifier, the StelaHost
keys and the on-disk paths are unchanged. The app is prebuilt on a Mac
(guest/stela-app/build.sh), so this reaches users with its next build.
With a Wi-Fi chip the driver starts and no --wifi or saved network, the
startup menu's bottom line was empty, so nothing said that Wi-Fi needs a
network chosen with W. wifi_page::status_line now always gives the line
(CHOOSE for that case), and the menu logs hint_line's "CHOICE Wi-Fi: no
network is set up; press W in this menu to choose one, or Wi-Fi stays off".
The HOST and GUEST NETWORK lines for an adapter left off say the same in
place of "no --wifi network".
The claim's reset choice is now a plan of who takes the GPU from the
firmware (cold::Takeover), by stack and device: the claim (nouveau, and
Intel's discrete GPUs), the driver where the function has no
function-local reset (amdgpu, as before), or the driver alone (an
integrated GPU in i915's or xe's table). i915 resets its engines at probe
(sanitize_gpu) before pci_set_master; xe resets its GuC and GT. NVIDIA and
AMD plans are unchanged. Host tests cover the plan of each takeover, a
function that offers FLR under a driver takeover (no FLR, no bus reset,
bus mastering off), and 8086:a7a0 at 00:02.0 under i915 and xe.
macOS's sleep path quiesces the SEP and waits up to 5 s on iop-sep-nub's
function-wait_for_power_gate (PMGR Wait on device 0xa0, SEP), then stops the
processors and enters deep sleep, resuming through the reset vector. None of
that is modeled, so the wait timed out and macOS panicked. XNU reads
/defaults sleep-disabled into gSleepDisabledFlag once booted, and
checkSystemSleepAllowed then refuses every system sleep with
kPMConfigPreventSystemSleep: the Apple menu's, idle, a sleep key's and a
lid's (--lid-sleep). macOS stays up and only its display sleeps.
macOS's sleep path quiesces the SEP and waits up to 5 s on iop-sep-nub's
function-wait_for_power_gate (PMGR Wait on device 0xa0, SEP), then stops the
processors and enters deep sleep, resuming through the reset vector. None of
that is modeled, so the wait timed out and macOS panicked. XNU reads
/defaults sleep-disabled into gSleepDisabledFlag once booted, and
checkSystemSleepAllowed then refuses every system sleep with
kPMConfigPreventSystemSleep: the Apple menu's, idle, a sleep key's and a
lid's (--lid-sleep). macOS stays up and only its display sleeps.