Commit Graph
33 Commits
Author SHA1 Message Date
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 c716c7c32d merge future/wifi-rtl8821ce: Tyler Smith's RTL8821CE station on rtw88's rtw_chip_info table and his RTL8822CE robustness fixes (chip-reset recovery, ASPM and deep power save quirks, stepped calibration, receive and mailbox fixes), with the pinned rtw8821c_fw.bin
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.
2026-11-23 11:49:00 +00:00
Garvit Surana c5822abb0e feat(drivers): start MT7921 and MT7922 Wi-Fi through the same reset claim as MT7925, offer them on the startup menu and name their Linux sources in NOTICE, where the probe still refused every MediaTek chip but the MT7925
- wifi_claim: Mt7921 and Mt7922 claims; every MT7922 and MT7925 ID is
  denied its Function Level Reset (Linux quirk_no_flr names 14c3:0616 and
  14c3:7925) and gets the Secondary Bus Reset or stays sealed.
- claim_quiesced: the admit check names the chip it claims for, so the
  MediaTek admit reads the function's IDs once and refuses an MT7920 or
  any other unknown MediaTek ID before its reset.
- wifi_starts: MT7921 (14c3:7961, 0608), MT7922 (14c3:7922, 0616 and
  ITTIM's 0b48:7922) and MT7925 (7925, 0717), so the startup menu's Wi-Fi
  line shows on their PCs.
- Located forwards take_diagnostic, so the MediaTek and Intel keepers'
  notices reach the adapter.
- The MediaTek attach errors and the adapter's driver name no longer say
  MT7925 alone.
- NOTICE: the mt7921 and connac2 mt76 sources Tyler's port follows.
2026-11-23 11:02:19 +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 06aa8c1ea4 merge fork/trackpad: an opt-in emulated Magic Trackpad 2 fed whole precision-touchpad frames (--trackpad mt2|builtin with --input), options revision kept at 13 2026-11-22 17:52:57 +00:00
Garvit Surana 3626235b46 merge fork/bt-rtl8852c: RTL8852CE USB Bluetooth bring-up (identity, EPATCH v2/v1, pinned rtl_bt firmware, 0xfc66 drop) and the --host-check --bluetooth-check / --keep-lines check 2026-11-22 17:45:10 +00:00
Garvit Surana ac0a776845 fix(soc): build the emulated Magic Trackpad 2's device, descriptors and report encoder, which follow GPL-2.0-only VoodooInput material, only with stela-soc's new trackpad feature, which stela.efi alone enables, keep its identity, cabling, serial, trace and counters always built under GPL-2.0-or-later, refuse a trackpad's cabling without the feature and fail the CLI's build if its stela-soc carries one, and mark ptp_frames GPL-2.0-or-later as hid-multitouch is, where the GPL-3.0-or-later stela CLI linked the GPL-2.0-only model through its machine mount 2026-11-22 00:07:00 +00:00
Garvit Surana f5dab8128c docs: name the Linux sources of the power button, ASUS WMI and ACPI video brightness ports in NOTICE, and the revision the ALC256 bind's parser and init were read at, where they were unlisted 2026-11-21 23:10:34 +00:00
Garvit Surana a19c6d37e1 feat(usb): add an emulated Magic Trackpad 2 function, 05AC:0265 or VoodooInput's 05AC:0281 at full speed with its multitouch interface 1 on endpoint 0x83, VoodooInput's report descriptors and answers to Apple's multitouch feature requests, the 0x02 mode switch logged and never waited for, every other request refused and reported once, and host frames queued to 32 and encoded at the guest's IN, where macOS had no multitouch device to drive 2026-11-21 23:08:36 +00:00
Garvit Surana e577b8ba0f feat(usb): encode Magic Trackpad 2 multitouch reports from host touch frames, at the MT2's own resolution with the pad centred, each contact a rotating identifier from Start to one Stop, palms typed as palms, the lowest finger the thumb while clicking, pressure 120 with the button down and the header alone after the last lift, as Linux hid-magicmouse reads them back byte for byte, where the guest had no report to carry a touchpad's fingers in 2026-11-21 23:04:22 +00:00
Garvit Surana 39c937b8b5 feat(input): emit whole precision-touchpad frames on request, every contact in micrometres of the pad's exact surface with palms kept and each frame timed by the pad's scan clock, unwrapped and resynchronized after a second's gap as hid-multitouch does, where a precision touchpad reached the guest only as one finger's motion or two fingers' wheel, dropping palms and three or more fingers 2026-11-21 22:55:00 +00:00
Garvit Surana 8acff80a87 docs(bluetooth): name the RTL8852CU identity, its v2 then v1 image, the 0xfc66 drop and the passive LE scan in the USB Bluetooth and Realtek module docs and their Linux sources in NOTICE, and say an RTL8852CU's wideband voice waits for its ALT 6 continuous output, where the docs named only the RTL8761BU, RTL8822B and EPATCH v1 2026-11-21 22:33:31 +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 45d07be178 docs: describe the rtw89 RTL8852C entry in NOTICE as covering its calibration, channel, station interface and firmware passive scan, where it named only the slice through the coex Wi-Fi grant 2026-11-19 18:28:19 +00:00
Garvit Surana b336a5b2ba feat(wifi): run an RTL8852C's firmware passive scan over 38 channels and keep the beacons and probe responses it hears as networks with SSID, BSSID, channel and RSSI as rtw89_hw_scan_start, rtw89_hw_scan_offload and rtw89_mac_c2h_scanofld_rsp do, where the radio never received a frame 2026-11-19 17:51:08 +00:00
Garvit Surana 9ad2079257 feat(wifi): build the firmware log, BA CAM, macid pause, role, join, address CAM, CMAC table and scan-offload H2Cs byte for byte as rtw89's fw.c encoders do, where only OFLD_CFG and RF register pages could be built 2026-11-19 16:46:51 +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
Garvit Surana 566100d72c docs: name chan.c among the rtw89 RTL8852C bring-up's Linux sources in NOTICE, where it was unlisted 2026-11-19 15:46:25 +00:00
Garvit Surana 5818dcac4d docs: name rtw8852c_rfk.c and rtw8852c_rfk_table.c among the rtw89 RTL8852C bring-up's Linux sources in NOTICE, where they were unlisted 2026-11-19 14:27:16 +00:00
Garvit Surana 55b92789b9 docs: describe the rtw89 RTL8852C entry in NOTICE as covering its BB/RF tables, RF register pages and coex Wi-Fi grant, where it named only the MAC init and H2C/C2H channel slice 2026-11-19 12:56:09 +00:00
Garvit Surana 2bb14f75ca docs: name phy.c, phy.h, coex.c, coex.h and rtw8852c_table.c among the rtw89 RTL8852C bring-up's Linux sources in NOTICE, where they were unlisted 2026-11-19 12:35:08 +00:00
Garvit Surana 02db9870b0 docs: describe the rtw89 RTL8852C entry in NOTICE as covering MAC init and the H2C/C2H channel, where it named only the power, efuse, DMA and firmware download slice 2026-11-19 09:21:40 +00:00
Garvit Surana 78f1ebda38 docs: name rtw8852ce.c, txrx.h and iopoll.h among the rtw89 RTL8852C bring-up's Linux sources in NOTICE, where they were unlisted 2026-11-18 20:28:26 +00:00
Garvit Surana 5bfe7fa571 docs: name the rtw89 RTL8852C bring-up's Linux sources in NOTICE, where they were unlisted 2026-11-18 18:31:46 +00:00
Tyler Smith c7c2d2c33b feat(gpu): a display controller has its market name by PCI ID and revision, generated by cargo xtask gpu names from the pinned pci.ids, libdrm amdgpu.ids and Mesa Intel tables, else its maker and IDs 2026-11-18 12:22:08 -05:00
Tyler Smith b5b0ac3bb1 feat(net): port the Linux alx driver for Qualcomm Atheros AR816x/AR817x and Killer E2200/E2400/E2500 Ethernet 2026-11-11 03:27:26 -05:00
Tyler Smith 120498d5ed fix(license): label the NVMe, AHCI, TSC synchronization and ACPI resource code with the licenses and notices of the Linux files it follows 2026-11-11 02:18:51 -05:00
Tyler Smith 78a5b3ab7d fix(license): mark the Linux compatibility files that adapt GPL-2.0-only kernel code as GPL-2.0-only and keep the kernel files' copyright notices 2026-11-11 02:18:51 -05:00
Tyler Smith dd1652ef06 docs(license): list the ported sources and the notices kept in full in NOTICE 2026-11-11 05:17:32 +00:00
Tyler Smith d61d363db2 docs(license): distribute the stela CLI under GPL-3.0-or-later now that it links no GPL-2.0-only code 2026-11-11 04:37:11 +00:00
Tyler Smith ddce0748c3 docs(license): name the Khronos Vulkan headers and the hci_bcm4377 and btmtk license choices accurately in NOTICE 2026-11-11 04:37:05 +00:00
Tyler Smith c910dbf80e docs(license): state in NOTICE that the stela.efi the CLI carries is a separate program under its own license 2026-11-11 04:37:05 +00:00
Tyler Smith 712bb6c3cf chore(license): license Stela's own code under GPL-2.0-or-later and list third-party components in NOTICE 2026-11-11 04:11:23 +00:00