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.
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.
Asimose's touchpad (I2C0 at 0000:00:15.0, 8086:51e8) stays off because
its LPSS controller's BAR0 is 0 and nothing assigns it. The message said
"Stela assigns none yet", and the native MMIO line called the windows
"its ACPI host bridges declare", though they come from
EFI_PCI_ROOT_BRIDGE_IO.Configuration(), the space the firmware allocated.
The probe test now checks the whole message.
Assigning the BAR is left for a later change: it needs the host bridge's
ACPI _CRS window and PNP0C02 ranges, which nothing reads yet, and a new
NativeServices path past claim_bar's firmware-window check.
Asimose's I219 (8086:0dc6, Raptor Lake PCH) failed on three boots of four
with only that message. The unmanaged ULP exit ran inside a PHY
transaction, so an MDIO timeout there poisoned the session and the
LANPHYPC recovery that Linux relies on never ran, and the cause went with
the controller.
As e1000_disable_ulp_lpt_lp does:
- the CV_SMB_CTRL page select is part of the read
(__e1000_read_phy_reg_hv), so its failure takes the forced-SMBus retry
too: with the PHY in SMBus mode and the MAC in PCIe mode it is the first
cycle to fail;
- a PHY that does not answer fails the exit at release:, with the
semaphore released and the session kept; only a transport fault (a
refused or all-ones access, the semaphore, the delay clock) ends it;
- after a failed forced exit the PHY is reset (unless the ME blocks it)
and given 50 ms before the access checks.
A start that still fails after a failed exit now reports both:
"..., after the PHY did not leave its ultra-low-power state (lanphypc: ...)".
New model knobs keep a PHY asleep through the first toggle or reachable
only through forced SMBus; each fix's tests fail without it.
Asimose's 0.6.0 stopped 495 s into macOS, 2 s after "TRANSLATIONS retired":
a user-space block installed from the pack took its first host page fault
(trap 14, error 0, at a guest address: the usual shadow fill), and its
recovery rows, which a stored block only fills at that fault, could not be
qualified.
Once the store is retired, Store::stored skips a record's pieces still in
the file and returns the ones in memory, where it returned none before. The
fault path read the entry's guest bytes only when no record came back, so a
partial record without the entry left CodeRecovery::qualify with neither
and it returned StoredRecord. CodeRecovery::stored_in now says whether the
record holds the entry, and the bytes are read whenever it does not.
The translator id is unchanged: no translation input moved, and the new
tests live outside the fingerprinted files.
NativeBootIo maps the function's whole 16 KiB BAR0 but refused every access
past 8 KiB. iwl_pcie_conf_msix_hw's IVARs (0x2880, 0x2890..) and the MSI-X
cause and mask registers (0x2800..0x2810) sit at CSR_MSIX_BASE 0x2000, so
route_interrupts failed on the first write8 and the boot never reached
ALIVE: the first Intel Wi-Fi test on real hardware (AX200, 8086:2723).
One WINDOW bound and reach() check now serve read32, write32 and write8,
and the boot fixtures' model keeps the same bound, so a fixture can no
longer reach a register the real window refuses. With the old bound, four
tests fail. The pinned cc-a0-77 and ty-a0-gf-a0-89 images still parse,
plan their paging and run the image-driven boot fixtures through ALIVE.
macOS moves the pointer by swapping DCP layer 1 alone. The model latched
swaps strictly in order, so each move waited behind WindowServer's
fenced desktop frame (paulstelian97's 860M: deepest=33, latch max
1742 ms; boot 31: 74 ms). A ready swap whose slots no waiting swap in
front of it set is now composed over the frame on screen at the next
vblank; completions stay in submission order. DCP PACING reports these
presents as overtaking=N.
With --trackpad the touchpad gives touch frames, which the CURSOR line
never counted (samples=0 in every log): a frame whose one finger moved
now counts as a pointer report.
mount_interface keeps build1-polish's wording of what laptop auto turns on, with --acpi-hardware for the battery, lid and brightness keys, beside the GPU branch's --hybrid-scanout note.
The workspace and stela-boot versions go from 0.5.0 to 0.6.0, with their workspace members in both Cargo.lock files. The boot bundle revision (39) and the options revision (13) are constants of their own and stay as they are.