Commit Graph
8339 Commits
Author SHA1 Message Date
Garvit Surana 00aae1e5ef merge: fork/hybrid-gpu into fork/build1
# Conflicts:
#	crates/stela-boot-core/src/options.rs
#	crates/stela-boot-core/src/options/error.rs
#	crates/stela-boot-core/src/options/tests.rs
#	crates/stela-loader/src/mount_interface.rs
2026-11-23 11:54:32 +00:00
Garvit Surana eacfabab50 merge: fork/pe0-free into fork/build1
# Conflicts:
#	crates/stela-boot-core/src/options/error.rs
2026-11-23 11:20:05 +00:00
Garvit Surana f2f464ed49 feat(boot): run the host's service turns and the GPUs' pump on one extra host core under --host-core on, default off, reserved past the guest's PEs, set aside before the topology, pinged before the guest starts and given up for the PE-0 path whenever a step cannot be checked, where PE 0 served the host and pumped the GPUs between its own slices
--host-core on|off is hand-written (stela_boot_core::options::HOST_CORE), so
the options revision stays 13; setup never writes it.

- stela_boot_core::host_core: plan (a processor left beyond the PEs, a
  parallel run), confirm (every reserved processor started, the host core
  last), the Channel (one poster, one taker: ping, stop, state, beat), the
  self-check, covers (PE 0 leaves the pump only to a serving host core with a
  fresh beat), Shares (each taker's time served). Host tests for each,
  including a two-thread handoff and every fallback.
- system.rs: the plan reserves PEs + 1 processors; a refused plan or a
  reservation that kept fewer boots exactly as without the option, with a
  HOST CORE off: line. Resources::host_core marks the last slot.
- native_smp: --native-cores counts PEs (Resources::pe_cores); the last
  started processor is set aside (Executors::set_aside_host_core) only when
  every reserved one started, so the guest's PE count and topology are as
  without the option.
- engine/host_core: the host core's loop (shootdowns, a service turn every
  500 us as a waiting PE serves, gpu::pump_host_core every pass), the ping
  it must answer within 50 ms before the guest starts, else HOST CORE
  fallback and PE 0 keeps everything, and its stop before the service is
  taken back at the run's end.
- gpu::pump_due: PE 0 defers ready work to a serving host core unless it
  waited DEFER_LONGEST_NS or the host core's beat is older than 2 ms.
- The services beat line gains served_us waiting/boot/host_core and
  pe0_share=N%, and with a host core its state, turns and pumps.

Lines: HOST CORE plan / off / set aside / cpu=... serving=service-turns,
gpu-pump ping_us= / fallback / stop.
2026-11-23 11:19:13 +00:00
Garvit Surana 71ff51765d feat(gpu): log the GPU's temperature every beat as GPU THERMAL, from the sensor nouveau now reads each second beside GSP-RM's P-state (patch 0223), where nothing read the GPU's temperature and a GPU that dropped off the bus under load could not show whether it ran hot
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.
2026-11-23 11:04:09 +00:00
Garvit Surana dfda54be15 fix(nouveau): a GPU that stopped answering for good is no longer read or written, and every timer wait ends at once on it or on a timer that reads all ones (patch 0222), where a teardown of a GPU off the bus spun 30 s through VMM flush waits until the step watchdog stopped the boot
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.
2026-11-23 11:04:09 +00:00
Garvit Surana 50fac65aba feat(gpu): read the port above a GPU through the fabric's owner of its page, with its DPC state, and turn the link's ASPM and L1 PM Substates off at both ends at the claim with --gpu-aspm off, where every GPU's port was refused with ResourceConflict and a link the firmware left in L1 stayed so
A port that forwards to its GPU keeps its configuration page with the
containment fabric's owner of it (forward_cold_bridge), beside which no
other mapping may open, so port_above's read-only mapping was refused
with ResourceConflict on every GPU (native_mmio/shared.rs:738). The port
is now read through that owner (read_forwarding_bridge), and the old
mapping is kept only for a port that does not forward. The link lines at
the claim and the port's line at a loss or return now carry the port's
link, slot, AER and, new in the link report, its Downstream Port
Containment control, status and error source. As the port now reads,
the L1 PM Substates are set as Linux leaves them where they were skipped.

--gpu-aspm off|firmware, default firmware, is hand-written, so the options
revision stays 13. With off, each GPU's claim turns every L1 PM Substate
off at both ends, the GPU's first, then ASPM L0s and L1 at the GPU and
then at its port, as Linux's pcie_aspm.policy=performance does, through
the fabric that owns the port, read back, before the claim's reset; one
line says what each end had. Without a port, only the GPU's end, which
still keeps the link out of L1. The register work is
disable_link_power, beside disable_aspm_link, which now shares its
link-control and L1SS helpers. For a Yoga Slim 7 16ACH6 whose RTX 3050
drops off the bus after minutes with the firmware's ASPM L1 on
(stambha issue #1).
2026-11-23 11:04:08 +00:00
Garvit Surana 2dfefa7318 merge: fork/pe0-free into fork/build1 2026-11-23 11:02:52 +00:00
Garvit Surana cfec986c86 merge: fork/tlbi-keep into fork/build1
# Conflicts:
#	crates/stela-boot-core/src/options.rs
#	crates/stela-boot-core/src/options/parse.rs
#	crates/stela-loader/src/mount_interface.rs
2026-11-23 11:02:52 +00:00
Garvit Surana 91b9dead3c merge: fork/warm-cache into fork/build1 2026-11-23 11:01:09 +00:00
Garvit Surana e96b553c29 merge: fork/log-panic into fork/build1
# Conflicts:
#	crates/stela-loader/src/mount_interface.rs
2026-11-23 11:01:09 +00:00
Garvit Surana 9c45dd3bad perf(engine): keep the ITLB's lookup contexts across a TLBI of everything behind --tlbi-keep on (default off) and verify every entry against the tables at the context's next fetch, with --tlbi-verify-check walking each kept entry in full too, where every TLBI of everything forgot every context and walked up to 2048 pages a context again, ~100 a second on each busy PE
Each ITLB fill records its walk: every descriptor address and value read over
both stages, in order, the TTBR0 it started from and what it gave. A TLBI of
everything marks the contexts kept; Contexts::find gives no kept context, and
every number native code holds comes from find (the fetch's contexts, the
TTBR0 switch table through switch_contexts, the transition records through
live_contexts). The chain runs in contexts::VOID, both ITLB drop epochs grow
(no stamp or jump cache entry survives, since a stamp may name a page an
eviction took), the switch table and transition records are forgotten by the
generation as before, and the TLBI-by-VA filters are cleared and refilled by
verification.

Verification keeps an entry only while every recorded descriptor holds its
value, a lower-half page's TTBR0 is the recorded one (the upper context holds
the lower half's global pages and has no TTBR0 in its key), the host still
permits the fetch, and the entry is what a fill would make now (page_variant,
block_key). Anything else drops it and walks it again; a context with an entry
no record covers is forgotten. The upper half is kept only while its keys
leave out the ASID.

PES TLBI KEEP gives tlbis, contexts, verified, forgotten, kept, dropped,
checked, mismatches(check), verify_ns_per_tlbi and each PE's kept/dropped;
PES TLBI KEEP MISMATCH samples what the check found.

Tests: the five-scenario acceptance set runs on configured machines and passes
with the keep on, with and without the check, and fails in all five under the
mutation that keeps without verifying (a permanent test). New cases: a
descriptor changed and back (ABA), a table page freed and reused, a block split
into a table, a stage-2 change, permission-only changes (UXN, AP, PXN), a page
the host refuses, a frame whose variant changed, an ASID reused with the same
layout (private and global), the native paths' void state, and a randomized
differential of keeping against forgetting over 10,000 steps of table rewrites,
TLBIs and switches. Seven mutations of the checks (TTBR0, descriptors, host
permission, entry key, drop epochs, void context, refilter) each fail a test.

Options revision 13 kept: both options are hand-written. No translation input
changed, so the translator id is unchanged.
2026-11-23 10:59:20 +00:00
Garvit Surana d5dc6fff42 fix(wifi): wait out the RTL8852C association's beacon interval across service turns, cap the network part's frame loops at 2 ms a turn, and name the slow piece and keeper step in HOST SERVICE SLOW, where boot 23 held PE 0 busy for 101 ms in rtw89_mac_port_cfg_func_sw's msleep(beacon_int + 1) inside the guest network's carrier poll
The 101 ms `HOST SERVICE SLOW part=network` lines of boot 23 (43.674 s and
1017.086 s, each ~260 ms before the host adapter's "link up") are the INFRA
port update of the association: ax/vif.rs cfg_func_sw delayed
(beacon_int + 1) * 1000 us once vif init had turned the port function on,
called from assoc::associate under Live::associate, under the station's
configure, under the keeper's poll, under GuestNetwork::carrier/receive in
the network part of PE 0's service step. Linux sleeps there; here it was a
busy wait on a guest PE.

- vif: port_function_on, quiet_us and port_update_after split the update
  around its wait; port_update keeps the blocking order for vif init.
- assoc: associate_begin and associate_end; associate is begin, wait, end.
- Live: begin_association and finish_association hold the begun
  association with its deadline; Chip::associate now returns Ok(false)
  until it has passed. A begun association leaves as a made one; set_bssid
  and a second association are refused meanwhile; power-off forgets it.
- ax station: configure keeps the admission and is Pending while the chip
  waits; the keeper retries a deferred configure while the radio is still
  Admitted (other radios unchanged).
- Flush without drop polls DLE_TXQ every 100 us instead of 10 ms.
- Link::slowest_step: the keeper times its steps (radio service, eapol and
  keys, port, scan, scan end and join, associate, configure, ...).
- service: the network part's transmit and receive loops stop starting
  frames after 2 ms (service_watch::Budget), the next turn starting at the
  network; HOST SERVICE SLOW part=network carries carrier/queued/transmit/
  receive/deliver us, sent, read, cut and keeper=step:us;
  HOST SERVICE KEEPER names a keeper step of 2 ms or more; the host
  adapter's link up/down line carries keeper_longest=.
2026-11-23 10:39:22 +00:00
Garvit Surana 2217199307 perf(ahead): keep 16384 jobs of a block's page and 4096 of other pages ahead of use, and let the previous translator's refill run beside the ahead queue rather than only once it empties, where a desktop boot dropped 24.0 M of 37.3 M jobs and the refill of blocks a boot ran waited behind guesses of which 14 % ran 2026-11-23 10:15:58 +00:00
Garvit Surana cb0c21ce7d feat(translations): read the first records of a pack read on demand into memory before the guest starts, within a fourth of the room its indexes leave (at most 256 MiB) and two seconds, split the segment in the store into those records and an index of the rest read on demand, check each record as before, and log TRANSLATIONS preload, where every record of the 498 MB pack waited for a USB read on an idle PE while busy PEs compiled it 2026-11-23 10:15:58 +00:00
Garvit Surana 0e188ceaa0 fix(boot): give every boot's XNU lock timeouts at least twice their default, 250 ms for a ticket spinlock, where a host as fast as the modeled chip kept 125 ms and warm boots have stalled every PE for 104-162 ms
A separate, conservative default: LOCK_SCALE_FLOOR is 2, a slower host
keeps its own larger scale, and --profile multiplies the result by 4 as
before. A real deadlock still panics within a second.
2026-11-23 09:45:17 +00:00
Garvit Surana 8c34c1b9c2 fix(boot): stop the run 30 s after a guest kernel panic that never resets the Mac, as "macOS panicked: <message>", store the USB log within a second of the panic, and name a guest console quiet for 120 s before macOS's first frame as BOOT STALLED?, where a boot whose macOS panicked at 42.7 s and then spun at one PC ran on for twenty minutes until the PC was turned off
stela-boot-core's guest_watch takes the lines the home PE writes: XNU's
"panic(cpu N ...)" header counts only at a line's start, so lines that
merely mention a panic, or a header inside a long line's continuation, do
not. The first header is logged (GUEST PANIC seen) and shown as the
running step's detail; with no reset PANIC_HOLD_MILLIS later the run ends
through finish() as a halt, logged as STELA FATAL macOS panicked, with the
stop's usual reports, translation write, log store and screen. A panic
that a reset follows keeps today's path. --keep-running-on-panic, a
hand-written opt-in like --acpi-hardware, keeps the options revision at 13.
2026-11-23 09:43:13 +00:00
Garvit Surana 0b326db4f5 fix(boot): multiply XNU's lock timeouts by 4 under --profile, where a profiled cold boot on a 5.04 GHz host kept lock_scale=1, stalled PEs 1-3 for 193 ms past ticket-lock's 125 ms and macOS panicked "Ticket spinlock ... timeout"
The scale stays the host's own without --profile; a profiled boot gets it
times PROFILE_LOCK_FACTOR, at most MAX_PROFILED_LOCK_SCALE (2 s for a
ticket spinlock). GUEST TIMEOUTS now also names host_scale and profile.
2026-11-23 09:37:03 +00:00
Garvit Surana 72a0c83c07 feat(log): count each PE's own TLBIs of everything by whether TTBR0_EL1 changed since its previous one, and under --profile sample one in 4096 with its PC, X16, X30 and both TTBR0 values, with the acceptance tests any whole-TLBI keep must pass, where nothing said what made SPTM flush everything at context-switch rate
PES WHOLE TLBI TRIGGER same_ttbr0/new_ttbr0 gives each PE's split, read at
the TLBI from the register, so native TTBR0 switches count too; mail's
TLBIs of everything are another PE's and count in neither. Under step
timing, PES WHOLE TLBI SAMPLE lines name the caller: if nearly every one
follows an address-space switch, the trigger is the shared-region rule in
pmap_switch, which only keeping translations across the flush answers; if
not, the CPU model makes SPTM flush. Reads registers only.

after_a_whole_tlbi_every_fetch_runs_what_its_walk_now_gives runs five
scenarios on machines of their own: a page remapped, unmapped, made PXN, a
TTBR0 and ASID reused by a new process, one VA in two address spaces with
one changed. All pass, and all five fail when the TLBI of everything keeps
the contexts without checking them (a mutation of tlb_maintained), the
bar a "verify instead of forget" must clear. That change itself is not made
here. Engine translation inputs untouched: the translator id is unchanged.
2026-11-23 08:23:30 +00:00
Garvit Surana de600d5d1e perf(engine): walk the post-TLBI refill's pages from the leaf table the walk before read, with the controls and requester read once a batch, where refill_pages walked each of up to 2048 pages a context from the table base, its controls and requester rebuilt per page, about 0.9 ms of engine time each whole TLBI
mmu::WalkMemo keeps the last table a batch's walk read (translate_noting)
and starts the next walk there while it holds that walk's address
(translate_from), as a walk cache does; refill_pages makes one per batch
and drops it with the batch, which runs no guest code, changes no control,
makes no descriptor update and ends at the first walk that forgets
contexts. The refill's list is sorted, so its pages run through shared leaf
tables: one descriptor read a page past the first instead of three or four.

Tests: a randomized differential test (300 random regimes, granules,
stage 2 and tables) has every walk of a sorted batch equal the full walk,
also after the tables change between batches, path and hierarchical bits
included, and catches a memo kept across that change giving stale
translations; an engine test refills 48 pages after a TLBI ALL with a page
unmapped, one moved and one made PXN in between, takes exactly what full
walks give, and reads under two descriptors a page where the old walk read
three (144 in all; a
mutation to the old walk fails its bound). The engine's translation inputs
are untouched: the translator id is unchanged.
2026-11-23 08:10:24 +00:00
Garvit Surana 1832a6e6cc perf(boot): write every shadow page-table leaf with Accessed set, and Dirty on a writable one, so the processor makes no locked update of a fresh entry at its first access and first write, where a demand fill, prefill and restore wrote PRESENT | NX | WRITABLE | USER alone and each of the tens of millions of entries a minute the whole-TLB flushes cost took one or two
Nothing reads the host's A or D bits: the shadow keeps no dirty or access
tracking (the guest's own state is in its descriptors, which the walker
never updates, no FEAT_HAFDBS), and the fills test PRESENT alone. The
rights move to stela_boot_core::shadow_leaf, tested there, with a
compile-time check that its bits are the page tables' own. Engine and
compiler untouched: the translator id is unchanged.
2026-11-23 08:00:36 +00:00
Garvit Surana 3a1a91bfc5 feat(boot): set an ASUS laptop's firmware thermal policy to performance before macOS starts, as Linux's asus-wmi sets throttle_thermal_policy, with --asus-mode performance|turbo|silent|off, where macOS ran in whatever mode Windows last chose
The policy device (0x00120075, else the Vivobook's 0x00110019 with silent
and overboost swapped) is found by its DSTS presence bit on the ATK WMI
device that has the notebook events, and set with DEVS, which must answer
1, in a bounded firmware call after the ACPI activation, with or without
--acpi-hardware. The FA608PP's DSTS of the policy answers a constant
0x00010003, so the mode in effect is read from the EC RAM field its DEVS
writes (EC0.FTBL) before and after. One line:
"ASUS thermal policy: was X, set Y (...), the firmware reads Z", or why it
was skipped; nothing on a PC without the ASUS notebook device. A failure is
logged and the boot goes on. The asus-wmi power limits the device names
(PPT_* and NV_DYN_BOOST) are read with DSTS, read only, on a
"HOST POWER LIMITS asus-wmi" line.

--asus-mode is hand-written, as --laptop and --acpi-hardware are: no line
setup writes holds it, so the options revision stays 13.
2026-11-23 07:57:47 +00:00
Garvit Surana 45094bb513 merge: fork/acpi-hw into fork/next 2026-11-23 07:26:34 +00:00
Garvit Surana 2c73994467 merge: fork/touchpad-reset into fork/next 2026-11-23 07:26:34 +00:00
Garvit Surana 9f472e8f24 feat(boot): run the host's ACPI in hardware mode with --acpi-hardware, with _INI before the census as without it, the activation bounded on the firmware timeout, the SCI's storm guard and the EC's query budget and failure breaker, where hardware mode was off on every PC
With the option the provider attests FULL_CAPABILITIES, which only
Session::enable_hardware reads, so the namespace loads as without it.
Without it, or without a captured SCI route, nothing of hardware mode
runs and one line says why.

- _INI runs before the PCI census either way, so pci_power and the census
  see what they see now; hardware activation then runs no _INI again and
  the EC's _REG follows it, as under Linux without an ECDT.
- The activation runs inside the 10 s AML bound on the firmware calls'
  11 s deadline. Its 5 s deadline was shorter than ACPICA's own 3 s wait
  for SCI_EN plus _REG, and a continuation past its deadline closes the
  work owner's entry for every later firmware call.
- The SCI's dispatch follows the storm guard: masked and polled while it
  storms, its PM1/GPE registers logged once, run and rearmed on the retry.
- The EC's queries follow its budget and breaker; each query number gets
  one line, so a test boot shows which events arrive.
2026-11-23 07:24:16 +00:00
Garvit Surana 915cb88ef6 feat(boot-core): add --acpi-hardware, a hand-written opt-in that keeps options revision 13, and the lines, FADT ACPI-mode registers, SCI storm guard and EC query budget and failure breaker ACPI hardware mode runs with
--acpi-hardware is a flag setup never writes, so no line setup writes
changes meaning and the revision stays 13, as the fork's --trackpad and
--laptop did; mount_interface's revision notes name it. --laptop auto does
not take it until a laptop has proven it.

stela_boot_core::acpi_hardware holds what a host test can check:
- the off, refused and starting lines, the last naming SCI_INT, the SCI's
  route and whether entering ACPI mode takes SMI_CMD <- ACPI_ENABLE (read
  from the FADT: SCI_INT 46, SMI_CMD 48, ACPI_ENABLE 52, PM1a_CNT 64);
- SciGovernor: past 100 SCIs a second for 3 seconds the SCI stays masked
  and ACPICA's handler runs every 100 ms, interrupts are tried again once
  after 30 s, and a second storm keeps the polling for good;
- EcGovernor: 64 queries a second at most, events stopped after 3 failed
  transactions in a row, and each query number named once.
2026-11-23 07:24:16 +00:00
Garvit Surana 2809f1451b fix(acpi): disable, clear and flag a FADT GPE in the EC's raw handler with no GPE device, as Linux's EC handler does, where it passed on ACPICA's \_GPE node, which acpi_disable_gpe and acpi_clear_gpe refuse with AE_BAD_PARAMETER, so in hardware mode the EC's GPE was never flagged and its status kept the SCI asserted
ACPICA dispatches a raw GPE handler with gpe_block->node, which for the
FADT's blocks is acpi_gbl_fadt_gpe_device. acpi_ev_get_gpe_event_info finds
a GPE through a non-null device only when a GPE block device's object is
attached, which the \_GPE node never has, so both calls failed and the
handler returned NOT_HANDLED. Session::flag_gpe installs only on the FADT's
blocks, so the handler now names them with a null device
(drivers/acpi/ec.c: acpi_disable_gpe(NULL, ec->gpe)).

A new host test runs the --acpi-hardware path on the real ACPICA with a
fake chipset (PM1, PM1_CNT, GPE0 at 0x1010, SMI_CMD 0xb2 that sets SCI_EN
on ACPI_ENABLE 0xa0) and the fake EC: _INI once before activation, the
EC's _REG(3,1), ACPI_ENABLE written once, the SCI installed on IRQ 9, no
_INI replay, the EC's GPE taken from the SCI handler, QR_EC 0x2f, _Q2F's
Notify(LID0, 0x80) delivered as deferred work, and the GPE resumed. It
failed on the handler above before this fix.
2026-11-23 07:24:16 +00:00
Garvit Surana 8ddadfe4e8 fix(input): take an I2C-HID reset response no command waits for as Linux i2c_hid_get_input does, watch a precision touchpad's mode switch for the reset it causes, start a pad that reset out of touchpad mode again and switch it back, and read it as a mouse when the mode will not hold, where one zero-length input stopped and removed the touchpad for the whole session
On the ASUS TUF A16 FA608PP the ELAN touchpad at \_SB_.I2CA.TPD2 was
switched to touchpad mode at probe, then its first poll read a zero-length
input on the asserted pin. Device::poll returned UnexpectedReset for it,
fail() masked the interrupt route (the "recovery IrqMasked" in the log),
the device was left faulted and the boot's input loop removed it.

Linux takes a zero-length input as a host or device initiated reset
completing: it wakes a waiter when I2C_HID_RESET_PENDING is set and drops
it otherwise. Now:

- Device::poll returns InputReport::Reset and the device stays ready.
- Device::reinitialize starts a started device again from ready or failed
  (never after a timing failure or an unreturned callback): power on, RESET
  and its awaited response, both descriptors read again and unchanged.
- Device::settle watches the pin after a command that can reset the device.
- HidInput::new sets touchpad mode and watches 100 ms for a reset. A pad
  that reset and no longer reads back touchpad mode (GET_REPORT of its Input
  Mode feature) is started again and switched once more. A switch that
  fails, or a second reset out of the mode, starts the pad again in its
  firmware's mouse mode and reads it as a mouse.
- At run time a reset with the mode held is dropped and said once; a pad
  that lost the mode is started again and switched back, three times in
  10 s, then read as a mouse. Other devices stay in their power-on state,
  as Linux leaves them.
- Each of these is logged as "INPUT <name>: <notice>".
2026-11-23 07:15:26 +00:00
Garvit Surana 5529658db0 fix(boot): install the host lid's notify handler in a bounded firmware call on the work owner's continuation, where retain_power named the lid and installed its handler on the dispatcher's stack once the devices' start returned, so on a PC with a PNP0C0D lid ACPICA's namespace guard asked thread_id outside its continuation and the boot stopped with code 0x11 right after the LAPTOP line, --laptop off and explicit options alike
The FA608PP tester build stopped at step f with "ACPICA called outside its
owned native continuation". The laptop decision itself reads only the FADT
and what the probe already read; the call that reached ACPICA was
HostAcpi::retain_power's lid.path() and notify(), which take the namespace
guard (stela_acpi_guard_enter -> services.thread_id). The batteries and AC
adapter it publishes are the probe's cached readings and stay where they
were. A laptop test now follows take_laptop_features, retain_power and
attach_brightness_keys and fails on any ACPICA call outside a firmware call.
2026-11-23 06:01:54 +00:00
Garvit Surana 21e10c4a10 fix(boot): keep the startup menu's Wi-Fi offered when a PCI port shows nothing below it, where a Wi-Fi card the firmware left powered off answers only after the engine powers the port on, as the NVIDIA notice's NotYet does, where a complete census without the chip hid the Wi-Fi line and W (review G1) 2026-11-23 00:35:52 +00:00
Garvit Surana b4c058ac4a fix(soc): give the Bluetooth bridge its controller's credit back when the guest resets or configures the function again, as Linux's hci_dev_do_reset sets cmd_cnt to one, where a command in flight then lost the only credit and the next HCI Reset waited for it until the lend fell back (review T1) 2026-11-23 00:35:52 +00:00
Garvit Surana ecbf17a9c0 fix(boot-core): write a saved network's leading # as %23, so a name such as #Home is a network line and not a comment that no boot joins, the page never lists and Forget cannot remove (review W2) 2026-11-23 00:35:52 +00:00
Garvit Surana 20a5f5c45f fix(boot): name in the menu's Wi-Fi line only a saved network a boot can join first, checked again when the page closes, and refuse Enter on a network whose saved key is unusable, where a network just forgotten or with a bad key stayed named and went to the boot as --wifi-prefer (review W3) 2026-11-23 00:35:52 +00:00
Garvit Surana bb196909a4 fix(boot): keep the saved Wi-Fi networks when the menu's Save or Forget cannot read or write them: an unreadable wifi.saved is refused, not taken for an empty one, and a change goes to wifi.saved.new and is read back before the file is rewritten, that copy standing for a file a stopped rewrite left absent, where uefi's write deletes the file first and a failed read or write erased every network (review W1) 2026-11-23 00:35:52 +00:00
Garvit Surana b3b7b1a788 fix(boot): count another vendor's display controller as one the image drives only when its kernel driver takes it (GpuStack::drawing, through amdgpu's or xe's admits), so the Install caution and the GPU notice are not skipped for a Radeon left to radeon or an Intel GPU outside xe's table (review H1) 2026-11-23 00:35:52 +00:00
Garvit Surana a54f384404 docs: run stambha, not stela, in the README's install, update, log and build steps, as the archives now hold stambha and stambha.exe (review B3) 2026-11-23 00:35:52 +00:00
Garvit Surana 0f79e73b34 fix(gpu): give the first fault's dump 6 KiB of shader code in hex, about 19 KB of GPU FAULT text, so the boot log's 64 KiB burst for those lines still holds all three dumped faults, where 32 KiB of hex, about 94 KB, hid the second and third (review X2) 2026-11-23 00:35:52 +00:00
Garvit Surana 8686ef4bcb fix(gpu): ask only NVK for a pipeline's internal representations in a lost device's fault dump, as Stela's pipelines are made without the capture flag, where RADV answered the query with strlen(NULL) and stopped the PC on an AMD device loss (review X1) 2026-11-23 00:35:52 +00:00
Garvit Surana 75549a26ff style(cli): rustfmt the old-stick wording test, which the shorter Stela 0.3 or older line fits on one line 2026-11-23 00:35:52 +00:00
Garvit Surana 5cefe081a1 fix(boot): say Stambha in the install warning's two NVIDIA notices hw-guards added, where they still said Stela after the brand merge; log lines keep their words 2026-11-23 00:35:52 +00:00
Garvit Surana e086fabb08 fix(cli): call a stick whose record names no release Stela 0.3 or older, in the home screen and in status, as Stela made those sticks, where the rename said Stambha 0.3 or older 2026-11-23 00:35:52 +00:00
Garvit Surana 43af99c1e4 merge fork/brand: Stambha's pillar logo and name on the boot screens and the setup tool named stambha; wifi-menu's header painter test follows the new logo_pixel(x, y, side) and the Stambha name, and the GPU notices stay where hw-guards moved them 2026-11-23 00:35:52 +00:00
Garvit Surana 0decabb78a merge fork/laptop-auto: a laptop found at boot (FADT mobile profile, or an ACPI battery and lid) takes --battery, --lid method, --brightness-keys and, with --input and a precision touchpad, --trackpad mt2 unasked; --laptop off keeps them opt-in; options revision 13 2026-11-23 00:35:52 +00:00
Garvit Surana 3b792a32d2 merge fork/manifest-cap: an NVIDIA image reads a host firmware manifest of up to 1 MiB and 1024 files, as upstream does, and an update shortens a boot log too long for the next update's loader copy 2026-11-23 00:35:52 +00:00
Garvit Surana 71c86e7a9b merge fork/hw-guards: a warning page before Install macOS on a PC with no graphics card the image drives (Back by default), a vendor-neutral log line for a display device no recipe covers, and setup notes on Wi-Fi (RTL8852CE only) and Secure Boot / BitLocker 2026-11-23 00:35:52 +00:00
Garvit Surana 541ec8cc3a fix(drivers): allow claim_unmastered to go unused where native-acpi is off, as wifi-claim moved the Wi-Fi claims to their quiesced claim and its other callers, the SMBus and I2C hosts, are native-acpi's, where cargo clippy -p stela-drivers failed on dead code 2026-11-23 00:35:34 +00:00
Garvit Surana 93ad9d63cd merge fork/wifi-claim: Intel AX2xx/BE200, MT7925 and RTL8822CE Wi-Fi claimed through cold preparation and reset to their power-on state (FLR, or a Secondary Bus Reset on an exclusive bus; never FLR for MT7925) before Bus Master, experimental; the RTL8852CE claim path unchanged 2026-11-23 00:35:34 +00:00
Garvit Surana 8d4b603135 fix(drivers): claim Intel, MT7925 and RTL8822CE Wi-Fi through cold preparation, reset each to its power-on state (FLR, or a Secondary Bus Reset of its own bus; never the FLR Linux's quirk_no_flr refuses an MT7925) before its quiescence is acknowledged and its own domain bound, keep it sealed and say why when no reset reaches it, clear Bus Master again after a failed attach, and offer Wi-Fi at the startup menu for these chips (experimental), where every claim kept the seal for good and no driver but rtw89's could set Bus Master 2026-11-23 00:24:38 +00:00
Garvit Surana 7795f5f809 feat(boot): detect a laptop at boot and take its laptop features unasked, --laptop off to keep them opt-in
A laptop is a FADT Preferred_PM_Profile of Mobile, Tablet or Appliance PC,
or an ACPI battery (PNP0C0A, present by _STA) and lid (PNP0C0D) the power
probe attached. On one, where the line does not say otherwise, the boot
behaves as if --battery, --lid method and --brightness-keys were given, and
--trackpad mt2 where --input is in effect, a precision touchpad is among
the host inputs and the guest's hub has a port left beside its disks.
--lid-sleep stays opt-in. Explicit options win (--test-battery, --lid
ignore, --trackpad builtin), and the new hand-written --laptop auto|off
takes none of them. The battery is still withheld from an install,
restore, staged update, recoveryOS and the plugin repair, and still waits
out a reading at 0%.

The decision runs once the probe has found the batteries, lid and inputs
and before the lid's handler, the input and the trackpad's cabling read
the options; brightness keys taken then are attached in their own bounded
firmware call, as hardware mode attaches them with the option. One line
says what was found and taken, with each skipped feature's reason:
"LAPTOP detected (FADT mobile, battery, lid): battery on, lid method,
brightness keys, trackpad mt2" or "DESKTOP (...): no laptop features".

Setup writes nothing new and the options revision stays 13 (schema 4):
--laptop is a hand-written option setup never writes, as --trackpad is.
2026-11-23 00:20:50 +00:00
Garvit Surana 80fb9a5544 merge fork/wifi-gate: the startup menu offers Wi-Fi only on a PC with a Wi-Fi chip the driver starts (RTL8852CE), from one ID list in the Realtek identity 2026-11-22 23:09:55 +00:00
Garvit Surana d7493d66af feat(setup): say that Wi-Fi works only with an RTL8852CE so far and that other PCs need Ethernet or an Offline installer, wherever a network is set, and that Secure Boot must be off first with the BitLocker recovery key at hand, in the last word of a create, where neither was said 2026-11-22 23:08:22 +00:00