36 Commits
Author SHA1 Message Date
geramyloveless a4f1a64742 Bump to 0.1.163 build 267 2026-10-08 15:56:17 -07:00
geramyloveless a229b479c9 Bump to 0.1.162 build 266 2026-10-06 23:08:20 -07:00
geramyloveless 808c4915ca Bump to 0.1.161 build 265 2026-10-06 19:29:29 -07:00
geramyloveless f69638f9eb Bump to 0.1.160 build 264 2026-10-06 17:18:28 -07:00
geramyloveless 0562dd8323 Bump to 0.1.159 build 263 2026-10-06 15:39:53 -07:00
geramyloveless fcdde3738e Bump to 0.1.158 build 262 2026-10-06 14:14:32 -07:00
geramyloveless 271ca15b36 Bump to 0.1.157 build 261 2026-10-06 13:16:52 -07:00
geramyloveless c94428bc89 Bump to 0.1.156 build 260 2026-10-06 12:11:15 -07:00
geramyloveless 8c03a43c59 Bump to 0.1.155 build 259 2026-10-06 11:34:33 -07:00
geramyloveless fdcb603712 Bump to 0.1.151 build 255 2026-10-05 16:46:33 -07:00
geramyloveless 0269dbe11f Bump to 0.1.143 build 247 2026-10-05 11:58:38 -07:00
geramyloveless b62cbd2fda Bump to 0.1.142 build 246 2026-10-05 11:10:57 -07:00
geramyloveless 6147cdb803 Bump to 0.1.141 build 245 2026-10-05 10:19:13 -07:00
geramyloveless f2a92afc89 Bump to 0.1.140 build 244 2026-10-05 09:58:40 -07:00
geramyloveless 243992ed09 Bump to 0.1.139 build 243 2026-10-04 22:12:09 -07:00
geramyloveless c37b7a242d Bump to 0.1.138 build 242 2026-10-04 20:31:02 -07:00
geramyloveless 02920eb7ab Bump to 0.1.137 build 241 2026-10-04 18:08:17 -07:00
geramyloveless 958d9307f7 Bump to 0.1.136 build 240 2026-10-04 10:08:07 -07:00
geramyloveless 4b142d018e Merge feature/radv-apple-vram (d132e25) into display-c
The DART has no fixed DMA budget (the platform's refusal is the limit,
logged), page descriptors grow with RAM, and kmemcheck is compiled only
in debug builds.

Conflicts, both sides kept: the shutdown hold still waits up to
DEXT_DMA_HOLD_DRAIN_MS for operations in flight, now without a budget
argument; test_iokit_dma keeps the in-flight hold, aperture gate and
large-mapping tests; the fence wait-any test keeps one 2 s bound.
2026-10-04 10:08:00 -07:00
geramyloveless d132e251e2 kmemcheck only in debug builds (DEBUG)
kmemcheck painted canaries around every kmalloc and recorded it in a
table under a global lock, and checked both on kfree: a cost on every
allocation of the driver. It is a heap debugging aid, so it now
compiles only with DEBUG defined. A release build keeps a small header
(the payload's size for ksize, and the allocation to free) and goes
straight to the allocator: no canaries, no tracking, no lock.
kmemcheck_enabled() returns 0 and the checks find nothing.
km_clear_sensitive (the wipe in kfree_sensitive) is unchanged.

The define reaches only linuxu sources, never upstream objects: the
dext's linuxu objects include a generated build/gen/mlg_build_mode.h
that `make lib-dext DEBUG=1` fills in (rewritten only when the mode
changes, so they rebuild), and Xcode's Debug configuration defines
DEBUG=1 and passes it to that make. The host library the offline tests
link is always a debug build, and the tests whose leak or corruption
checks rely on kmemcheck build its sources with DEBUG=1.

make check-release builds lib-dext in release and fails if it carries
kmemcheck's symbols (scripts/check-release.sh, whose patterns are first
checked against a debug build), then runs test_kmem_release in both
modes: sizes, alignment, zeroing, ksize, kmemdup and caches behave the
same, and only the debug build reports a write past an object.
2026-10-04 10:02:29 -07:00
geramyloveless ea27a972b2 Bump to 0.1.135 build 239 2026-10-04 07:24:27 -07:00
geramyloveless 9518723e6c Bump to 0.1.134 build 238 2026-10-03 22:00:53 -07:00
geramyloveless c0e076baa4 Bump to 0.1.133 build 237 2026-10-03 21:12:22 -07:00
geramyloveless 41443d471a Bump to 0.1.132 build 236 2026-10-03 20:30:01 -07:00
geramyloveless b2373f150b Bump to 0.1.131 build 235 2026-10-03 18:06:44 -07:00
geramyloveless 179c30316c Bump to 0.1.130 build 234 2026-10-03 17:28:15 -07:00
geramyloveless a56c499f91 Publish the GPU's identity and monitors for System Information
System Information builds a PCI GPU's entry from the IOPCIDevice merged
with the properties of its direct children, and properties a dext sets
with SetProperties() reach user space as top-level keys. The dext now
sets the keys it reads on its own service:

  model             the product name, from libdrm's table (Start)
  VRAM,totalMB      gmc.real_vram_size (after the probe)
  ATY,EFIVersionB   the VBIOS part number ("VBIOS Version")
  rom-revision      the VBIOS version string

so "Display" becomes "AMD Radeon AI Pro R9700" with its VRAM and VBIOS.
A device the table does not list gets no name; Metal and core-count keys
are not published because they would be false.

MacLinuxGPUDevice carries the rest of the identity (IDs, PCIe link, VRAM
type, CUs, ISA target, VBIOS details) and MacLinuxGPUDisplays the DRM
connectors with their monitors' EDID names and modes, updated by the
display operations and removed when the session closes. System
Information cannot list those monitors under this GPU (it only lists
IOFramebuffer kernel objects there), so MacLinuxGPUHost shows the GPU
with its monitors: "MacLinuxGPUHost device", and a GPU panel in its
window, both read from the IORegistry without a user client.

test-device-properties builds the property set with DriverKit container
substitutes, including every allocation failure; test-device-info checks
the host view.
2026-10-03 17:12:22 -07:00
geramyloveless ed279f9fe3 Bump to 0.1.129 build 233 2026-10-03 16:17:34 -07:00
geramyloveless 6c100a4cb9 Bump to 0.1.128 build 232 2026-10-03 16:05:42 -07:00
geramyloveless bd63bcff87 host: display-pin-test and display-agent --create
display-pin-test [--seconds N] [--width W --height H] [--init] creates
an IOSurface, fills it with rt_surface_pattern(1), imports it once
(IMPORT: its pages as the structure input), and after the call has
returned rewrites it from the CPU every second. Each time the driver
reads it back with SDMA and through its own CPU view (VERIFY): the new
pattern must match exactly and the previous one must not. Then RELEASE,
after which the handle must be gone.

display-agent --create [--connector NAME] [--seconds N] [--init] mirrors
one connected monitor as a macOS display:
- a CGVirtualDisplay from the plan (name, IDs, size, primaries, the
  monitor's progressive modes, hiDPI 0), with the private CoreGraphics
  classes declared in CGVirtualDisplayPrivate.h;
- OUTPUT at the mode macOS picks for it;
- a ScreenCaptureKit stream of it in BGRA at that mode and refresh,
  each capture surface imported once, each frame's dirty rectangles sent
  with PRESENT;
- a mode chosen in System Settings relights the monitor at that mode;
- Ctrl-C, SIGTERM or --seconds end it: capture stopped, imports
  released, the monitor's previous configuration restored (OFF), the
  virtual display removed, and a summary of frames, average copy and
  flip times, bytes copied and the agent's CPU time.
It needs Screen Recording permission and says so when it is missing. Any
failing step ends the run with its errno; nothing else is tried.

The frame replies (verify result, present stats) and the damage
conversion live in DisplayAgent.swift, covered by test-display-agent.
2026-10-03 15:40:51 -07:00
geramyloveless 66ce63f50e Bump to 0.1.127 build 231 2026-10-03 15:21:02 -07:00
geramyloveless f09557da66 host: display-agent --dry-run
MacLinuxGPUHost display-agent --dry-run [--once] [--interval ms] [--init]
follows the GPU's connected monitors through an observer client. It polls
the cached connector state (selector 84 STATUS) and, when the hotplug
epoch moves, probes, reads each connected monitor's mode list (MODES)
and EDID (sysfs), and prints the CGVirtualDisplay it would create, then
the add, update and remove changes against what it had. It creates no
display; without --dry-run it refuses.

The plan takes the identity and colour from the EDID: the monitor name
(else PNP ID and product), the PNP ID word as vendor, the product, the
serial (or a stable hash of the serial string), the CIE primaries and
white point. It takes the modes from the driver's list for the link:
progressive only, duplicates dropped, preferred first, and the largest
mode as max pixels. The size comes from the driver's display_info (else
the EDID's). hiDPI is 0. A monitor with no valid EDID or no progressive
mode is reported and skipped.

The model (report/modes/EDID decoding, the plan, the agent's changes)
moves to host/DisplayAgent.swift, Foundation only, which the Xcode
target now builds; test-display-agent compiles it with a test of its
own. docs/macos-displays.md records what of the frame path exists.
2026-10-03 14:51:43 -07:00
geramyloveless e6701b73a1 Bump to 0.1.126 build 230 2026-10-03 14:09:14 -07:00
geramyloveless a84d975e1b Bump to 0.1.125 build 229 2026-10-02 19:58:02 -07:00
geramyloveless 74da7ad17b Bump to 0.1.124 build 228 2026-10-02 19:46:24 -07:00
geramyloveless 953cf0149c mac_linuxgpu: upstream Linux amdgpu on macOS
Runs the unmodified upstream Linux amdgpu and amdkfd drivers on Apple
Silicon Macs inside a DriverKit system extension, for AMD GPUs attached
over Thunderbolt. The Linux sources come from a pinned submodule and are
compiled against linuxu, a userspace implementation of the Linux kernel
APIs they use. Includes the HSA runtime, the host installer app, the
setup and firmware fetch scripts, and the offline test suite.
2026-10-02 18:49:17 -07:00