Skip to content
This repository was archived by the owner on Oct 18, 2026. It is now read-only.

drm/asahi: J613 HwDataB diagnostics and compute host regressions - #50

Closed
garymeyerca wants to merge 1 commit into
chriskearney:release/12.3-prepfrom
garymeyerca:gary/j613-hwdatab-compute-tests
Closed

garymeyerca wants to merge 1 commit into
chriskearney:release/12.3-prepfrom
garymeyerca:gary/j613-hwdatab-compute-tests

Conversation

@garymeyerca

Copy link
Copy Markdown

Scope

Contributes to iconidentify/m3-roadmap#96; does not complete or close the retirement milestone.

Pinned to release/12.3-prep (4f2a68f8b88a6b407f072356c248d22f076b401a), matching the eight-core J613 owner's selected release. Please review/cherry-pick for the intended next experiment branch as appropriate; this does not request a new release or deployment.

Changes

  • Preserve the existing two-word collector line and zero-value rejection.
  • Add one T8122-only diagnostic tuple for HwDataB +0xa38/+0xa40/+0xa50/+0xa58/+0xa60, read through the existing bounded host-image reader and typed field offsets.
  • Explicitly label this as the prepared host image, not a post-firmware-init readback.
  • Add tools/asahi/m3-compute-tests.rs, importing the production command, sequence and storage encoders, with synthetic fixtures only.

The eight host tests cover:

  • Every short command/sequence output rejected without mutation.
  • Invalid command and sequence regions, context and address boundaries.
  • GPU aliases versus firmware references; pointer-to-field versus pointee wiring.
  • Inclusive CDM end for an empty/terminate stream.
  • Packed unaligned register records, opcodes, restart offset and empty attachments.
  • Preserved trailing bytes and disjoint per-slot allocations/shared-state ownership.

No runtime compute behavior, field values, UAPI, firmware/ABI gates, m1n1, boot defaults, Mesa, or installed system changed. These are generic M3 encoder regressions; they do not validate eight/ten-core hardware behavior or execute the G15 boot self-test.

Validation

  • tools/m3-check --kernel <checkout> --kernel-build <output> --base HEAD -j 1 compiled the changed Asahi driver: PASS kernel; PASS m3-check: 1 build(s) completed. Run after the diagnostic edit, before adding the standalone host-test file; kernel runtime sources were unchanged afterward.
  • Used the 12.3 Air package's live config (CONFIG_RUST=y, CONFIG_DRM_ASAHI=y), GCC 16.1.1 and Rust 1.93.1. This was a driver-directory compile, not a full Image link or hardware boot.
  • Existing upstream m3-runtime-tests.rs: 33 passed, 0 failed.
  • New m3-compute-tests.rs: 8 passed, 0 failed.
  • git diff --check and patch apply/reverse checks pass.
  • Compiler reported an unused alloc::flags::* import in unchanged rust/kernel/soc/apple/rtkit.rs; no warning/error reported in the modified driver source.

Host test commands, from source root:

rustc --edition=2021 --test tools/asahi/m3-runtime-tests.rs -o /tmp/m3-runtime-tests
/tmp/m3-runtime-tests
rustc --edition=2021 --test tools/asahi/m3-compute-tests.rs -o /tmp/m3-compute-tests
/tmp/m3-compute-tests

Hardware gate / review request

Draft because GPU hardware validation remains blocked: the documented 12.3 installer refuses this Air's stage 1 v1.6.1, expecting v1.6.1-dirty. No guard bypass, GPU power/ASC experiment, job, bootloader replacement or reboot was performed for this change. #95's bounded firmware-start prerequisite must precede #96's retirement test.

@iconidentify: please review whether this diagnostic boundary and host coverage are useful for the next coordinated candidate. This adds the requested five-word prepared-image evidence but leaves the missing post-init readback explicitly unresolved.

Log all five requested words from the prepared T8122 host image without changing their values or the existing power-enable gate. Add synthetic-address tests of production compute command, sequence and storage encoders. This is preparation for roadmap chriskearney#96, not hardware retirement evidence.
@chriskearney chriskearney added display External displays: DCP, USB-C DP alt mode, Thunderbolt display tunnels priority:P1 Next: broken core functionality or a blocking regression. area:gpu Mesa, Asahi graphics and GPU firmware. labels Oct 8, 2026
@chriskearney

chriskearney commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Thanks for keeping the prepared-image and runtime-readback boundaries explicit. The current custom/sep encoder API has moved: compiling these tests against it fails because the Command fixture is missing register_set (E0063). The eight tests therefore need a fixture update before they can be used on the current candidate.

One profile detail to retain when rebasing: this diagnostic uses HwDataBG15V14_8_3 in the legacy builder; it does not establish values or compatibility for the separate HAL200 / 26.6.2 path. The next matched batch preserves that distinction and still needs actual native-GL/display verification.

Please rebase the draft onto the intended current profile, update the fixture and retain the prepared-host-image label. Post-initialization readback and hardware retirement remain separate acceptance work; no boot gate bypass is needed for this source review.

@chriskearney

Copy link
Copy Markdown
Owner

Thanks for this contribution. Work continues in Omacom #54 · Omacom #54. Original authorship and this source/discussion are preserved; closing this PR as migrated, not as merged or released. Development is moving to omacom/linux-aurora; this personal repository will be read-only, with its existing releases and historical reports retained. Please continue new findings in the linked destination.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area:gpu Mesa, Asahi graphics and GPU firmware. display External displays: DCP, USB-C DP alt mode, Thunderbolt display tunnels priority:P1 Next: broken core functionality or a blocking regression.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants