Commit Graph
721 Commits
Author SHA1 Message Date
rqffael 6231e73524 xtask: prefer host pkgconf over pkg-config wrapper for mesa_clc (PR #38) 2026-11-30 15:44:21 +00:00
Garvit Surana c772346d32 fix(xtask): the hosted RADV corpus run's loader names no system-memory placement, where the merge of candidate 2's NVK system-memory reopen and test 7's first-submission check left its initializer without the field and xtask did not compile 2026-11-30 15:42:45 +00:00
Federico Bricca e81adba3c4 feat(hle): extend forward-branching functions in xtask and add oracle-verified bzero for 26B123 2026-11-30 13:06:34 +00:00
Federico Bricca 02a0910176 fix(hle): match __platform_* symbols, allow dst==src memmove in oracle, and support 16 KiB guest leaves 2026-11-30 13:06:33 +00:00
Garvit Surana 740703f15f feat(app): the macOS app shows itself as Stambha, with the pillar icon, in its name, window, menus, dialogs and report, and keeps its bundle identifier and executable, so an installed copy updates in place, where it still showed Stela and Stela's icon 2026-11-30 13:06:03 +00:00
Garvit Surana 10c2e62b5b test: declare test 4's unbound ignored tests in the oracle manifest (tlbi_keep_cost and the tier 2 bench as manual opt-in timings, the T602x DeviceTree checks as oracles of STELA_TEST_M2_DT_DIR), where xtask's manifest test failed on them 2026-11-27 13:41:09 +00:00
Garvit Surana 3168b12bba fix(gpu): make newBufferWithBytesNoCopy: of an address within a page over the pages around it, starting the buffer that far in (wire minor 1, NewImportedBufferAt), where its nil crashed mediaanalysisd every few minutes on dev64 and each crash ran ReportCrash
Espresso, which mediaanalysisd runs its models with when there is no
Neural Engine, makes 16-byte no-copy buffers 8 bytes into a page
(0x781827ff58 at 725.9 s of dev64's test 4 boot). The frontend wired
[bytes, bytes + 16 KiB), the gate refused ranges that are not whole
pages, Metal answered nil and mediaanalysisd crashed 0.5 s later. It
crashed five times in 30 minutes, ReportCrashService restarting eleven
times to report them.

The frontend now imports the whole pages around the bytes and asks for a
buffer offset bytes into them. The VkBuffer starts at the driver's buffer
alignment below the bytes and the Metal buffer where they are: commands
take the start as the buffer's offset in its VkBuffer, as they do for
upload suballocations, and its address is the bytes'. Textures over such
a buffer are refused, as their rows are addressed from the VkBuffer's
start. A page-aligned address imports as before.
2026-11-27 11:51:04 +00:00
Garvit Surana 5318af1912 merge fork/build1c @b3a83b2c6 (tester build 1) into the experimental GPU branch, with fork/hybrid-scanout's --hybrid-scanout
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.
2026-11-23 17:24:19 +00:00
Garvit Surana a15851c1bf test(hle): opt-in oracle of the real macOS platform functions against their natives, and their per-call timing by size, from the private extract STELA_HLE_FUNCTIONS names, where no test ran a native against Apple's own function 2026-11-23 11:38:32 +00:00
Garvit Surana fee7ea1d59 feat(hle): generate function signatures from a dyld shared cache with cargo xtask hle-signatures, its report naming each candidate symbol's verdict, where signatures could only be written by hand
The phase-0 reader gains the bytes of the functions a cache's images
name, to the next function start; the generator trims padding, takes the
first ret as the exit and runs the engine's own Signature::of. --out
writes a table of hashes only; --extract writes the functions' bytes for
the real-bytes oracle and refuses a directory inside the repository.
2026-11-23 11:38:32 +00:00
Garvit Surana 15e62270ae merge fork/next @21e10c4a1 (tester build 1) into the experimental GPU branch: the Stambha brand, X1's NVK-only fault dump, Bluetooth, the Wi-Fi menu, gate and claim, the hardware guards and Install caution, laptop-auto and the review fixes, beside amdgpu, xe and i915
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.
2026-11-23 01:50:48 +00:00
Garvit Surana e7b14d5887 feat(cli): name the setup tool stambha, with Stambha in its help, --version, examples, prompts, progress and errors, where every one said stela or Stela
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.
2026-11-22 22:26:46 +00:00
Garvit Surana d026fd36fd merge fork/next @e6e0836e0 into the experimental GPU branch: the nine upstream PRs (#222 #223 #226 #244 #245 #246 #247 #248 #249) beside amdgpu, xe and i915
fork/next moved past fd7b002b6 by its merge of fork/upstream-prs: DesignWare
I2C early STOP, PS/2 ACK before CTR, the fixed-MTRR VGA hole, Raptor Lake
HDA, the TLB mailbox and ITLB fixes, a 1024-entry jump cache and faster
block translation. No file it touches is one gpu/intel changes; the merge
is clean. Interface unchanged (schema 4, OPTIONS_REVISION 13).
2026-11-22 22:07:30 +00:00
Garvit Surana 5175697fd6 merge upstream/gpu/intel (with gpu/amd) into the experimental GPU branch: amdgpu+RADV and xe/i915+ANV beside NVK, the memory plan holding main's code budget, the pack's room and --code-window together with the integrated-GPU share, the display reserve and the fallback room
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.
2026-11-22 21:01:46 +00:00
Garvit Surana e6e0836e03 merge fork/upstream-prs: nine upstream PRs (#222 #223 #226 #244 #245 #246 #247 #248 #249): DesignWare I2C early STOP, PS/2 ACK before CTR, fixed-MTRR VGA hole, Raptor Lake HDA, TLB mailbox and ITLB fixes, a 1024-entry jump cache, faster block translation 2026-11-22 20:36:32 +00:00
Garvit Surana fd7b002b6d test(xtask): bind the AMX cost table's opt-in test to the oracle manifest where it now lives, costs in crates/stela-compiler/tests/amx_native/costs.rs, with the canonical manual: opt-in reason, where the manifest still named native_and_model_costs in src/amx/native.rs, which fork/amx removed, and manifest_covers_every_ignored_test_in_tracked_sources failed 2026-11-22 19:53:38 +00:00
Garvit Surana 8cd2398dbe merge fork/amx: AMX native kernels for most register-op forms (vecfp, matfp, mac16, fma16/32/64 modes), --amx-native on|off|off:OPS to leave all or named ops to the reference model, per-form counts under --profile 2026-11-22 19:53:27 +00:00
Garvit Surana 0e458bf4e7 test(compiler): opt-in checks of every 32-bit word at five PCs that the direct integer path goes past no decoder of the lift or of the block parse that would take the word, where upstream PR #247's own tests sample a million words and its full check was never committed
every_direct_word_skips_every_decoder_before_the_integer_one and
every_direct_word_skips_the_block_decoders run on all host threads in
release, at PCs 0, 0x1000, a user and a kernel address and the highest
word, where branch and literal targets overflow. They are the proof to
rerun when a decoder is added before the integer one or to the parse.
2026-11-22 19:52:01 +00:00
Garvit Surana 5a81c900fd test(xtask): the oracle manifest names stela-engine's run_loop_costs, upstream PR #246's opt-in run loop timing, where manifest_covers_every_ignored_test_in_tracked_sources failed on its unbound #[ignore] 2026-11-22 19:03:22 +00:00
Garvit Surana 75104de5a6 fix(engine): --amx-native off leaves every AMX register operation to the reference model, copies and constants included, in blocks through an engine routine that runs the model alone (counted by form under --profile) and in the service, which skips the host paths, where the model tier's paths still completed fma32/fma64/fma16 modes 3, 5, 6 and 7 on the host and the AMX NATIVE off line was false
The service now also counts the register operations its host paths
complete, which it left out of amx_operations, and every PE fills its
published AMX form counts only under step timing, which alone counts
them, instead of copying 3 KiB twice at each run slice. The ties test
asserts that an F16C path ran, and the AMX native tests' module and the
check gate say to set STELA_AMX_OPTIONAL=avx512f on a host without
AVX-512.

Translator id: unchanged (no compiler source and no engine translation
input changed; the code blocks hold is the same whichever routine the
cell names).
2026-11-22 17:09:17 +00:00
Garvit Surana 13691d06db fix(xtask): refuse code that runs past the address space with an error, leave out a section that does, skip a cache missing a subcache or a file that cannot be read with a warning, warn of a dyld cache file with a dot and no main file beside it and read one named itself as a main file, where the symbolizer's sums could panic, one missing subcache or broken file aborted the run and a renamed main cache was skipped silently 2026-11-21 22:29:18 +00:00
Garvit Surana f1899c639a test(xtask): read a synthetic dyld cache of the shipping split layout, its main file naming a .01 that holds the image's __LINKEDIT and a .symbols by UUID, and have the real-cache oracle check an address inside each function, function starts for nearly every image and each start inside its image's code, where only the old one-file layout ever ran and the oracle named exact symbol addresses alone 2026-11-21 22:22:40 +00:00
Garvit Surana 3fcfd11de3 fix(xtask): name code outside an image's __text by its section, so stubs read as __auth_stubs or __objc_stubs, where the symbolizer gave them the name of the last __text function before them 2026-11-21 22:18:15 +00:00
Garvit Surana b86fd8f0c5 fix(xtask): keep the file each page key was found in and name its function only from that file's innermost image range, reading a file once and no dSYM, where the symbolizer searched one list of every file's ranges by address and named another kernel's, kext's or cache's symbol, or no image where ranges nested 2026-11-21 22:15:21 +00:00
Garvit Surana 9d98f9c94b fix(profile): trim the PES PC total at each beat to the blocks with the most cycles, folding the rest into other, and have symbolize warn when other holds a tenth of the cycles, where the total kept the first 65536 blocks it saw forever and a later workload's code landed only in the other that symbolize's default reads 2026-11-21 22:11:13 +00:00
Garvit Surana 0f8cbe8975 fix(xtask): skip a PES PC level line without its group's header, or a broken line, with a warning that names it, and apply a level line only whole, where one such line in a wrapped, dropped or cut log aborted the whole symbolize run 2026-11-21 22:06:46 +00:00
Garvit Surana ac070b749d fix(profile): print PES PC cycles whole and show them in the symbolizer's table as millions with a decimal, where each block's cycles were cut to whole millions, a one-sample block read 16M for 16.78M and --beats summed every cut 2026-11-21 22:04:11 +00:00
Garvit Surana 912aa6aed6 feat(xtask): add cargo xtask symbolize, which hashes the guest's dyld shared cache or Mach-O pages as the engine keys them and ranks a log's PES PC blocks by function and image, with an opt-in oracle test on a real cache, where no tool in the tree named a sampled guest PC 2026-11-21 21:33:19 +00:00
Garvit Surana a885a57b17 Merge upstream/main 140ffaf71 into fork/install for the macOS install build
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`.
2026-11-21 18:25:36 +00:00
Tyler Smith 140ffaf716 fix(gpu): the StelaGPU kext sets the length of a file it rewrites, since vnode_open leaves O_TRUNC to the open syscall and a shorter plugin kept the old one's tail, and a failed install stops naming its step and errno 2026-11-20 07:27:37 -05:00
Tyler Smith d21641a894 test(engine): a manual differential runs sampled regions of real kernel, TXM, SPTM and shared cache images against their linked blocks, behind guards as far as real code's accesses reach 2026-11-20 05:27:41 -05:00
Tyler Smith 6a385977bb test(engine): the pack, lock, reinstall and TTBR0 switch benches and replays are manual opt-in tests the oracle manifest lists 2026-11-20 01:31:50 -05:00
Tyler Smith 7c59518e53 test(engine): the region timing test is opt-in and the oracle manifest lists it 2026-11-19 19:45:23 -05:00
Tyler Smith 42a2b83123 test(xtask): the manifest names the ahead model test and lists the compositor replay bench once 2026-11-19 18:31:55 -05:00
Tyler Smith 3805b53f16 perf(gpu): a kernel's imageblock slice write that its thread makes last before a threadgroup barrier or the kernel's end is written by every thread there, where the one calling thread wrote each slice's pixels in a loop while its group waited, about 2 ms a dispatch in Core Animation's blur kernels 2026-11-19 17:37:03 -05:00
Tyler Smith 3694e2bd8e test(gpu): metal-suite cases hold every reader of a rendered two-plane extended-range surface and of a large sampled two-plane surface to its last write: CPU locks, readback, a second texture, another process, and an argument buffer with a residency set after CPU and GPU writes 2026-11-19 17:37:03 -05:00
Tyler Smith 16e14f7771 test(gpu): the compositor replay bench is a manual opt-in test the oracle manifest lists 2026-11-19 17:37:03 -05:00
Garvit Surana 19cf59c45a feat(wifi): program an RTL8852C's TX power by rate, offsets, shape, regulatory limits and SAR ceiling for a 20 MHz channel as rtw8852c_set_txpwr does, where its TX power registers kept their reset values 2026-11-19 19:49:49 +00:00
Garvit Surana 1e5c159ae4 feat(wifi): choose an RTL8852C's TX power regulatory index from its efuse country, then the network's, through the firmware's REGD map as rtw89_regd_setup does, where no regulatory index existed 2026-11-19 19:35:33 +00:00
Garvit Surana 605285b515 feat(wifi): read an RTL8852C firmware's TX power by-rate, limit, RU limit, TX shape and regulatory elements for its RFE type as rtw89_fw_recognize_txpwr_from_elm and rtw89_load_rfe_data_from_fw do, where those elements were walked past 2026-11-19 19:28:38 +00:00
Garvit Surana cd5c0b67b2 feat(wifi): program an RTL8852C's baseband for a 20 MHz channel with its firmware gain tables, efuse RX gain offsets, CCK filters, spur notches and TX path table as rtw8852c_set_channel_bb does, and run the whole of rtw89_set_channel, where its baseband kept the table defaults 2026-11-19 16:31:00 +00:00
Tyler Smith 66b673ccb1 test(xtask): the manifest names the wave's nine measurement tests 2026-11-19 11:26:12 -05:00
Garvit Surana e5e3a1ead5 feat(wifi): enable an RTL8852C's IQK/DPK clocks, wait for its NCTL block and load its firmware NCTL table as rtw89_phy_init_rf_nctl does, where calibration had no NCTL program 2026-11-19 13:26:36 +00:00
Garvit Surana befc02c033 feat(drivers): load an RTL8852CE's firmware PHY tables, send its RF register pages and grant its RF to Wi-Fi after the MAC init and report what was applied, where the bring-up stopped at the firmware's OFLD_CFG acknowledgement 2026-11-19 12:33:58 +00:00
Garvit Surana 316a869e0f feat(wifi): load an RTL8852C's firmware radio tables path B first and send their RF register pages to the firmware as rtw89_phy_init_rf_reg and rtw89_fw_h2c_rf_reg do, where its RF ran on reset values 2026-11-19 11:42:29 +00:00
Garvit Surana 080526faea feat(wifi): reset an RTL8852C's BB and RF, load its firmware BB table, set its TX power units, decode its BB gain table and reset its BB as rtw89_chip_reset_bb_rf and rtw89_phy_init_bb_reg do, where its BB ran on reset values 2026-11-19 11:29:44 +00:00
Garvit Surana 789b532c2b feat(wifi): select an rtw89 firmware table's branch by RFE type and cut and walk its IF/ELIF/ELSE/END bodies as rtw89_phy_sel_headline and rtw89_phy_init_reg do, where the element tables were found but never applied 2026-11-19 10:58:01 +00:00
Garvit Surana 02033e0c52 feat(wifi): find the BB, BB gain, radio and NCTL tables an rtw89 firmware file carries after its container, as rtw89_fw_recognize_elements does, where its trailing elements were held unread 2026-11-19 06:44:28 +00:00
Tyler Smith 9fe873d590 fix(gpu): every GPU the NVIDIA, AMD and Intel stacks admit has its market name, checked by a test that walks each driver's table: AMD's processor GPUs and devices named only by revision get AMD's names, laptop GeForce RTX 30 and later are Laptop GPUs, and engineering samples, reserved IDs and chip codes no longer pass for names 2026-11-18 16:51:39 -05:00
Tyler Smith 38b81a8458 fix(gpu): ANV's device serves only once an empty first submission signals within 2 s, at the open and after a loss, as RADV's does, while ANV's lost devices are still released, where a GPU xe or i915 left with engines that do not run, or that hung again after their recovery, took every client's work until their job timeout 2026-11-18 12:26:51 -05:00