A tester's `stambha.exe create` downloaded the same file three times across runs without --ipsw. An Offline installer, the default on a stick of 32 GB or more, wrote the whole image straight onto the stick and kept none of it on the computer, so every create that erased the stick (the wizard always does) downloaded all of it again; its boot files went to images/setup and were downloaded again on every run, and a finished create removed that directory. A stopped create that goes on from its stick still streams, so the pieces on the stick are resumed rather than downloaded to the computer.
A stopped whole-image download already resumed by range; it now resumes too when the catalog entry lists more Macs for the same object, and says so. A stop between publishing the image and writing its receipt left an image that the next run refused; it is now checked against Apple's SHA-1 and kept. A receipt left beside an image removed by hand no longer blocks the download.
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.
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.
Both sides kept where both added: --hybrid-scanout beside --asus-mode,
--gpu-aspm, --tlbi-keep, --host-core, --tier2 and --pack-preload in the
options, their errors, parsing, tests and mount_interface's notes;
amd_discovery beside acpi_hardware; the stop's firmware picture beside
tier 2's line; set_hybrid_scanout beside gpu::link::choose; the
integrated GPU's memory plan beside the pack preload's bounds.
The translation store passes the GPU plan to pack_budget and the
background preload to translations::read. The firmware counts keep the
GPU branch's per-port sums, its base now 93 files, 188,594,997 bytes,
with build1c's rtw88 RTL8821C firmware (BUILT_BUNDLE 469/442/120/93).
build1c's preload tests give pack_budget and sizes_with_room the
GpuMemory::Own the GPU branch's signatures take.
Tyler's 52 commits (tylertms/Stela future/wifi-rtl8821ce, 1f077f635),
merged unchanged. 23 of them are the same patches future/wifi-mt7921
brought in (keeper notices, recovery, stepped SAE, the MT7925 fixes);
conflicts and how they were resolved:
- keeper.rs, keeper/tests.rs, lib.rs and the 10 conflicted MediaTek
files: fork/wifi-more's side, which already holds those patches and
the connac2 work built on them. Git's auto-merge also re-added this
branch's copies of the stepped-work imports to 13 MediaTek files;
those files are kept as fork/wifi-more has them.
- wifi/stepped.rs: this branch's earlier copy of the stepped work is
dropped; the RTL8822C and RTL8821C code uses stela_driver_base's,
which future/wifi-mt7921 moved it to (same API).
- realtek/identity.rs and chip.rs: Tyler's rtw_chip_info SPECS, with the
fork's RTL8852C as a fourth spec (rtw89, staged only) and its firmware
parsed with Ce::Never, the RTL8852B's with Ce::Prefer, as before.
source_mac.rs refuses the RTL8852C profile as it refuses the RTL8852B.
- probe.rs: take_diagnostic came in twice, the same commit on both
sides; one is kept.
- smbios.rs and the e1000e test: the fork's board name and chassis type
with Tyler's product SKU.
- pci/tests.rs: both sides' tests.
- recipes.rs: rtw88/rtw8821c_fw.bin (linux-firmware 59f9fc2, rtlwifi
licence) after the fork's RTL8852C image, its binding beside the
RTL8852C's; wireless_resource_tests checks REALTEK_WIFI[4] too.
- The firmware bundle grows by that one file: 93 files, 179.9 MiB
(126 files, 187.8 MiB with the AMD port); setup's and the loader's
bundle tests say so.
In the same commit, so that no tree between starts the RTL8821CE under the
RTL8822CE's claim name or hides it on the menu:
- wifi_claim: an Rtl8821c claim, named RTL8821CE in the boot log; it gets
the FLR it advertises (Linux's quirk_no_flr does not name it), else the
Secondary Bus Reset, else stays sealed.
- realtek_wifi's admit names the RTL8821CE by its IDs (10ec:b821, c821).
- wifi_starts and the startup menu's census count both IDs.
- unsupported.rs no longer says the RTL8821CE has no driver; RTL8822BE
stands in as the rtw88 chip that has none.
- NOTICE: the rtw88 RTL8821C, rtw_chip_info and RTL8822C robustness
sources Tyler's port follows.
The RTL8852CE's 855 driver tests and 19 probe tests pass with the same
names and results as fork/perf-1.
Eight files conflicted; every resolution keeps both sides.
- gpu_status.rs (9 hunks), host_memory.rs, engine/gpu/before.rs,
stela-driver-gpu lib.rs: gpu/intel's GPU-generic screen text (the GPU by
its name, the drivers this build has, shown_by_copy(gpu)) in the fork's
brand: Stambha and `stambha repair` where gpu/intel's words said Stela.
- storage.rs: gpu/intel's memory-plan census (plan_gpu_memory, gpu_census,
gpu_plan) and the fork's census_pci, drawn_by_other and Install caution.
drawn_by_other goes through H1's GpuStack::drawing (select, then draws),
built on gpu/intel's admits, and answers the adapter with its revision
too, for the HOST GPU line's market name.
- xe.rs: gpu/intel's admission (a GuC image and ANV opening the device);
host_firmware.rs: gpu/intel's MAX_IMAGES 512 beside the 1 MiB manifest
both sides have; bundle/tests.rs: gpu/intel's amdgpu, xe and i915
selection tests (the fork's Raphael-only family test is for recipes this
branch replaced).
Merged clean, fixed after the build: the fork's lost-device dump
(059d63ddf) read a render pipeline's bicubic variants as 3-tuples;
gpu/intel's f8b623bd7 gave them a topology class, so they are 4-tuples.
gpu/intel's other screen lines that said Stela (amd_metal's refusals,
selection's backend line) and gpu_step's and host_memory's expected text
now say Stambha.
The memory plan is as before (only its refusal's name changed). Interface
unchanged: bundle schema 4, OPTIONS_REVISION 13. Mesa patch 0043 (each
shader's program header and code) comes with fork/next.
The EFI partition is 200 MiB and an update writes the new loader beside the
old one before the old one goes. A 32 MiB log only ever grew, so a stick
made with the 54 MB NVIDIA loader kept it after updating to an 87.7 MB
loader with the AMD and Intel ports: 199 MiB less that loader and the log
leaves 83.3 MiB, under the 83.65 MiB the next update's copy needs, and that
update would fail at its loader (the old one kept).
boot_log_bytes now also answers a log that as it is would leave the next
update no room for a copy of the loader and LOADER_MARGIN: the longest of
16 MiB, 8 MiB and 4 MiB shorter than it that does, or nothing where none
does. keep_boot_log writes it with boot_log::relayout, as it makes a log
longer: the stream's newest bytes at their positions, the boot count, and
the records of the newest boots the shorter layout has room for, cut at a
line's end. It still goes through write_atomic before the loader, so a
stick that refuses the shorter file keeps the long one as it was and the
update goes on; the loader's own swap is unchanged. A log that leaves
room, and every NVIDIA-loader stick, keeps its log as before.
Tests: the rule's sizes (an NVIDIA stick's 32 MiB log updated to the 87.7
MB loader becomes 8 MiB; the next update keeps it and has room); an update
over a 32 MiB log of twenty boots in a folder standing in for the EFI
partition, which keeps the newest 7 MiB of its lines and the records of its
eight newest boots, then takes the loader; and a refused shorter file,
which leaves the long log byte for byte. A 4 MiB-boot-log stick, the
options revision and the image's interface are unchanged.
The EFI partition is 200 MiB and an update writes the new loader beside the
old one before the old one goes. A 32 MiB log only ever grew, so a stick
made with the 54 MB NVIDIA loader kept it after updating to an 87.7 MB
loader with the AMD and Intel ports: 199 MiB less that loader and the log
leaves 83.3 MiB, under the 83.65 MiB the next update's copy needs, and that
update would fail at its loader (the old one kept).
boot_log_bytes now also answers a log that as it is would leave the next
update no room for a copy of the loader and LOADER_MARGIN: the longest of
16 MiB, 8 MiB and 4 MiB shorter than it that does, or nothing where none
does. keep_boot_log writes it with boot_log::relayout, as it makes a log
longer: the stream's newest bytes at their positions, the boot count, and
the records of the newest boots the shorter layout has room for, cut at a
line's end. It still goes through write_atomic before the loader, so a
stick that refuses the shorter file keeps the long one as it was and the
update goes on; the loader's own swap is unchanged. A log that leaves
room, and every NVIDIA-loader stick, keeps its log as before.
Tests: the rule's sizes (an NVIDIA stick's 32 MiB log updated to the 87.7
MB loader becomes 8 MiB; the next update keeps it and has room); an update
over a 32 MiB log of twenty boots in a folder standing in for the EFI
partition, which keeps the newest 7 MiB of its lines and the records of its
eight newest boots, then takes the loader; and a refused shorter file,
which leaves the long log byte for byte. A 4 MiB-boot-log stick, the
options revision and the image's interface are unchanged.
(cherry picked from commit 00a787f467)
The [[bin]] is stambha, xtask dist prints target/release/stambha, and the
release workflow packages, version-checks and names stambha-v* archives;
its INSTALL notes say ./stambha. --version prints "Stambha 0.5.0" through
clap's display_name. A binary renamed back to stela still runs: clap reads
nothing from argv[0].
On-stick names stay as they were: the STELA volume label, \EFI\stela\,
stela.efi, stela.cfg, the per-user stela cache and Stela temp folder, the
archive comments, the boot log's "Stela boot log: N boots" header and the
mount interface's own message.
upstream/gpu/intel @164d332ee holds all of gpu/amd @eca683096: 181 commits
by Tyler Smith past main. Eleven files conflicted; five are upstream's own
(main against gpu/intel), six are the fork's.
Memory plan (upstream):
- host_memory.rs: sizes() takes gpu/intel's GpuPlan and plans through
plan(); main's code budget is applied to every estimate inside plan
(budgeted()), so the GPU's share, the apertures' tables and the fallback's
room are planned against the heap the boot runs with. Applying it after
plan() would shrink the heap under a fallback reserve sized for the
larger one. sizes_with_room() takes the GpuPlan; pack_budget()'s fallback
lack reads the budgeted heap too. The fork's with_window() is unchanged.
With GpuMemory::Own and no fallback the plan is main's exactly.
- host_memory/tests.rs (33 hunks): the base suite keeps main's pre-budget
staged() split over GpuMemory::Own; main's code-budget, small-host,
--code-window and pack-room tests and all of gpu/intel's GPU-plan tests
are kept. Five gpu/intel tables were measured before the budget and are
recomputed: heap and code move by the same bytes, the pool, guest and
GPU share do not; the fallback room grows on small hosts and every host
keeps its 768M bound; NVIDIA's 16 GiB numbers are main's own
(small_hosts_move_their_kept_code_into_the_window).
- system/memory.rs: one HOST MEMORY line with both sides' fields (window,
kept, gpu, aperture, pages, fallback); the page bound is taken after
--code-window; EngineMemory keeps kept_code and the GPU fields.
- system.rs: both destructured field sets and the handoff's union.
- engine/gpu/gate.rs: main's unmapping of a failed service's stack with
gpu/intel's Result and its refusal of a stack that did not run; the
services' GPU names (main) follow the spliced served list, so a
fallback's services keep their names.
- xtask/src/gpu/radv/metal.rs (merged clean, built broken): gpu/intel's
RADV host harness builds the Metal compiler Service without main's
compose_kernel (0ae834ade); it now resolves stela_metal_compose_kernel
from the hosted library as the linked path does.
The fork's (union, nothing dropped):
- handoff.rs: low_dma and wifi_saved beside gpu_share, gpu_pages,
gpu_pages_held and gpu_census.
- stela-cli/Cargo.toml: intel-port beside the trackpad's workspace-check.
- bundle.rs: gpu/intel's cfg-gated slice with the fork's Realtek
Bluetooth family.
- bundle/tests.rs, setup/firmware.rs, setup/tests.rs: BASE is the fork's
92 files and 188,455,525 bytes (upstream's 88 and the Realtek files), so
BUILT_BUNDLE is (468, 245.8) with both ports, (441, 240.3) AMD only,
(119, 185.2) Intel only and (92, 179.7) without.
Interface unchanged: bundle schema 4, OPTIONS_REVISION 13, NOR 0x800000,
SEP 0x10000, boot bundle REVISION 39 on both sides.
The install build is the RTL8852CE Wi-Fi branch (wifi/rtw8852c-m3, 999c0d361)
with upstream's GPT slot, TRIM and 32 MiB log fixes.
One conflict, in crates/stela-boot/src/engine/network.rs (HostNetwork::open):
the Wi-Fi adapter's address wait still runs through network_link::address,
so its connection keeper's failures are retried until the cut, and upstream's
DHCP and DNS notes (Stack::take_notes) are logged after that wait, before the
keeper's retry line. This matches wifi/rtw8852c-m3-test, without its
host-check-only `pub(crate) mod security`.