Commit Graph
8725 Commits
Author SHA1 Message Date
Garvit Surana bb44df447e merge fork/062-input-latency into fork/062-intel-test3 2026-11-26 09:16:41 +00:00
Garvit Surana c40a24b2a9 merge fork/062-i2c-bar into fork/062-intel-test3 2026-11-26 09:16:41 +00:00
Garvit Surana be12849cc6 merge fork/062-igpu-memory into fork/062-intel-test3 2026-11-26 09:16:41 +00:00
Garvit Surana e07cbe98e9 fix(input): poll a moving touchpad at its report rate and wait for the host drivers' lock once a poll is 2 ms late, after the GPU pump's step, where reads that delivered input counted as look cost and held an I2C touchpad to one read every 32 ms (TRACKPAD rate 24-31 Hz) and a busy lock was waited for only 32 ms late; INPUT TIMES adds each device's late= and gap= p50+p95+max 2026-11-25 20:04:09 +00:00
Garvit Surana c76aa50a3a fix(drivers): place an Intel LPSS I2C controller's BAR the firmware left at zero before mapping it, from the PCI census's BARs and windows, the memory map, the namespace's _CRS memory and the mount's reservations, write it with decoding off, check it reads back and log where it went, where a Dell's touchpad controller at \_SB_.PC00.I2C1 stayed unmapped and its touchpad dead 2026-11-25 19:08:06 +00:00
Garvit Surana fca87f2403 feat(pci): place a memory BAR the firmware left at zero in the lowest free aligned span of its root bridge's _CRS windows and the bridges above it, clear of every claimed range, with an assigned BAR bounded by its alignment and never moved, _CRS and DMAR, IVRS, MCFG, APIC and HPET memory read as claims, and any doubt a refusal, where nothing could place one 2026-11-25 19:08:06 +00:00
Garvit Surana 8ee5d90192 fix(gpu): read single-sample framebuffers without multisampled storage images, refusing only multisampled framebuffer reads and tile pipelines and making no multisampled texture storage there, and leave a Metal device still in no Apple GPU family unused as AMD's GFX8 is, where ANV, which has no multisampled storage images on any Intel GPU, put the Metal device in no Apple GPU family, Core Animation drew no desktop (a black screen under the cursor) and WindowServer ended at its first InPlaceSover pipeline 2026-11-25 18:30:23 +00:00
Garvit Surana 335f4ea6d6 fix(gpu): take i915's EINVAL to Mesa's empty userptr object as the answer to its probe, where every Intel boot logged I915_GEM_USERPTR as refused 2026-11-25 15:46:24 +00:00
Garvit Surana 32dc3ddebe fix(loader): select a discovered AMD GPU's files by the block versions amdgpu takes, DCN 4.0.1 for a table's 4.1.0, where Navi 48 (RX 9070 and 9070 XT) and Navi 44 got no dcn_4_0_1_dmcub.bin, their display block failed early_init with -19 and amdgpu started no GPU 2026-11-25 15:46:24 +00:00
Garvit Surana 71eb800ff8 fix(gpu): cap each image array of the Metal descriptor heap at 4,194,304 descriptors, texel buffers included, where ANV on Gen9 to Gen12.0 Intel GPUs reported 201 million images, the heap's one pool asked for 203 million descriptors (9.1 GiB of host memory) and Metal could not open with OutOfMemory 2026-11-25 15:46:24 +00:00
Garvit Surana dc2355fcf7 fix(gpu): take an i915_active node before its IRQs-off lock (Linux patch 0237), hand the engine the earlier boot's GuC record, start Alder and Raptor Lake P without the GuC unless --i915-guc on, and turn off panel self refresh and framebuffer compression, where every Mesa submission failed with -ENOMEM, the GuC fallback never ran and the stop never reached the panel
dev64-2, a second test build for the Raptor Lake P tester (8086:a7a0).

dev64-1's GuC started, then each of ANV's first EXECBUFFER2 calls failed
with -ENOMEM, 80 times over Mesa's 16.7 s retry budget (100 us times the
retry squared), and ANV reported VK_ERROR_DEVICE_LOST: no hang check, no
completed request. eb_move_to_gpu's _i915_vma_move_to_active reaches
i915_active_add_request, whose active_instance takes a new node with
GFP_ATOMIC under the tree's IRQs-off lock. Stela's slab serves a
nonblocking request only from a slot it holds ready and never grows a
cache for one, and the only blocking allocation from i915's active_node
cache, a barrier's preallocation, is skipped under GuC submission
(intel_context_active_acquire), so the cache never had a slot. Ashu's
a7ab failed the same way. Execlists would only have grown the few slots
its barriers take, short of an execbuf naming many buffers. Patch 0237
takes the node with GFP_KERNEL before the lock where the caller may
sleep, and says where an execbuf fails, its first passes and the first
user requests that complete. Stela's slab now says, once a cache, a
nonblocking allocation it finds no slot for and a growth with no backing.

The record dev64-1's boot 22 wrote was read by the loader in boot 23, but
the engine runs a copy of the image taken before any static was set, so
its log_file::earlier_guc was empty and the GuC started again. The record
now goes to the engine in the handoff, as serial_present does, and the
loader says the record it read. A test reads the record from boot 22's
own bytes.

On Alder Lake P (Raptor Lake P and U, Alder Lake N), --i915-guc auto, the
default, now starts i915 with enable_guc=0 ("INTEL GUC off (dev64-2)"),
so one boot tests execlists; --i915-guc on asks for the GuC and still
falls back the boot after a failure. Records of dev64-1 are passed over.

The stop's reason never showed: after i915 took the eDP panel the console
drew its front buffer with the CPU and sent no DIRTYFB, which panel self
refresh and framebuffer compression need to show a write. i915 and xe
now start with enable_psr, enable_panel_replay and enable_fbc 0.

--i915-guc is a hand-written override setup never writes, so the options
revision stays 13; the bundle revision stays 39 and the translator id is
unchanged.
2026-11-24 21:19:52 +00:00
Garvit Surana fa26324bb5 fix(gpu): wait up to 250 ms for the work in flight to retire before refusing an allocation as out of memory, and note each save, where memory released behind ten command buffers stayed counted and a WindowServer commit was refused
When freeing recycled textures and free upload chunks is not enough, the
Metal device waits on its timeline for the newest command buffer the GPU
was given whole (held work is never waited for), retires what finished,
frees again and retries. The share's and a test build's caps still refuse
what they would not hold. A saved allocation leaves an
"OUT OF MEMORY AVERTED n" note at the first and each power of two.
2026-11-24 20:11:28 +00:00
Garvit Surana 67f10affed fix(memory): give an integrated GPU a quarter of the free RAM, where a sixth left a 16 GB PC with a 512 MiB carve-out on the 2.5 GiB floor and its Metal device 1534 MiB, which Setup's Liquid Glass UI ran out of and WindowServer died with
A 16 GB Renoir laptop (14842 MiB free) now gets a 3710 MiB share and tells
Metal 2398 MiB; a nominal 16 GiB host 3968 / 2592. The share comes out of
the heap's growth past its floor while the guest keeps its 6 GiB room;
12 GB hosts grow by 150-400 MiB and 8 GB hosts, whose share is what the
guest's floor leaves, are unchanged, as is the 7 GB minimum.
2026-11-24 20:11:27 +00:00
Garvit Surana c571085f29 fix(gpu): take an i915 context's guc_id before submission_state's lock (Linux patch 0236), and start i915 without its GuC the boot after one whose GuC failed, or with --i915-guc off, where Raptor Lake P's GuC submission enable failed with -EAGAIN and left a wedged GT and no Metal device
A test build for one Raptor Lake P tester (Iris Xe 8086:a7a0). Its 0.6.1
boot logged "LINUX unsupported: cache allocation policy or context", then
"GT0: GuC initialization failed -11": new_guc_id's ida_alloc_range with
GFP_KERNEL under submission_state's IRQs-off spinlock needed a new IDA
bitmap and xarray node, the slab refused a blocking request there, and
steal_guc_id's -EAGAIN failed guc_init_submission on each of pin_guc_id's
four tries. Patch 0236 reserves the guc_id before the lock, where
pin_guc_id may sleep.

Any other GuC failure falls back by itself. i915 cannot be unbound and
probed again in the same boot (its unload is never run, and a failed
probe's IRQ line is retired), so the boot writes one record line,
"INTEL GUC RECORD failed device=XXXX cause=... build=dev64-1", the moment
i915 prints a GuC error (its start, a wedged GT, a CT error) or, at the
stop for want of a Metal device, as the Metal device's; and that stop
says "Intel graphics needs a second start; restart the PC". The next
boot reads the record back from the log as the Wi-Fi page's record is
read, and for the same device on Alder Lake P (Raptor Lake P and U,
Alder Lake N), Raptor Lake S or DG1 adds i915.enable_guc=0 (execlists,
host RPS and RC6), writing a kept-off record so the boots after it stay
without the GuC. A record of another device or build is passed over.
Each boot with such a GPU prints one INTEL GUC on, off or fallback line.

--i915-guc auto|off, auto unless given, is a hand-written override that
setup never writes, so the options revision stays 13; the bundle
revision stays 39 and no fingerprinted engine file changes.
2026-11-24 19:06:54 +00:00
Garvit Surana ed327327a8 merge release/0.6.1 into release/0.6.1-gpu-experimental 2026-11-24 16:19:08 +00:00
Garvit Surana 91f17ce6d3 merge fork/061-nvidia-render into release/0.6.1 2026-11-24 16:19:07 +00:00
Garvit Surana f3229446a9 fix(gpu): a command buffer marks each IOSurface it names in use until it completes, as Apple's GPU driver does, where a video decoder's pool reused a frame whose sampling command buffer the service had yet to run and the lock screen's aerial wallpaper showed green, stair-stepped blocks of rows not yet decoded
With no hardware video decoder, VideoToolbox decodes on the CPU into a
CVPixelBufferPool, which reuses only a surface that is not in use
(IOSurfaceIsInUse). The guest driver never marked a surface in use, so
the pool handed a frame back to the decoder as soon as WindowServer
committed the command buffer that sampled it; the service then copied the
4K 10-bit frame into device memory while the decoder rewrote it: zero
luma and chroma below the decoder's wavefront, green in YCbCr, for a frame
(rnz, RTX 5070 Laptop; reproducible on the ASUS TUF A16).

The commit now increments the use count of every IOSurface the command
buffer names, once a surface, and its completion or refusal decrements
them before anyone learns it completed.

Each distinct two-plane IOSurface texture is named once in the log
(GPU TWO-PLANE TEXTURE): format, size, usage, the surface's pixel format,
each plane's offset, row, extent and format, and whether the GPU samples a
device copy or the rows in place. Tests cover the note and the device copy
of a 3840x2160 10-bit 4:2:0 frame's two planes.
2026-11-24 16:17:54 +00:00
Garvit Surana 53c5ab12ac merge fork/061-navi3x into release/0.6.1-gpu-experimental 2026-11-24 14:58:32 +00:00
Garvit Surana 21ec0f8b73 feat(amdgpu): log the link masks the SMU's PCIe override is made from, what they give it, and each forced level's table values, argument and answer on SMU 13.0.0 and 13.0.7, where a refused override left no line saying whether it was asked for lane 0
New Linux patch 0235, under CONFIG_STELA, in smu_smc_hw_setup and in
smu_v13_0_0/smu_v13_0_7_update_pcie_parameters' force-all-levels loop.
2026-11-24 14:57:31 +00:00
Garvit Surana 5f9ff439bb merge origin/fork/061-intel-igpu into release/0.6.1-gpu-experimental 2026-11-24 14:34:39 +00:00
Garvit Surana 2a5402d8bf merge release/0.6.1 into release/0.6.1-gpu-experimental 2026-11-24 14:34:39 +00:00
Garvit Surana 12264e7dd4 fix(gpu): give amdgpu a discrete AMD GPU's slot link on Linux's command line on an Intel host, as amdgpu.pcie_gen_cap and amdgpu.pcie_lane_cap masks of the trained link between its card's switch and the root port from the port snapshots the claim holds, else its own link, never a width of 0, where an RX 7900 XTX's SMU refused OverridePcieParameters (0xFF, -EIO) and its probe failed at "Attempt to override pcie params failed!"
amdgpu_device_get_pcie_info takes both module parameters before it reads
any link, for every generation, so the SMU's forced link levels come from
Stambha's own read of the link amdgpu would read on Linux
(amdgpu::link::slot: its link_dev past the card's 1478/1479 switch and
its link_partner). gen 4 x16 gives 0xf000f and 0x3f003f, and the SMU
argument 0x0306 native Linux sends. Nothing is given for an integrated
GPU, another vendor's, one whose link does not read, or on an AMD host,
whose PCIe DPM keeps the SMU's own levels. Two AMD GPUs' masks keep the
bits both set (command_line::add). One line names the link and masks.
2026-11-24 14:31:06 +00:00
Garvit Surana 34f983aed8 merge fork/061-r8169 into release/0.6.1 2026-11-24 13:57:26 +00:00
Garvit Surana a5235bfb9a merge fork/061-r8169 into release/0.6.1 2026-11-24 13:57:26 +00:00
Garvit Surana b5ab1c9a33 merge fork/061-fixes (Wi-Fi page) into release/0.6.1 2026-11-24 12:57:25 +00:00
Garvit Surana 735ba9579f merge fork/061-fixes (Wi-Fi page) into release/0.6.1 2026-11-24 12:57:25 +00:00
Garvit Surana fb31457e3e feat(boot): open the Wi-Fi page by itself before the menu when a supported chip has no network, or on the network the earlier boot could not join with its password ready, and never on a boot nobody may be at
The guest network records each join's outcome and a wired link coming up
as "WIFI RECORD" lines that name a network only as configured (--wifi) or
saved-N, its place in wifi.saved. Before the menu, the next boot reads the
earlier boot from the bytes log_file already reads back for the
device-start record, and wifi_prompt::decide opens the page:
- with no network set up: "Connect to Wi-Fi so macOS has internet. Esc:
  start without Wi-Fi.";
- after a failed join: that network selected, its dialog on the password,
  and "Couldn't join <name>: the password may be wrong..." or "<name> isn't
  in range..."; the name is shown, never logged.
Esc skips Wi-Fi for this boot; a network saved there starts the boot.

It stays closed, and the boot goes on as before, after a restart macOS
asked for (the installer's and an update's restarts, any boot an install
chains into), after a stop or a boot that never ended, after a boot whose
wired network was up or that joined Wi-Fi, on a menu that holds for setup
or opens no menu, when the log could not be read, and on a PC whose chip
the driver does not start. A console with no input leaves it at once. A
join, or a network saved or forgotten at the menu, clears the failure.

With no --wifi, the boot now joins the saved networks, the newest first,
and the loader reads wifi.saved without --wifi, so a network saved on the
page is joined; choosing one moves it last in the file. The --wifi
network's password typed again goes to its key file. No option, the
options revision (13), the bundle revision (39) or the translator id
changes.
2026-11-24 12:56:53 +00:00
Garvit Surana f2c5c76cf9 feat(wifi): give what a Wi-Fi join came to through Link::take_join, once per change: joined, the password may be wrong, or not in range
The keeper notes a join as Joined when its port opens (an open network's
association or the 4-way handshake), WrongPassword when the handshake fails
or times out (wpa_supplicant's WRONG_KEY), and NotInRange when a scan finds
neither the preferred network nor any saved one. Each change is given once;
the network's name stays in memory for the boot to place, never in a log
line. The probe's adapters forward it for the Intel, MediaTek, Realtek and
rtw89 stations; a wired link gives none.
2026-11-24 12:56:53 +00:00
Garvit Surana 28b5c41055 fix(net): a Realtek receive ring follows a chip that passed the driver's slot, and an unanswered guest DHCP window logs the host adapter's state, where an RTL8168H (XID 541) that skipped one slot held every frame a full ring of 256 and the guest got no DHCP or ARP answer
The tester's 0.6.0 boot (Ryzen 7800X3D, B650, 10ec:8168 rev 15) got
its frames in runs of exactly 256 (to_guest 172, 428, 684, ... 2476),
where a working adapter's count grows unevenly. The driver waited on a
slot the chip had skipped while the chip wrote the other 255, so each
frame was released a full ring late, past macOS's DHCP and ARP timeouts.

Ring::follow_the_chip moves the driver's slot to the chip's first
completed slot past it at the second empty look that sees the same
pair; the skipped slots stay offered. Linux's layout, RxMaxSize 16384
and RX_MULTI_EN from 0.6.0 are kept. The diagnostic line gains
resyncs= and skipped=.
2026-11-24 12:56:26 +00:00
Garvit Surana 510daf2edc fix(linux): pass over a device whose link status names no lanes or no known speed in pcie_bandwidth_available, where a root port snapshot that read 0 won Linux's comparison as the last link and amdgpu took the slot as x0 at an unknown speed, which an RX 7900 XTX's SMU refuses as lane 0
test_upstream gains a Navi card whose root port reads 0, which now gives
the card's upstream port's gen 3 x8, and a GPU whose every link reads 0,
which gives no bandwidth with speed and width unknown rather than x0.
2026-11-24 12:40:43 +00:00
Garvit Surana a0afe2aebd merge fork/061-fixes into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 2388d70afd merge fork/061-fixes into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 758aac5c88 merge fork/061-cursor into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 3e16314649 merge fork/061-cursor into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana fe950b2eab merge fork/061-sleep-amd into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 6b59da131c merge fork/061-sleep-amd into release/0.6.1 2026-11-24 12:34:58 +00:00
Garvit Surana 6ed8ad8747 feat(boot): let W open a page saying the PC's Wi-Fi chip isn't supported yet, or that it has none, with "Wi-Fi: this chip isn't supported yet (press W)" on the menu, and let W open the Wi-Fi page on a USB with no network yet
On a PC whose census finds a Wi-Fi chip no driver here starts, the menu
showed no Wi-Fi line and W did nothing. Its bottom line now says
"Wi-Fi: this chip isn't supported yet (press W)", and W opens a page naming
the chip by vendor and PCI ID, saying to use Ethernet, a USB tether or a
supported card, and to post the log in hardware-reports to ask for it. With
no Wi-Fi chip at all, W opens a page saying so and the bottom line stays
clear. Every line of the page is at most 40 characters, inside the column.

W also opened the Wi-Fi page only with a --wifi entry or a wifi.saved file,
so on a USB with neither, the "press W to choose a network" line of
a95ddeb98 pointed at a key that did nothing. W now opens it whenever the
page is offered; a network saved there joins as before.
2026-11-24 12:29:12 +00:00
Garvit Surana 43b32e1a94 fix(gpu): read an AMD GPU's IP discovery table by its BAR's address when the firmware describes the BAR without a memory range, and count an AMD GPU whose table still is not read as discrete when it sits below its card's own PCIe switch (1002:1479 below 1002:1478), where an RX 7900 XTX whose board firmware answered GetBarAttributes(5) with no memory descriptor was taken as integrated and given a 5104M share of the host's RAM
amd_graphics_version returned at once when the description held no
memory range, so the by-address read added for firmware that does not
describe the BAR never ran. The decision is now
amd_discovery::described_registers, whose error falls through to that
read. Where the read still fails, gpu_kind looks at the bridges the
firmware lists: an APU sits straight below a host bridge or root port,
never below Navi's own switch.
2026-11-24 12:23:29 +00:00
Garvit Surana efc082e0d1 fix(gpu): a request on an IRQ line its previous driver freed is refused as unexposed, before any route, event or source, so xe's probe after a failed i915 probe on the same MSI line fails cleanly with -EOPNOTSUPP, where the refusal was classed as retained and stopped the boot with "IRQ enable uncertain; published request retained"
The retired line's owners stay with it and nothing of the new request is
published, as for the other refusals before a route in irq_enable. The
software IRQ peer of the workqueue fixture now keeps a freed line retired
on request, and the fixture checks that the next driver's request_irq on
it returns -EOPNOTSUPP with nothing enabled. MSI still has no fresh line
past a retired one, as MSI-X has, so xe cannot yet take over the interrupt
after i915 fails; that is left for later.
2026-11-24 12:22:41 +00:00
Garvit Surana e40d1d26b9 fix(linux): a kmem_cache request carrying __GFP_RETRY_MAYFAIL is served, its growth one fallible attempt as kmalloc's and the page allocator's policies already allow, where the cache refused it as an unsupported policy, so shmem's xarray node for i915's blocking retry of a shmem object's pages failed and Raptor Lake P's GuC log buffer ended i915's probe with -ENOMEM
shmem_folio forwards RETRY_MAYFAIL to the radix node it grows (file.c),
and i915's shmem_sg_alloc_table retries with it once its non-blocking
first attempt finds the node cache full. The cache test now grows a slab
with the flag (one page attempt, refused or not, and no refusal counted)
instead of listing it as unsupported, and the trees test stores past the
root with every free node held: -ENOMEM where pages are refused, a grown
node where they are not.
2026-11-24 12:22:40 +00:00
Garvit Surana fa401608bb release: Stambha 0.6.1
The workspace and stela-boot versions go from 0.6.0 to 0.6.1, with the same
workspace members in both Cargo.lock files as the 0.6.0 bump. The boot
bundle revision (39), the options revision (13) and the translator id stay
as they are.
2026-11-24 12:16:21 +00:00
Garvit Surana 058410bf2e fix(installer): call the dry run "Install check (dry run)" and end it with "Nothing was installed: this was only a check. Choose Install macOS to install", where a tester read "Check only" and its PASS screen as an install
The confirm page's Left button and key hint said "Check only", and the
PASS screen began "nothing was written. Turn the PC off". The button and
hint are now "Install check (dry run)" with "A dry run, changes nothing: it
reads the disk and installs nothing" under them, and both PASS and FAIL
screens and statuses say nothing was installed because this was only a
check; FAIL also says where the log is.
2026-11-24 12:16:21 +00:00
Garvit Surana 499ad908ee fix(boot,cli): say where the boot log is on the stop and restart screens and in stambha's help: stambha log on any computer, or the file \EFI\stela\boot.log on the stick
The stop screens and the restart screen named only `stambha log`, and the
help gave no place at all. Each now also names the file on the stick, whose
path stays \EFI\stela\boot.log.
2026-11-24 12:16:21 +00:00
Garvit Surana a71850aa20 fix(app): show "Stambha <version>" in Stela.app's About This PC, its summary and its Updates list, where they said "Stela 0.6.0"
The version macOS users saw as "Stela 0.6.0" is the app's About This PC
caption, "Stela \(stelaVersion)", over the StelaVersion key stela.efi
publishes. The caption, the copied summary line, the Updates row and the
no-description card now say Stambha; the bundle identifier, the StelaHost
keys and the on-disk paths are unchanged. The app is prebuilt on a Mac
(guest/stela-app/build.sh), so this reaches users with its next build.
2026-11-24 12:16:21 +00:00
Garvit Surana a95ddeb980 feat(boot): say "Wi-Fi: press W to choose a network" on the boot menu and in the log when a Wi-Fi chip Stambha starts has no network, where the menu showed no Wi-Fi line at all and testers missed the key
With a Wi-Fi chip the driver starts and no --wifi or saved network, the
startup menu's bottom line was empty, so nothing said that Wi-Fi needs a
network chosen with W. wifi_page::status_line now always gives the line
(CHOOSE for that case), and the menu logs hint_line's "CHOICE Wi-Fi: no
network is set up; press W in this menu to choose one, or Wi-Fi stays off".
The HOST and GUEST NETWORK lines for an adapter left off say the same in
place of "no --wifi network".
2026-11-24 12:16:21 +00:00
Garvit Surana 824961a982 fix(gpu): an Intel integrated GPU is claimed without a reset, left in D0 as the firmware left it for i915 or xe to take over at its probe, as Linux binds it, with one line saying so and naming the reset it offered, where the claim's Function Level Reset left a Raptor Lake P GPU (8086:a7a0) whose registers all read 0xFFFFFFFF, so i915 found it non-operational, xe took it for a VF and its display stayed dark
The claim's reset choice is now a plan of who takes the GPU from the
firmware (cold::Takeover), by stack and device: the claim (nouveau, and
Intel's discrete GPUs), the driver where the function has no
function-local reset (amdgpu, as before), or the driver alone (an
integrated GPU in i915's or xe's table). i915 resets its engines at probe
(sanitize_gpu) before pci_set_master; xe resets its GuC and GT. NVIDIA and
AMD plans are unchanged. Host tests cover the plan of each takeover, a
function that offers FLR under a driver takeover (no FLR, no bus reset,
bus mastering off), and 8086:a7a0 at 00:02.0 under i915 and xe.
2026-11-24 12:05:02 +00:00
Garvit Surana 837dc2d0ec fix(drivers): bring an HD Audio controller to D0 and turn its memory decode on before the cold preflight, as Linux pci_enable_device does, leaving Bus Master as it was, where an AMD laptop's 1022:15e3 the firmware left powered down or not decoding failed with PowerNotReady 2026-11-24 11:43:27 +00:00
Garvit Surana fb6224af36 fix(drivers): bring an HD Audio controller to D0 and turn its memory decode on before the cold preflight, as Linux pci_enable_device does, leaving Bus Master as it was, where an AMD laptop's 1022:15e3 the firmware left powered down or not decoding failed with PowerNotReady 2026-11-24 11:43:27 +00:00
Garvit Surana 9a252b3337 fix(loader): tell macOS this Mac cannot sleep with /defaults sleep-disabled, set in each boot's own tree with a SLEEP line, and pin macOS's SEP sleep and wake sequence in a host test, where the Apple menu's Sleep panicked with "SEP failed to power-gate after 5s"
macOS's sleep path quiesces the SEP and waits up to 5 s on iop-sep-nub's
function-wait_for_power_gate (PMGR Wait on device 0xa0, SEP), then stops the
processors and enters deep sleep, resuming through the reset vector. None of
that is modeled, so the wait timed out and macOS panicked. XNU reads
/defaults sleep-disabled into gSleepDisabledFlag once booted, and
checkSystemSleepAllowed then refuses every system sleep with
kPMConfigPreventSystemSleep: the Apple menu's, idle, a sleep key's and a
lid's (--lid-sleep). macOS stays up and only its display sleeps.
2026-11-24 11:43:27 +00:00
Garvit Surana 94e9d63c19 fix(loader): tell macOS this Mac cannot sleep with /defaults sleep-disabled, set in each boot's own tree with a SLEEP line, and pin macOS's SEP sleep and wake sequence in a host test, where the Apple menu's Sleep panicked with "SEP failed to power-gate after 5s"
macOS's sleep path quiesces the SEP and waits up to 5 s on iop-sep-nub's
function-wait_for_power_gate (PMGR Wait on device 0xa0, SEP), then stops the
processors and enters deep sleep, resuming through the reset vector. None of
that is modeled, so the wait timed out and macOS panicked. XNU reads
/defaults sleep-disabled into gSleepDisabledFlag once booted, and
checkSystemSleepAllowed then refuses every system sleep with
kPMConfigPreventSystemSleep: the Apple menu's, idle, a sleep key's and a
lid's (--lid-sleep). macOS stays up and only its display sleeps.
2026-11-24 11:43:27 +00:00