Commit Graph
678 Commits
Author SHA1 Message Date
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
Garvit Surana 9e43a92c6a feat(wifi): identify an RTL8852CE and select its rtw89 firmware image by cut, where 10ec:c852 had no identity and rtw89 parsing always preferred a CE image 2026-11-18 15:39:36 +00:00
Tyler Smith e219bc50d9 fix(xtask): gpu export writes back a patch file the series holds byte for byte while its commit makes the same change, so fetch then export changes nothing, where it gave each contributor's patch the configured author and a UTC date and lost its signature and short blob names 2026-11-18 07:48:09 -05:00
Promethium 5006c150e8 fix(disk): keep every partition in its GPT entry when the installer rewrites a table, where partitions after a gap or after the new one moved to other entries and were renumbered 2026-11-18 03:40:28 -05:00
Tyler Smith ecaee19338 fix(xtask): a release job's build or cargo xtask dist stops when STELA_VRAM_CAP_MIB is set, where it built the test-only memory cap into an image that ships 2026-11-17 19:46:05 -05:00
Tyler Smith 108014fe73 test(gpu): a boot built with STELA_VRAM_CAP_MIB set holds the Metal device to that much device memory, its heaps reporting no more and its allocations running out of memory there, so a GPU with much memory takes the paths of one with little 2026-11-17 19:46:05 -05:00
Daniel Brooks d90a67c676 fix(gpu): fail only a submission amdgpu refuses short of losing the context and keep a lost RADV device unreleased, where any refusal lost the device for every client and its reopen closed RADV's file in the turn every client waits on 2026-11-17 01:22:57 -05:00
Daniel Brooks 428c3cad80 feat(boot): a radv image whose Metal device runs on RADV over the GPU amdgpu binds, built by cargo xtask boot build --radv 2026-11-17 01:22:57 -05:00
LBNM-ONE 1d60fb9d4b feat(gpu): claim an RX 9070 for amdgpu without a reset at claim, from an image built with xtask boot build --amdgpu 2026-11-17 01:22:57 -05:00
Tyler Smith a6f494d7e3 fix(xtask): gpu compilers reads a thin archive's members from their own files and leaves the system's libraries out of the archives it inspects, where Meson 1.10's thin archives and its implicit inputs on libm.a and libdl.a stopped the run after its tests passed 2026-11-16 17:10:30 -05:00
Tyler Smith dd76724be3 test(gpu): a Metal suite case times eight frames sampling a 3840x2160 10-bit 4:2:0 video surface and checks the frames after a CPU write see it 2026-11-16 16:56:32 -05:00
Tyler Smith fda4ece2a2 perf(gpu): a large sampled two-plane IOSurface texture is kept in device memory and copied from its rows only in command buffers that use it after its surface's seed changed or the GPU wrote it, where every sample was a bus read of guest RAM and a 4K video wallpaper cost Mission Control 10-19 ms a frame 2026-11-16 16:56:32 -05:00
Tyler Smith 566b72cb8a fix(gpu): RADV builds a stage given as NIR in VkPipelineShaderStageNirCreateInfoMESA, as Mesa's common pipelines do, from a clone that takes the device's options, and radv-test builds such a pipeline through ACO on each of its 9 devices, where RADV skipped the stage and compiled zero words of SPIR-V for every Metal pipeline 2026-11-16 16:32:13 -05:00
Tyler Smith 823ae097a7 fix(intel): ANV reads storage images without a format below Gfx12.5 through its shader conversion by default, so Tiger Lake to Raptor Lake give Metal read-write texture tier 2, and anv-test builds a pipeline from NIR through BRW per platform, where the conversion was on only for Android and the Metal device refused Gen12.0 (Mesa patch 0030) 2026-11-16 16:32:13 -05:00
Tyler Smith b8e95bdcf8 test(gpu): cargo xtask gpu anv-test says per platform which of the Metal device's Vulkan requirements ANV lacks, where it created only a plain device and never showed that the Metal device refuses ANV on every platform 2026-11-16 16:32:13 -05:00
Tyler Smith bc1d8fbdbc fix(gpu): a release build (STELA_RELEASE) fails with the reason when the host cannot build a Vulkan driver the image gives its GPUs, named by each driver's released flag, where it built an image without that driver as a developer's build does 2026-11-16 13:17:46 -05:00
Tyler Smith 0404e30d26 fix(mesa): crates/stela-mesa is a workspace of its own, so cargo xtask check formats it and its std crate in a git worktree nested in the main checkout, where Cargo took that checkout's root as their workspace and both format steps failed 2026-11-16 13:17:46 -05:00
Tyler Smith 865c48e476 fix(gpu): a host whose mesa_clc build fails, as on a pkg-config file naming libdrm headers that are not there, builds the image without the Vulkan drivers that need it and names the first compiler error once, where the failure stopped cargo xtask gpu nvk 2026-11-16 10:57:56 -05:00
Tyler Smith d970f08f43 test(gpu): cargo xtask gpu radv-test builds RADV for the host with the image's options and runs it over Mesa's amdgpu no-op DRM shim through Stela's libdrm stand-in and libdrm_amdgpu from its unchanged sources, creating the device, compiling an ACO compute pipeline and submitting one dispatch for nine AMD GPUs from GFX8 to GFX12, each amdgpu ioctl counted and checked against Stela's amdgpu 2026-11-16 10:41:48 -05:00
Tyler Smith fb806f922a feat(gpu): the image's Mesa build adds RADV with ACO as one more entry of its driver table when the build host has the tools, with libdrm_amdgpu built from libdrm's unchanged sources over the DRM calls compat/mesa/drm.c serves, RADV's entry and its clashing symbols under their own names, and RADV's own NIR options for metal::amd::DRIVER, with tests; AMD's stack still gives no Vulkan driver 2026-11-16 10:41:48 -05:00
Tyler Smith 31f72536fb refactor(gpu): the host tests of the image's Vulkan drivers share one module for Mesa's host configuration, the test program's compile and link, the host's libdrm and the kernel driver's ioctl table, which ANV's test now uses, so a second driver's test is its driver, shim, program and devices alone 2026-11-16 10:41:48 -05:00
Tyler Smith ed4f478bac test(gpu): cargo xtask gpu anv-test builds ANV for the host with the image's options and runs it over an xe no-op DRM shim through Stela's libdrm stand-in, creating the device, compiling a BRW compute pipeline and submitting one dispatch for six xe platforms, each xe ioctl checked against Stela's xe 2026-11-16 10:41:48 -05:00
Tyler Smith 0e2bcf964a feat(gpu): the image's Mesa build adds ANV with BRW beside NVK when the build host has what its build runs, mesa_clc and vtn_bindgen2 built here for the host and glslang, with ANV's loader entry compiled under its own name and checked against NVK's symbols, and says once why ANV is not built otherwise; Intel's stack names ANV's entry only in an image that holds it 2026-11-16 10:41:48 -05:00