Commit Graph
8845 Commits
Author SHA1 Message Date
rqffael 92cf419fc7 wifi: defer LAR country-update notifications during Intel scan and PHY setup (PR #48) 2026-11-30 15:46:26 +00:00
rqffael f2de37cb77 wifi: adopt matching firmware MCC and handle world-domain MCC_RESP_ILLEGAL (PR #48) 2026-11-30 15:46:26 +00:00
rqffael f0c7654b9c wifi: allow AX210 and newer Intel families through setup and management queue (PR #48) 2026-11-30 15:46:26 +00:00
rqffael 64e3ad81e1 wifi: report iwlwifi bring-up phase and error via Link::diagnostic (PR #48) 2026-11-30 15:46:26 +00:00
rqffael 6c0beaed81 wifi: prefetch Intel ACPI BIOS tables during probe inside ACPICA continuation (PR #48) 2026-11-30 15:46:26 +00:00
rqffael e5ee1b07b0 wifi: wait for Intel NVM MAC address during attach before returning Link (PR #48) 2026-11-30 15:46:26 +00:00
rqffael dca606762a wifi: match Linux iwl_trans_set_bit without readback for APM link workaround CSRs (PR #48) 2026-11-30 15:46:26 +00:00
Garvit Surana d719b795d4 feat(boot): the GPU's own Linux backlight takes the brightness keys, and a dark panel is raised at the display's start, only with --panel-backlight, off unless given, where PR #40 sent every laptop's keys to the first Linux raw backlight, nouveau's among them, ahead of ACPI's _BCM 2026-11-30 15:46:13 +00:00
Federico Bricca cb10003d43 feat(gpu): drive native Linux DRM panel backlight from hardware brightness keys (PR #40) 2026-11-30 15:44:46 +00:00
rqffael 6231e73524 xtask: prefer host pkgconf over pkg-config wrapper for mesa_clc (PR #38) 2026-11-30 15:44:21 +00:00
rqffael 56f2f00aa2 metal: cap ANV's bindless sampler descriptors at 4096, twice Metal tier 2's 2048 and past NVK's 4000, where ANV's 65,536 kept a pool most of which no app reaches in the integrated GPU's share; other drivers keep their own counts (PR #38) 2026-11-30 15:44:21 +00:00
Garvit Surana ac39fbf462 fix(e1000e): the I219's register dump names how many sent frames the MAC wrote back with a collision or underrun flag, for the SPT/CNP I219s whose guest DHCP goes unanswered (italiano, Diamond Master) 2026-11-30 15:44:21 +00:00
Garvit Surana ba4a30e67b test(cli): the built bundle holds 471 files and 246.6 MiB, as the AX211 Bluetooth firmware and its DDC (2 files, 721,061 bytes) add to every build's count, where four setup tests still expected 469 files and 245.9 MiB 2026-11-30 15:42:45 +00:00
Garvit Surana d7cd4c3c1c test(cli): a stick that refuses the shorter log file holds the NVIDIA loader its free room was counted without, so the larger loader's update shrinks the 32 MiB log to 8 MiB and the refusal is what keeps it, where with no loader on the stick the log was kept before the write and the test failed wherever the folder really refuses writes (CI, not root) 2026-11-30 15:42:45 +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
BluePhi09 f7e7b755d7 fix(boot): the PC's devices start sooner, as a PC with no software-managed USB4 host no longer waits 700 ms for USB4 domains to go quiet and an xHCI's connected root ports are enumerated before its empty ones wait out the connect settle time, where the boot stick waited 400 ms more than its debounce; the boot log names USB Bluetooth firmware loads and the ACPI platform devices, whose time it charged to the last controller started, and the startup choices' help text says a key pressed right away opens them too 2026-11-30 14:10:52 +00:00
MGKFN 02e1291365 fix(boot): the performance summary names the balanced preference and the boot processor's new minimum
Review fixes for --cpu-balanced: the HOST PERFORMANCE line said
preference=performance even when the Intel requests took the balanced
preference, and the boot processor's second request added its new
minimum to the range beside its first, so requested_minimum read
lowest-highest. request_again now replaces that processor's minimum
(Tally::replace_minimum) without counting it again, while it is the only
processor recorded; the line names preference=balanced under
INTEL_BALANCED where a processor took an HWP request.

(PR #53)
2026-11-30 13:31:38 +00:00
MGKFN feebe6223a feat(boot): --cpu-balanced lets Intel cores slow down, where a power-limited laptop starves its GPU
On a 15 W Intel laptop (i5-1235U, Iris Xe) every core is held at its
highest HWP level, so the package sits at PL1 and the integrated GPU
runs at 100 MHz. WindowServer then fills its GPU memory budget and is
killed during Setup Assistant (as in #35).

--cpu-balanced keeps each core's highest level but sets the minimum to
its lowest and the energy preference to 0x80 (balanced), so idle cores
drop their clocks and the package budget reaches the GPU. The boot
processor asks again once the options are read; the APs take the
balanced request from the start. Off unless given.

(PR #53)
2026-11-30 13:31:38 +00:00
Garvit Surana d80d69f760 release: Stambha 0.6.2 2026-11-30 13:24:03 +00:00
Garvit Surana 3089d6d843 fix(gpu): a posted call no Linux task has taken is withdrawn after 400 ms, still under XNU's half second and past the 200 ms a held fence wait keeps, where at 300 ms the boot processor's GPU pump, held 350 to 364 ms on a UHD 630 and an Iris Xe, had GPU call 0x40086409 withdrawn with ETIMEDOUT and WindowServer crashed after the Language Chooser (antuneddu and rqffael, issue #52) 2026-11-30 13:21:55 +00:00
Garvit Surana 6c7d35c14c fix(soc): the stop for a USB-C port controller image that neither the boot bundle nor the board's flash holds says the flash is in the machine-state area a copied disk or a reset of it lacks, that macOS would have no keyboard, pointer, USB network or Bluetooth without it, and that Install macOS writes it again and erases that disk, where it said only that an install fills the flash and okakatel228's copied disk stopped at every boot with no way forward 2026-11-30 13:18:14 +00:00
Garvit Surana 611cd2cfec fix(memory): the memory plan leaves out an NVIDIA GPU older than Turing that the firmware catalog has no chip for, which the claim refuses, so the integrated GPU beside it is planned as the GPU that draws with its full share of RAM, where an i5-1035G1 laptop's UHD Graphics drew beside a refused GeForce MX330 as its fallback, budgeted to 2248M of heap pages with 1605M for Metal, ran out at 1080p and WindowServer died (android_artisan) 2026-11-30 13:13:04 +00:00
rqffael 8243769072 bluetooth: accept Intel WRITE_DDC completion payload matching Linux btintel_load_ddc_config 2026-11-30 13:06:39 +00:00
rqffael c8d5b785f1 bluetooth: accept Intel bootup notification payload matching Linux btintel_bootup 2026-11-30 13:06:39 +00:00
rqffael b38276efcc firmware: bundle Intel TLV Bluetooth firmware for AX211 (ibt-0040-0041) 2026-11-30 13:06:39 +00:00
rqffael a21723dd95 bluetooth: allow Intel TLV bootloaders to omit optional CNVR_BT (0x13), DEV_REV_ID (0x16), and Debug Lock (0x2c) 2026-11-30 13:06:39 +00:00
Federico Bricca d11c88cf51 feat(hle): report PES HLE summary on shutdown when --hle is active 2026-11-30 13:06:34 +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 866ea1d327 feat(hle): add oracle-verified __platform_memmove signature for macOS 26B123 2026-11-30 13:06:33 +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
Federico Bricca 5905646972 fix(acpi): enter loader root before clock/dispatch checks in call_owned so guest-loop ACPI polling works 2026-11-30 13:06:33 +00:00
Federico Bricca 4ba29ab465 fix(ioapic): skip Unit-claimed pins during verify_contained so --acpi-hardware SCI does not block PCI/GPU bring-up 2026-11-30 13:06:33 +00:00
Federico Bricca 641bec4f11 fix(smc): mark little-endian battery keys with SMC_ATTR_LITTLE_ENDIAN and notify on state changes 2026-11-30 13:06:33 +00:00
Federico Bricca 1fe07ab181 fix(wifi): drop WrongPeer/WrongChannel/Unsupported station frames in MediaTek policy link 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 e6d9a9ac0c merge fork/062-intel-test7 (Intel tests 3 to 7: i915 and xe with ANV beside NVK and amdgpu with RADV, the iGPU memory share, GuC and CCS controls) into release/0.6.2, keeping candidate 2's --share-aliases, --host-cursor and NVK system-memory placement beside test 7's --i915-guc and first-submission check 2026-11-30 13:05:49 +00:00
Garvit Surana 02ccd767e9 fix(gpu): run ANV with Gen12's CCS aux compression off (INTEL_DEBUG=noccs), as RADV runs without DCC, with --intel-ccs to keep it on and a boot log line saying which, where CCS under the Metal device's unified image layouts drew garbled UI on Iris Xe and ended in 10 s context resets for GPU hang (found by rqffael, issue #35)
rqffael's Latitude 5340 (i7-1365U, Iris Xe 8086:a7a1) drew corrupted UI
and lost its GPU to "context reset due to GPU hang" until he set
INTEL_DEBUG=noccs in the C library's environment beside
ANV_SYS_MEM_LIMIT; after it the session ran more than 13 minutes and
8,465 submissions with no hang, ENOMEM or crash. RADV already runs with
DCC off for the same unified layouts, where an image a copy fills and a
shader samples read back blank.

getenv now answers INTEL_DEBUG=noccs unless the boot keeps CCS on
(stela_libc_intel_ccs, from the hand-written --intel-ccs option); nothing
else sets INTEL_DEBUG. The display's scanout buffers and the shared
IOSurface images are linear-modifier images, so nothing assumes a CCS
modifier. The kernel fixes his issue lists are in the series already:
0236 takes the guc_id before the lock and 0237 the i915_active node
before the tree's lock, as his patches do.

Reported-by: rqffael <https://github.com/rqffael>
2026-11-27 18:47:23 +00:00
Garvit Surana cf2fb49d08 fix(boot): say after the chosen startup choice that its line in choices.cfg runs in place of stela.cfg's, where test 6's instructions had dev64 add --gpu-strict-families to stela.cfg, which a boot through choices.cfg never reads, and his strict boot still claimed Apple4
With \EFI\stela\choices.cfg on the stick, stela.efi boots the chosen
entry's options line (NAME, a tab, the options) and reads none of
stela.cfg's; stela.cfg holds the default entry for a boot without
choices. The boot log now says which line ran, and test 7's instructions
name choices.cfg.
2026-11-27 18:47:23 +00:00
Garvit Surana 7764acbe4f fix(i915): a kernel built with CONFIG_STELA says the GPU's clock against what RPS asked for and GT0_PERF_LIMIT_REASONS, every 30 s while the render engine is awake and at each heartbeat that finds it stuck, where only a reset said how fast the GPU ran and a power or thermal limit could not be told from a hang
MGKFN's i5-1235U Iris Xe hung with the GPU at 400 MHz of the 1200 RPS
asked for, which only the reset's line said. The render engine's
heartbeat now reads the actual and requested frequency, the RPS range and
the package's limit reasons (PROCHOT, thermal, RATL, VR thermal alert,
VR TDC, PL4, PL1, PL2 and the sticky log above them) and says them in one
line: at most every 30 s while it beats, and at each beat that finds a
heartbeat request stuck. Engines other than render say nothing.
2026-11-27 18:47:23 +00:00
Garvit Surana e8e575d03b feat(gpu): name in the log line of a render pipeline whose fragment inputs do not link each unlinked input with its type and components, the output of its identifier, and every vertex or mesh output, once per pipeline, where dev64's RenderBox pipeline plane__vertex + uber_resolve_fragment was refused in test 6 with only "fragment input without a matching vertex or mesh output"
link_varyings links an input to an output of the same identifier, scalar
type and component count. Its refusal now carries, once for each pipeline
line, VARYINGS unlinked fragment inputs [identifier:TypexN (the output of
its identifier is ... | no output of its identifier)] of N inputs; vertex
or mesh outputs [...]. The matching is unchanged: whether Metal links a
half output to a float input, or a fragment input with fewer components,
is not established, so nothing new links until a log shows what RenderBox
asks for.
2026-11-27 18:47:23 +00:00
Garvit Surana 3e1c5510c6 feat(gpu): claim Apple5 on a GPU without multisampled storage images, refusing alone the pass whose stencil resolve follows a min or max depth resolve, let Apple6 hold by its own checks, and say after the family line what the GPU claims without them and the first of Apple4 to Apple6 it is out of, where RenderBox, which climbs from Apple4 and stops at the first refusal, stopped at Apple5 on dev64's Iris Xe in test 6 and his Default style icons still drew blank
The stencil resolve that follows a min or max depth resolve resolves
copies of the stencil's samples, which take multisampled storage images,
which ANV reports on no Intel GPU. Unless the boot asks for the strict
families, Apple5 now takes the stencil resolve alone, as Apple4 and Apple1
already went without their multisampled parts; render_pass refuses a
pass that asks for the following resolve, which a test holds on ANV's
capabilities.

Apple6 takes sparse textures, vertex amplification, function pointers
and dynamic libraries in render pipelines, texture atomics and ASTC HDR
sampling, none of which takes multisampled storage, so it holds or not by
its own checks. On i915, ANV has sparse residency through TR-TT on Gen12
and multiview; ASTC HDR is sampled decoded. The ANV fixture holds Apple6,
and Apple7 still takes Metal3. The boot log's family note names what is
claimed without multisampled storage images and the first family the
GPU is out of, with what it lacks of it. NVIDIA and AMD derive what they
did.
2026-11-27 18:47:23 +00:00
Garvit Surana c0c5aea8a4 fix(gpu): reopen a lost device at the next connection or close even while connections of the lost epoch still hold objects, which stay with the lost device while their calls but releases are refused, and say so in one line, where MGKFN's setup screen held 47 objects of a lost Iris Xe, no device reopened and every WindowServer after it was refused and crashed six times with the screen frozen
recover() reopened a lost device only once no connection held an object
of it. MGKFN's test 6 boot lost its Iris Xe at 414 s; a connection of the
lost epoch, likely the Language Chooser, kept 47 objects of 227 MiB, the
device never reopened, and WindowServer crashed in a loop until the end.
dev64 recovered only because his clients closed.

The next connection or close after a loss now reopens. A connection of
the lost epoch keeps its objects with the lost device, which the
reopened one replaces: its calls but releases are refused as before, a
release lets go of its handle alone, and its close leaves the reopened
device untouched. The lost device retires as before: one whose backend
cannot prove its queue idle keeps every handle and its memory, so no DMA
reaches freed memory. A reopen despite held objects says how many
connections and objects stayed with the lost device.
2026-11-27 18:47:23 +00:00
Garvit Surana e0de0a3a77 feat(gpu): say in the memory line how many lost devices are still retiring and how many were let go with what they allocated kept, and its size, where dev64's test 4 lost 3.5 GB of the Iris Xe's share to the device lost at 22 minutes and the log never said so
After test 4's GPU loss the reopened device held 0 MiB, yet Linux held
3500 MiB of the GPU's 7598 MiB share and the memory the guest works in
fell from 5590 MiB to 2949 MiB. A replaced lost device whose backend
cannot prove its queue idle, as a lost Vulkan device's idle wait cannot,
is dropped with every handle and its memory kept, so that no DMA the
GPU may still run reaches freed memory. That stays as it is; the GPU
MEMORY line now says lost_devices=retiring:N/kept:N/MiB.
2026-11-27 16:51:18 +00:00
Garvit Surana ec0bffcc72 fix(gpu): clear a texture an automatic heap places as a new texture is, unless the next submission's first commands write it whole, and count those clears in the memory line, where it kept the bytes an earlier texture of the heap left in its range, and a fresh heap's zero bytes, which are not zero texels in a compressed layout
New and recycled textures are cleared at the start of the next
submission, and a heap's memory is filled with zero bytes when the heap
takes it, but a texture placed in an automatic heap was neither: a range
freed by an earlier texture of the heap reached the next one with its
bytes, and in a layout the driver compresses (AMD's DCC, NVIDIA's
compression tags, Intel's CCS) zero bytes do not read as zero texels.
Testers on AMD and NVIDIA see dark or garbage rectangles around round
elements such as the login avatar where they should be transparent;
that this is their cause is not proven.

A placement heap's textures stay as they were: they alias what the
client placed there, as on a Mac. The GPU MEMORY line counts the clears
(heap_cleared=), one per texture an automatic heap places.
2026-11-27 16:51:18 +00:00
Garvit Surana 299f0ed322 feat(gpu): name the process of a heap's nil in its log line, as its connection's first report named it, where the line gave a connection number alone and which process asked could only be guessed from the order they opened the GPU
The bundle opens each report with getprogname()[getpid()]; the service
keeps the first one each connection sends, and GPU HEAP NIL lines say
process=name[pid], or process=unnamed before the connection reported
anything.
2026-11-27 16:51:18 +00:00
Garvit Surana aaff377e8c feat(gpu): claim Apple4 on a GPU without multisampled storage images, refusing alone the pipelines and textures that need them, with --gpu-strict-families to keep such a GPU in Apple3, where ANV on every Intel GPU stayed in Apple3 and RenderBox, which asks for Apple4, drew dev64's Dock and Settings icons as blank squares in the Default icon style
RenderBox asks for Apple4 in com.apple.dock.extra, iconservicesagent,
ControlCenter and SecurityAgent on dev64's Iris Xe in tests 4 and 5, and
the device said it was not in it. dev64's icons draw in the Clear and
Tinted styles and stay blank in Default.

ANV reports shaderStorageImageMultisample on no Intel GPU. Apple4 took
multisampled framebuffer reads, which take multisampled storage views,
and Apple1 took multisampled 16-bit packed render targets, which a
driver that cannot render a packed format itself writes through
multisampled storage views of its raw texels. Unless the boot asks for
the strict families, such a device now claims Apple1, Apple2 and Apple4
with single-sample framebuffer reads and packed targets, as Apple3
already reads single-sample framebuffers; a pipeline that reads or tiles
a multisampled framebuffer (framebuffer_reads_at) and a multisampled
texture of a packed format without MSAA are refused one at a time, as
before. Apple5 still takes the stencil resolve that follows a depth
resolve, which takes multisampled storage images, so ANV stops at
Apple4.

The boot log names the claim, or what keeps a device in Apple3 out of
Apple4, after the family line, and --gpu-strict-families, a hand-written
stela.cfg option setup never writes, restores the strict families. A
device with multisampled storage images derives what it did.
2026-11-27 16:51:18 +00:00
Garvit Surana fd50cb0ddb fix(gpu): let a GPU call its kernel driver still performs run 30 s before the boot stops, past i915's slowest GuC reset of a hung Gen12 render context, so the reset fails the call, the device is lost and WindowServer restarts, where test 5's 10 s stop came first in both of dev64's boots while i915 had reset nothing yet
dev64's Iris Xe hung in an execbuffer (0x40406469) once in test 4 and
twice in test 5. In test 4, i915 printed "context reset due to GPU hang"
5.6 s after the call was first reported; the call failed, the device was
lost and WindowServer restarted. In both test 5 boots the 10 s stop came
first, with no i915 line between the report and the stop, and "Fence
expiration time out" only after it.

i915 with GuC submission finds a stuck engine at a heartbeat (2.5 s),
raises its priority at the next one, and GuC then waits the Gen12 render
engine's preemption timeout (DRM_I915_PREEMPT_TIMEOUT_COMPUTE, 7.5 s)
before it resets the context: up to 12.5 s, longer than the stop. The
stop is now 30 s, twice that, and a test keeps it so. The waiting PE's
report says how long it waits, and a call that ends after the report
says when and with what result. i915's timeouts are unchanged.
2026-11-27 16:51:18 +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 1d411824b9 test(gpu): a lost device takes none of a display's scanout buffers and keeps its generation until a reopened device serves, which the display's composition waits for before sharing them again 2026-11-27 13:07:32 +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