Commit Graph
8714 Commits
Author SHA1 Message Date
Garvit Surana 71eb800ff8 fix(gpu): cap each image array of the Metal descriptor heap at 4,194,304 descriptors, texel buffers included, where ANV on Gen9 to Gen12.0 Intel GPUs reported 201 million images, the heap's one pool asked for 203 million descriptors (9.1 GiB of host memory) and Metal could not open with OutOfMemory 2026-11-25 15:46:24 +00:00
Garvit Surana dc2355fcf7 fix(gpu): take an i915_active node before its IRQs-off lock (Linux patch 0237), hand the engine the earlier boot's GuC record, start Alder and Raptor Lake P without the GuC unless --i915-guc on, and turn off panel self refresh and framebuffer compression, where every Mesa submission failed with -ENOMEM, the GuC fallback never ran and the stop never reached the panel
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.
2026-11-24 21:19:52 +00:00
Garvit Surana c571085f29 fix(gpu): take an i915 context's guc_id before submission_state's lock (Linux patch 0236), and start i915 without its GuC the boot after one whose GuC failed, or with --i915-guc off, where Raptor Lake P's GuC submission enable failed with -EAGAIN and left a wedged GT and no Metal device
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.
2026-11-24 19:06:54 +00:00
Garvit Surana ed327327a8 merge release/0.6.1 into release/0.6.1-gpu-experimental 2026-11-24 16:19:08 +00:00
Garvit Surana 91f17ce6d3 merge fork/061-nvidia-render into release/0.6.1 2026-11-24 16:19:07 +00:00
Garvit Surana f3229446a9 fix(gpu): a command buffer marks each IOSurface it names in use until it completes, as Apple's GPU driver does, where a video decoder's pool reused a frame whose sampling command buffer the service had yet to run and the lock screen's aerial wallpaper showed green, stair-stepped blocks of rows not yet decoded
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.
2026-11-24 16:17:54 +00:00
Garvit Surana 53c5ab12ac merge fork/061-navi3x into release/0.6.1-gpu-experimental 2026-11-24 14:58:32 +00:00
Garvit Surana 21ec0f8b73 feat(amdgpu): log the link masks the SMU's PCIe override is made from, what they give it, and each forced level's table values, argument and answer on SMU 13.0.0 and 13.0.7, where a refused override left no line saying whether it was asked for lane 0
New Linux patch 0235, under CONFIG_STELA, in smu_smc_hw_setup and in
smu_v13_0_0/smu_v13_0_7_update_pcie_parameters' force-all-levels loop.
2026-11-24 14:57:31 +00:00
Garvit Surana 5f9ff439bb merge origin/fork/061-intel-igpu into release/0.6.1-gpu-experimental 2026-11-24 14:34:39 +00:00
Garvit Surana 2a5402d8bf merge release/0.6.1 into release/0.6.1-gpu-experimental 2026-11-24 14:34:39 +00:00
Garvit Surana 12264e7dd4 fix(gpu): give amdgpu a discrete AMD GPU's slot link on Linux's command line on an Intel host, as amdgpu.pcie_gen_cap and amdgpu.pcie_lane_cap masks of the trained link between its card's switch and the root port from the port snapshots the claim holds, else its own link, never a width of 0, where an RX 7900 XTX's SMU refused OverridePcieParameters (0xFF, -EIO) and its probe failed at "Attempt to override pcie params failed!"
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.
2026-11-24 14:31:06 +00:00
Garvit Surana 34f983aed8 merge fork/061-r8169 into release/0.6.1 2026-11-24 13:57:26 +00:00
Garvit Surana a5235bfb9a merge fork/061-r8169 into release/0.6.1 2026-11-24 13:57:26 +00:00
Garvit Surana b5ab1c9a33 merge fork/061-fixes (Wi-Fi page) into release/0.6.1 2026-11-24 12:57:25 +00:00
Garvit Surana 735ba9579f merge fork/061-fixes (Wi-Fi page) into release/0.6.1 2026-11-24 12:57:25 +00:00
Garvit Surana fb31457e3e feat(boot): open the Wi-Fi page by itself before the menu when a supported chip has no network, or on the network the earlier boot could not join with its password ready, and never on a boot nobody may be at
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.
2026-11-24 12:56:53 +00:00
Garvit Surana f2c5c76cf9 feat(wifi): give what a Wi-Fi join came to through Link::take_join, once per change: joined, the password may be wrong, or not in range
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.
2026-11-24 12:56:53 +00:00
Garvit Surana 28b5c41055 fix(net): a Realtek receive ring follows a chip that passed the driver's slot, and an unanswered guest DHCP window logs the host adapter's state, where an RTL8168H (XID 541) that skipped one slot held every frame a full ring of 256 and the guest got no DHCP or ARP answer
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=.
2026-11-24 12:56:26 +00:00
Garvit Surana 510daf2edc fix(linux): pass over a device whose link status names no lanes or no known speed in pcie_bandwidth_available, where a root port snapshot that read 0 won Linux's comparison as the last link and amdgpu took the slot as x0 at an unknown speed, which an RX 7900 XTX's SMU refuses as lane 0
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.
2026-11-24 12:40:43 +00:00
Garvit Surana a0afe2aebd merge fork/061-fixes into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 2388d70afd merge fork/061-fixes into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 758aac5c88 merge fork/061-cursor into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 3e16314649 merge fork/061-cursor into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana fe950b2eab merge fork/061-sleep-amd into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 6b59da131c merge fork/061-sleep-amd into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 6ed8ad8747 feat(boot): let W open a page saying the PC's Wi-Fi chip isn't supported yet, or that it has none, with "Wi-Fi: this chip isn't supported yet (press W)" on the menu, and let W open the Wi-Fi page on a USB with no network yet
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.
2026-11-24 12:29:12 +00:00
Garvit Surana 43b32e1a94 fix(gpu): read an AMD GPU's IP discovery table by its BAR's address when the firmware describes the BAR without a memory range, and count an AMD GPU whose table still is not read as discrete when it sits below its card's own PCIe switch (1002:1479 below 1002:1478), where an RX 7900 XTX whose board firmware answered GetBarAttributes(5) with no memory descriptor was taken as integrated and given a 5104M share of the host's RAM
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.
2026-11-24 12:23:29 +00:00
Garvit Surana efc082e0d1 fix(gpu): a request on an IRQ line its previous driver freed is refused as unexposed, before any route, event or source, so xe's probe after a failed i915 probe on the same MSI line fails cleanly with -EOPNOTSUPP, where the refusal was classed as retained and stopped the boot with "IRQ enable uncertain; published request retained"
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.
2026-11-24 12:22:41 +00:00
Garvit Surana e40d1d26b9 fix(linux): a kmem_cache request carrying __GFP_RETRY_MAYFAIL is served, its growth one fallible attempt as kmalloc's and the page allocator's policies already allow, where the cache refused it as an unsupported policy, so shmem's xarray node for i915's blocking retry of a shmem object's pages failed and Raptor Lake P's GuC log buffer ended i915's probe with -ENOMEM
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.
2026-11-24 12:22:40 +00:00
Garvit Surana fa401608bb release: Stambha 0.6.1
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.
2026-11-24 12:16:21 +00:00
Garvit Surana 058410bf2e fix(installer): call the dry run "Install check (dry run)" and end it with "Nothing was installed: this was only a check. Choose Install macOS to install", where a tester read "Check only" and its PASS screen as an install
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.
2026-11-24 12:16:21 +00:00
Garvit Surana 499ad908ee fix(boot,cli): say where the boot log is on the stop and restart screens and in stambha's help: stambha log on any computer, or the file \EFI\stela\boot.log on the stick
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.
2026-11-24 12:16:21 +00:00
Garvit Surana a71850aa20 fix(app): show "Stambha <version>" in Stela.app's About This PC, its summary and its Updates list, where they said "Stela 0.6.0"
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.
2026-11-24 12:16:21 +00:00
Garvit Surana a95ddeb980 feat(boot): say "Wi-Fi: press W to choose a network" on the boot menu and in the log when a Wi-Fi chip Stambha starts has no network, where the menu showed no Wi-Fi line at all and testers missed the key
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".
2026-11-24 12:16:21 +00:00
Garvit Surana 824961a982 fix(gpu): an Intel integrated GPU is claimed without a reset, left in D0 as the firmware left it for i915 or xe to take over at its probe, as Linux binds it, with one line saying so and naming the reset it offered, where the claim's Function Level Reset left a Raptor Lake P GPU (8086:a7a0) whose registers all read 0xFFFFFFFF, so i915 found it non-operational, xe took it for a VF and its display stayed dark
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.
2026-11-24 12:05:02 +00:00
Garvit Surana 837dc2d0ec fix(drivers): bring an HD Audio controller to D0 and turn its memory decode on before the cold preflight, as Linux pci_enable_device does, leaving Bus Master as it was, where an AMD laptop's 1022:15e3 the firmware left powered down or not decoding failed with PowerNotReady 2026-11-24 11:43:27 +00:00
Garvit Surana fb6224af36 fix(drivers): bring an HD Audio controller to D0 and turn its memory decode on before the cold preflight, as Linux pci_enable_device does, leaving Bus Master as it was, where an AMD laptop's 1022:15e3 the firmware left powered down or not decoding failed with PowerNotReady 2026-11-24 11:43:27 +00:00
Garvit Surana 9a252b3337 fix(loader): tell macOS this Mac cannot sleep with /defaults sleep-disabled, set in each boot's own tree with a SLEEP line, and pin macOS's SEP sleep and wake sequence in a host test, where the Apple menu's Sleep panicked with "SEP failed to power-gate after 5s"
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.
2026-11-24 11:43:27 +00:00
Garvit Surana 94e9d63c19 fix(loader): tell macOS this Mac cannot sleep with /defaults sleep-disabled, set in each boot's own tree with a SLEEP line, and pin macOS's SEP sleep and wake sequence in a host test, where the Apple menu's Sleep panicked with "SEP failed to power-gate after 5s"
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.
2026-11-24 11:43:27 +00:00
Garvit Surana afa70f9809 fix(drivers): say Stambha, not Stela, when a PCI BAR the firmware left unassigned keeps a device off, and name the windows as the firmware's root bridges report them
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.
2026-11-24 11:42:28 +00:00
Garvit Surana 4d21b8e509 fix(e1000e): let a PCH I219 PHY that ignores the forced ULP exit be reached through forced SMBus and a PHY reset, and name the exit's cause, where the adapter stopped at "an earlier PHY failure left it unusable"
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.
2026-11-24 11:38:03 +00:00
Garvit Surana 7f429a62f1 fix(engine): compile a stored block's fault rows from its guest bytes when the record a retired pack gives lacks its entry, where an ordinary page fault became STOP NATIVE_FAILURE (StoredRecord) and code=0x13
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.
2026-11-24 11:24:54 +00:00
Garvit Surana dbdf868d4b fix(wifi): let the Intel boot reach the MSI-X registers in BAR0's upper 8 KiB, where an AX200 with an MSI-X vector stopped at Boot(Access(Bounds))
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.
2026-11-24 11:14:06 +00:00
Garvit Surana 160638d844 fix(display): show a pointer move at the next vblank ahead of a desktop frame still waiting for its GPU fence, and time the trackpad's pointer reports, where the cursor's swaps queued behind that frame up to 1.7 s and CURSOR counted no touch frame
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.
2026-11-24 11:11:01 +00:00
Garvit Surana 7b6bb562d5 merge fork/build1-polish @d398c1df1 (Stambha 0.6.0) into the experimental GPU branch
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.
2026-11-23 19:14:42 +00:00
Garvit Surana d398c1df1e release: Stambha 0.6.0, so a stick made with Stela 0.5.0 sees this build as an update
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.
2026-11-23 19:12:34 +00:00
Garvit Surana 4d50d41d42 fix(boot): say plainly that macOS crashed or the graphics card stopped working before the technical detail, point the Wi-Fi page at stambha settings instead of --wifi and stela.cfg, and call the stick's EFI partition Stambha's, where the first words were raw panic, GPU and option text 2026-11-23 19:09:36 +00:00
Garvit Surana 18ed6a738a fix(laptop): take the battery, lid and brightness keys unasked only with --acpi-hardware, keeping the touchpad, where a laptop without hardware mode got a battery frozen at its first reading and a lid and keys that did nothing 2026-11-23 19:09:36 +00:00
Garvit Surana e8dd6d38ec merge fork/build1c @0b154df79 into the experimental GPU branch: the background pack preload off by default 2026-11-23 18:32:11 +00:00
Garvit Surana 724e0f7037 test(boot-core): build1c's PE-count sizing test gives sizes the GpuMemory::Own the GPU branch's signature takes, where the merge left it the old three arguments 2026-11-23 18:31:47 +00:00