Commit Graph
8100 Commits
Author SHA1 Message Date
Garvit Surana 58e9ac2f7a fix(net): keep retrying a remote image range for about seven and a half minutes, its waits capped at 30 s, where a Wi-Fi extender that lost power ended an install at 97 % after a minute's seven attempts 2026-11-22 10:09:14 +00:00
Garvit Surana 951e92cf05 fix(boot): reserve a low DMA pool below 4 GiB and give drivers' 32-bit requests it when the heap has no room there, where an RTL8852CE on a passthrough domain found its rings out of memory because the firmware placed the whole heap above 4 GiB 2026-11-22 08:55:23 +00:00
Tyler Smith e090587dfd fix(wifi): take 32-bit DMA pages from below 4 GiB on a passthrough domain, as the DMA API bounces for a 32-bit mask, so Wi-Fi rings map without an IOMMU
(cherry picked from commit 589f3a8a9b)
2026-11-22 08:15:07 +00:00
Garvit Surana 82bd050991 fix(boot): call none of the firmware's variable services after its exit in a boot that only checks the disk chosen for macOS, where a stop there could still write its record to NVRAM 2026-11-21 20:24:15 +00:00
Garvit Surana 4a56ad302d fix(drivers): fill an NVMe read's data pages with a poison at each run, so a read the controller reports done without moving its data reads as 0xa5, where the bounce pool could hand it the pages a write had just filled and a read-back of a write the disk did not take passed 2026-11-21 20:24:15 +00:00
Garvit Surana 993b10b0c0 fix(install): stop before the primary GPT is written when a write of the backup changed any of the primary's blocks, and say a plan's blocks without overflow before it is checked, where only the backup was read back before the log said the primary was as it was, and a range of no blocks, one past the last LBA or a disk no GPT uses panicked the check 2026-11-21 20:24:15 +00:00
Garvit Surana 779d12b39f fix(boot): write neither the USB's chosen-disk record nor BootNext in a boot that only checks the disk chosen for macOS, where Check only would have replaced the record and could set BootNext before the firmware's exit 2026-11-21 19:43:00 +00:00
Garvit Surana 6a14fb719d fix(install): add macOS only in free space beside a disk's partitions, check the plan against both GPT copies as Stela's own driver reads them before anything is written, keep a valid protective MBR, read every write back before the next and offer Check only, which reads the disk, says every write and writes nothing, where one key in the picker deleted a partition or erased the disk, only LBA 0-1 were compared, nothing was read back until all five writes were made and 11 bytes of the MBR changed 2026-11-21 19:43:00 +00:00
Garvit Surana 2451a35253 feat(formats): give a GPT's entry blocks and the protective MBR test to its callers, so the disk plan can keep a disk's own MBR and check its writes against the GPT's blocks 2026-11-21 19:43:00 +00:00
Garvit Surana 7f67ae7f9e fix(drivers): refuse a discard of no ranges where a command meets its device, and an NVMe Deallocate of none or more than 256 ranges before it takes a tag, where an empty one went out as 256 ranges of a stale bounce page, which could free any block 2026-11-21 19:43:00 +00:00
Garvit Surana 7b33d729b8 fix(boot): show an install's system image as all sent once its ASR job is gone, count only the payload's offset as sent, keep the rows of a frame the screen refused pending for a later turn, count the lines under the running step as shown only once the console's text took them and clear them with a finished line, and read the counter for the progress only in an install, where one service turn that sent the last chunk and ended the job left the reading below 100% as waiting for data, the guest's out-of-band reads showed as the image's progress, a frame a busy console refused left the progress panel up until macOS drew again and a hand-back marked a kept console's progress lines as drawn 2026-11-21 19:38:28 +00:00
Garvit Surana 111d932c77 feat(boot): log an install's progress once a minute and at each new restore step, and show it on Stela's console when macOS has drawn no new frame on the firmware's screen for a minute, until its next frame takes the screen back whole, where the console gave the screen up for good at macOS's first frame and an install showed only Apple's progress bar, which could sit at 0% for hours 2026-11-21 18:59:56 +00:00
Garvit Surana c1f6f96a0e feat(boot-core): model an install's progress from its restore step and the system image's bytes, with a smoothed rate, the time left, a stall said as waiting, a once-a-minute INSTALL PROGRESS line, an INSTALL STAGE line per new step, the console's progress panel and when the console takes the screen from macOS's frames, where an install had no measure of how far it had come 2026-11-21 18:59:56 +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
Garvit Surana 999c0d361a fix(boot): drive a Wi-Fi adapter's wait for an address past its connection keeper's failures until its carrier wait and then the network stack's DHCP wait, now exported, have passed, as the host check drives its station, where the keeper's first failure, reaching the stack as the link's, ended the wait and gave the adapter up while the keeper's next attempt could still join 2026-11-21 16:34:10 +00:00
Garvit Surana 5cd5570a3e fix(boot): hide the configured Wi-Fi network's name in what a Wi-Fi adapter's link says, its errors and state lines, where the connection keeper's failures named it on the boot's NETWORK adapter failed line, its screen account and the guest network's lines 2026-11-21 16:28:40 +00:00
Garvit Surana 4e0ba3fe8c fix(drivers): print an RTL8852CE's MAC address in its running firmware's warning masked, its vendor half and last byte, as the engine prints an adapter's, where the normal boot's HOST WARNING line held the chip's whole address 2026-11-21 16:24:12 +00:00
Garvit Surana 50cd7ef64e feat(wifi): count an RTL8852CE station's data in its progress line, the MSDUs delivered, the protected frames left sealed or under a key ID with no key, those the station refused and the data frames sent, and drop KEYS_BEFORE_M3B, where a station with its keys and port open but no traffic could not tell an undecrypting key from silence and M3a's refusal outlived its last reader 2026-11-21 15:12:07 +00:00
Garvit Surana 1ef2420880 fix(wifi): drop an RTL8852CE's frames failing their FCS or ICV before the duplicate check, as mac80211's should_drop_frame drops them before any handler, where such a frame recorded its sequence control and the AP's good retry of it was dropped as a duplicate 2026-11-21 15:10:42 +00:00
Garvit Surana 8c1cc3fdb8 docs: name ps.c, regd.c, sar.c, sar.h and the mac80211 and cfg80211 sources among the rtw89 RTL8852C station's Linux sources in NOTICE, where they were unlisted 2026-11-21 14:48:24 +00:00
Garvit Surana bc26901d5f docs(wifi): describe the RTL8852CE station in the ax and realtek module docs, cite mac80211 at the donor commit, name ADDR_CAM_ENT_SHORT_SIZE, and state where a failed key install's rollback leaves Linux's, Stela's own key delete order, what a keeper's into_radio drops, that an AP's country element moves no TX power index and that the RTL8852CE alone waits 30 s for carrier, where the docs said it had no station, cited mac80211 7.2.12 or by name only and claimed rtw89's rollback and mac80211's delete order exactly 2026-11-21 14:48:24 +00:00
Garvit Surana b7b3e94650 feat(drivers): attach an RTL8852CE with a configured network as a Wi-Fi station NIC, where it was brought up, reported and left unsupported 2026-11-21 14:48:24 +00:00
Garvit Surana 221e45c933 fix(wifi): name an RTL8852CE bring-up's read of its firmware's TX power tables the "firmware elements" step, where a file without one failed as "tx power: tx power: firmware lacks …" 2026-11-21 14:48:24 +00:00
Garvit Surana bcffc0edff fix(wifi): reorder an RTL8852CE's protected frames before dropping the ones it cannot open, PN-check each frame as it is drained, and close its port while a replaced key's successor is not installed, as mac80211 and rtw89 do, where an undecryptable frame held its agreement's later frames up to 100 ms, a key install's reset outran the frames its own waits drained, and a refused rekey left the port open without its key 2026-11-21 13:46:05 +00:00
Garvit Surana c8b0dc527e feat(wifi): end an RTL8852CE's association when its firmware reports the AP's beacons lost and give it 30 s to bring carrier up, where a silent AP was never noticed and the link had a wired PHY's 10 s 2026-11-21 13:30:42 +00:00
Garvit Surana df753ca513 fix(wifi): keep an RTL8852CE's SAE exchange going through a deauthentication and take only SAE frames addressed to it, as mac80211 does, where a stray deauthentication ended a WPA3 join and another station's SAE frame failed the keeper 2026-11-21 13:15:29 +00:00
Garvit Surana 7a9620ed93 feat(wifi): authenticate an RTL8852CE to WPA3 networks with SAE through the keeper's external authentication and protect its management frames, where only WPA2-PSK could connect 2026-11-21 12:57:14 +00:00
Garvit Surana d91740c071 feat(wifi): accept an AP's RX Block Ack agreements on an RTL8852CE, program its BA CAM and reorder what they deliver as rtw89_ops_ampdu_action and rtw89_fw_h2c_ba_cam do, where every ADDBA went unanswered 2026-11-21 12:27:15 +00:00
Garvit Surana dcf9c2a2ca feat(wifi): run an RTL8852CE's station data under hardware CCMP with host packet numbers in the TX descriptor, its group key, its port and host-side PMF, where the handshake stopped at the first key 2026-11-21 11:28:02 +00:00
Garvit Surana 8b7028fe5a feat(wifi): install and remove an RTL8852C's CCMP keys in its security CAM and point its address CAM at them, waiting for the firmware's receipt and acknowledgement, as rtw89_cam_sec_key_install and rtw89_cam_sec_key_del do, where no key could reach the hardware 2026-11-21 09:36:53 +00:00
Garvit Surana f531e5446c feat(wifi): attach an RTL8852CE as a kept station from its firmware, regulatory database, network and entropy, where it could only be brought up and powered off 2026-11-21 00:23:06 +00:00
Garvit Surana 6257b03d2b feat(wifi): keep an RTL8852CE connected through the shared connection keeper as an rtw89 radio that scans, authenticates, associates and runs the EAPOL handshake over its chip, where the chip had no station 2026-11-21 00:03:03 +00:00
Garvit Surana acc955c6ee feat(wifi): drive a live RTL8852CE through a chip-neutral station interface for channels, scans, management and data frames, association and its TX reports, where its MAC could only be brought up and scanned 2026-11-20 23:17:19 +00:00
Garvit Surana 48ec81fea1 feat(wifi): associate an RTL8852C's station with its AP and leave it again through the CMAC table, join info, address CAM, rate adaptation, beacon filter, port and EDCA H2Cs as rtw89_core_sta_link_assoc and rtw89_core_sta_link_disconnect do, where the firmware only ever had an unassociated role 2026-11-20 22:30:04 +00:00
Garvit Surana 84b43ae1c4 feat(wifi): run an RTL8852C firmware scan over any list of channels on a live chip and restore its channel, RX filter, CAM, EDCCA, TSF sync and DIG afterwards as rtw89_hw_scan_complete does, where a scan ran once before the power-off 2026-11-20 21:21:27 +00:00
Garvit Surana 25faa2834f feat(wifi): keep an RTL8852CE powered after its bring-up as a live chip with its TX power set and stop it on request, where every bring-up ended in a power-off 2026-11-20 20:36:57 +00:00
Garvit Surana b4b9ab57e8 feat(wifi): deliver every frame an associated RTL8852C receives with its decryption status, read its beacon filter reports and wait for an H2C's receipt by sequence as rtw89_core_rx and rtw89_mac_c2h_bcn_fltr_rpt do, where only beacons and scan reports were kept 2026-11-20 19:36:55 +00:00
Garvit Surana 1cdf8cffdc feat(wifi): build an RTL8852C's TX WD body and info for management and data frames, with the CCMP packet number in the descriptor, as rtw89_core_fill_txdesc_v1 and rtw89_core_tx_update_sec_key do, where no frame but an H2C had a descriptor 2026-11-20 19:10:38 +00:00
Garvit Surana 49f3a4005c fix(wifi): refuse an RTL8852C TX reclaim while its data and management rings are stopped, restart every host index as soon as pre_init has cleared the hardware's, count an RXQ or RPQ buffer consumed once it has been delivered even when handing it back fails, and refuse a WD head without WD_INFO_EN, where a hardware index zeroed by deinit or a failed pre_init passed for TXBDs read, a failed pre_init left RX host indices that read the zeroed index as filled entries, a failed give-back redelivered a buffer and wp_info sat at byte 56 for a head whose info Linux would have left out 2026-11-20 18:48:10 +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 63e0a8a0ad test(engine): chain differentials take a stop in the machine's vector table as an offset from it, and two machines run them at once, where another machine's mappings moved the table and failed about half the parallel runs 2026-11-20 05:27:49 -05:00
Tyler Smith 0618505fd8 fix(engine): a native #SS, a non-canonical address with RBP or RSP as the base, is the failed check a #GP is, where the engine and the boot stopped the PE 2026-11-20 05:27:49 -05:00
Tyler Smith 8096d78e96 fix(compiler): a region's loop whose last branch is the body's last row ends its run before the terminal, which edges from before the loop reach too, where the terminal stored the loop's locals from hosts those paths never loaded 2026-11-20 05:27:49 -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 67eea600c3 feat(shadow): SHADOW flushed_loads counts the CR3 loads that flushed a stale view's PCID, the host's and the TTBR0 and transition thunks' 2026-11-20 01:31:50 -05:00
Tyler Smith 1df4a0df51 perf(engine): native TTBR0 switch entries survive TLBIs by address and SPRR permission writes, which leave every lookup context, where each forgot them and a canonical PE's TLBIs left it no native switch 2026-11-20 01:31:50 -05:00
Tyler Smith abb1164d55 feat(engine): PES SWITCH MISSES counts why each TTBR0 change took the engine path, as its thunk would have decided: no thunk, no entry, a forgotten one, another upper context, a set given away, another class, or none 2026-11-20 01:31:50 -05:00
Tyler Smith 5e0e869b32 perf(engine): a GENTER, GEXIT, SVC or ERET record holds in every root set of its class and loads the current set's root of its view, where each TTBR0 switch moved the set its record named and sent the next transition of each kind to the engine, about 140K exits a beat 2026-11-20 01:31:50 -05:00
Tyler Smith 9a459fab52 perf(shadow): root sets per TTBR0 and rights, each with a PCID per view, replace the SPRR banks and kept lower halves, so a TTBR0 switch loads roots whose TLB entries survive and native TTBR0 writes switch between them 2026-11-20 01:31:50 -05:00