Repository navigation
asahi: admit T8122 HAL200 on the carried G15G foundation - #163
Conversation
|
@DjDeveloperr @RyanTheTide ready for your regression testing. It hasn't been boot-tested on J613 with 7.3 yet; I'll post the result here when I have it. It conflicts with the latest base branch right now; I'm merging that in and will push the update shortly. |
|
J613 result with this Mesa (aurora-wip
|
|
@DjDeveloperr @RyanTheTide this is the one the M3 Air needs most: it admits T8122 (HAL200), so without it the stock alarm-aurora Mesa doesn't drive the M3 GPU. It now conflicts with |
Generated-by: LLM
G15G (T8122, M3) shares the agx3b encoding with G15S but needs explicit scheduling stalls (agx_chip_needs_scheduling_stalls), so the G15S build of the precompiled programs is not usable on it. Add a g15g target. Nothing selects it yet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Scott Jones <scottajones@gmail.com>
The T8122 kernel runtime reserves four ranges in every VM: its USC base at 0x1000000000, the top half of the 2^40 USC window, 0x1074000000 and 0x7000000000 up to 0x8000000000. Binds that touch them fail with EINVAL. The native AGX3 layout puts the internal programs at the top of the window, the sparse alias of the heap across 0x7000000000, and compact VDM aliases at 0x1000800000. On G15G, use the lower half of the window, cap the heap and its sparse alias below 0x7000000000 (agx_va_user_limit: heap [0x4000000000, 0x5000000000), alias up to 0x6000000000, below the 2^39 bound of the absolute USC Texture/Sampler field), and keep the compact alias heap out of the runtime USC base. The 0x1074000000 range already falls inside the alias heap's reserved span. The constants mirror the kernel's Runtime::new_vm by hand. Nothing admits G15G yet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Scott Jones <scottajones@gmail.com>
Run the M3 (T8122, G15G) on the native AGX3 path with the G15S profile (G15 records, Gen4 samplers, classic queues), with its own build of the internal programs and its scheduling stalls, against the kernel's T8122 runtime on the 14.8.3 firmware. G15G is admitted only for chip 0x8122, one die and one cluster, AGX3 and the legacy firmware interface, and the device opens it only with ASAHI_M3_EXPERIMENTAL=1, the switch mesa-m3 already uses (with mesa-m3's warning line), through agx_chip_experimental_admitted(). Without it the driver says so instead of reporting an unknown command stream. The chip admission test covers G15G's identity, the gate (unset, 0 and 1) and the G15G heap layout against the runtime's reservations and the 2^39 bound. On a J613 (MacBook Air 13-inch, M3) with the T8122 runtime, an earlier version of this series, with the heap above the USC window, passed compute-check and a GLES draw with readback through zink on honeykrisp and on the Gallium driver. This layout has not run on hardware yet. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Scott Jones <scottajones@gmail.com>
…opt-in Merge aurora-silicon/mesa PR 71 at 0163e7f, retaining original commits and authors. Preserve SiliconForest kernel-ABI checks and M4 exclusions alongside G15G admission and address-layout tests. The revised G15G address layout is not hardware-qualified; ASAHI_M3_EXPERIMENTAL remains required. Generated-by: LLM
…rior barriers The pinned Aurora kernel m3/m3_drm.rs Backend::feature_flags reports VM_STATUS and SCHEDULED_QUEUES for T8122, with optional compute/fragment capabilities. Require that baseline for G15G, preserving exact chip/firmware identity and explicit experimental opt-in. Other native profiles still require the unified PER_COMMAND_INPUT_SYNCS and EXACT_PRIOR_BARRIERS bits. Cover missing baseline bits and optional capabilities in the production admission test. Generated-by: LLM
Add a synthetic G15G identity using the pinned T8122 runtime feature baseline and reject binds into its four reserved VA ranges. Extend the existing no-submit Vulkan device/pipeline/mapping probe to opt-in G15G and explicit refusal for unset/0 Air opt-in and unqualified M4. These host probes do not model firmware execution or prove hardware support. Generated-by: LLM
… opt-in Remove the extra ASAHI_M3_EXPERIMENTAL device-open gate at the owner request. Keep exact T8122 topology, legacy firmware, runtime feature and VA reservation checks. Exercise the real device-open path with the obsolete variable unset, 0 and 1, and retain M4 refusal with it set. This does not change kernel Kconfig, boot flags or package pins; hardware qualification of the revised Air layout remains pending. Generated-by: LLM
Keep T8122 G15 command streams, Gen4 samplers and the native sampler heap for both firmware interfaces. The HAL200 profile checks C0 identity and the reported enabled-core mask without changing physical chip selection. Keep the scheduled queue feature contract and compiler requirements. Test profile axes and malformed identities, and allow the no-op shim to present the additional interface for offline compiler and device-open coverage. Signed-off-by: Satya Benson <satya@benson.earth>
The G15G HAL200 interface consumes sampler state from the native stream. Leave the optional firmware-command sampler fields zero in both Gallium and Honeykrisp while preserving the native heap and shader lowering. Signed-off-by: Satya Benson <satya@benson.earth>
Signed-off-by: Satya Benson <satya@benson.earth>
…ndation Limit the carried kernel-contract admission check to T8122 and use Aurora feature assignments. Keep Aurora M4 admission and its M5 address windows and shader targets. Match the packing fixture to native G15G wide barriers without importing unrelated repository policy changes. Keep the carried no-submit probe consistent with Aurora M4 admission. Include its unchanged SPIR-V vertex fixture from the public omacom/mesa b1bcfaf tree, originally supplied by Chris Kearney in 3cca5b3.
c63840d to
f0833b7
Compare
|
Rebased onto aurora-wip
Build/test on an aarch64 Arch sysroot (meson, asahi Gallium + Vulkan + drm-shim,
|
|
CTS attempt on J613 / Apple M3 G15G, 2026-11-06: stopped on a kernel GPU fault during GLES2 after ~110 seconds. This is not a CTS pass. Setup:
Count caveat: the kernel guard terminated deqp-runner before final CSV generation. The table is reconstructed from completed first-attempt observations in the eight saved process logs; the counts exactly match their printed totals. The 179 completed retry-QPA observations cover repeated test names and are excluded. There are 16,154 GLES2 cases without a completed first-attempt result. Forced guard termination is not counted as testcase crash/timeout; this is not a finalized runner/conformance report. At 15:05:16 EST, the kernel reported: The failed-owner process log has Failures group entirely under
The eight ResourceErrors report None of the ten failed names occurs in a73's All test processes were stopped. Dmesg before/at/after the fault, the kernel journal, process logs, failure QPAs and reconstructed CSVs were saved. No devcoredump entry was present. No reboot or recovery testing was attempted; further GPU testing is left to the owner. Build containers/images and test/monitor jobs have been cleaned up. |
|
Corrected ARM64 CTS run on rubra / J613 / Apple M3 G15G, 2026-11-06: all planned suites completed; not a clean CTS pass. Vulkan is a sampled mustpass run. No kernel GPU fault occurred in this corrected campaign. Setup:
All 439,349 results come from finalized corrected-build CSVs, with no duplicated test names. Vulkan includes 76 Exact mustpass inputs, relative to GLES/EGL
Failures and crash triage:
Each EGL crash, all classified as driver SIGABRT (prefix dEQP-EGL.functional.)
None of the five Fail cases, 14 Crash cases or one Timeout matches the supplied a73 fails/flakes/skips, including native-EGL prefixes. Those CI expectations are M1/M2 profiles, not a controlled M3 comparison. The shader rejections directly concern the carried G15G path made reachable by T8122/HAL200 admission; they do not isolate an admission change from the existing compiler/descriptor foundation. The depth-gather/resolve/LOD findings need driver-level investigation; no evidence here specifically ties them to HAL200 admission. This a73-only campaign does not qualify the rebased head. An earlier pass was discarded for DE_CPU misconfiguration (legacy CTS defaulted an unspecified CPU by pointer width); it is archived as superseded and contributes no counts above. The earlier stop was a kernel-side render-cache-pressure GPU fault on our M3 kernel, not attributed to #163; this corrected run used the diagnostic cache8 module and four jobs. Raw CSVs, failures, logs and failure QPAs are archived on alba under |
Admit exact T8122 C0 HAL200 identities while retaining G15 records, Gen4 samplers and native sampler heaps. Report and enforce the same VM limits in the DRM shim.
Port of omacom#30.
This carries @scottjones's G15G native-admission foundation from omacom/mesa unaltered, because Aurora doesn't have it yet and this change builds on it. @scottjones @RyanTheTide: if you'd rather land the foundation separately or differently, say so and I'll rework this.
Carried commits, in original source order (source SHAs):
5746729c3a3— Reject the incompatible legacy kernel ABI before native device setup — by Chris Kearney, carried unaltered from omacom/mesa.9ba7a8c6e34— asahi/clc: build the internal programs for G15G — by Scott Jones, carried unaltered from omacom/mesa.986104dd697— asahi: keep G15G allocations out of the T8122 runtime reservations — by Scott Jones, carried unaltered from omacom/mesa.0163e7fa96f— asahi: admit G15G on the native path behind ASAHI_M3_EXPERIMENTAL — by Scott Jones, carried unaltered from omacom/mesa.44fe9cab321— Merge Scott Jones T8122 Mesa runtime support behind its experimental opt-in — by Chris Kearney, carried unaltered from omacom/mesa.7010da29611— Admit the Air runtime actual feature contract without requiring G15 prior barriers — by Chris Kearney, carried unaltered from omacom/mesa.b1bcfaf3d04— Exercise experimental Air device setup and refusal paths with drm-shim — by Chris Kearney, carried unaltered from omacom/mesa.aefe5c2dd15— Enable supported T8122 Air GPUs by default without a Mesa environment opt-in — by Chris Kearney, carried unaltered from omacom/mesa.The replay preserves original author and committer identities, both dates, and full commit messages, including existing trailers. New commit IDs reflect the Aurora base.
This targets aurora-wip directly. Neither #161 nor #162 is a functional prerequisite; context cleanup and priority reporting remain independent changes. The carried history includes three Scott commits plus five required integration/admission commits by Chris Kearney, attributed above.
Port conflict resolution retains Aurora's newer M4/M5 paths. A separate integration commit keeps the new kernel-contract gate specific to T8122, retains M4 admission tests, and includes G15G in the wide-barrier packing fixture. The historical exact-opt-in helper change 14bcf0e is omitted because aefe5c2 removes that helper entirely; the broad 2df99f4 policy/tooling change and historical hardware report 1c651fb are not runtime prerequisites.
Interface facts in the HAL200 changes are private-informed; the implementation carried here is public code, with no isolated-author claim. Prior hardware reports concern different combined trees. This port still needs owner-attended J613 qualification before merge.
Validation: native aarch64 Asahi Gallium and Honeykrisp builds passed at -j4. Ten registered tests passed (chip admission, packing, legacy/HAL200 VM limits, G13G/G17P submissions, G15S/G15C vertex/query cases). Four additional G15G vertex/query shim runs passed across legacy and HAL200 interfaces. These are CPU/shim results, not hardware qualification. The carried broader Vulkan setup/mapping probe fails its first G13G placed-memory-map assertion, before T8122; a privileged rerun also fails. The placed-mapping implementation is unchanged by this port, but this probe is not passing and no Vulkan mapping/runtime qualification is claimed.