Skip to content

drm/asahi: admit 16-core T6040 GPUs by topology - #804

Merged
RyanTheTide merged 2 commits into
aurora-silicon:integration/aurorafrom
notmysegv:codex/t6040-16core-layout
Nov 4, 2026
Merged

RyanTheTide merged 2 commits into
aurora-silicon:integration/aurorafrom
notmysegv:codex/t6040-16core-layout

Conversation

@notmysegv

@notmysegv notmysegv commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

A 16-core T6040 reports two clusters with ten core slots each, but the enabled-core mask can differ between chips. The previous admission required one exact mask pair, so it rejected other 16-core configurations.

Admit the experimental layout when the GPU reports two clusters, ten slots per cluster and eight enabled cores in each cluster. Use the hardware-reported masks and retain the loader calibration check when calibration is provided. The measured 20-core path and T8140 behavior are unchanged.

Two reported pairs are 0x3db, 0x3db and 0x37b, 0x3db; only the first has been tested with this driver. The second is a reported topology, not a successful driver test.

The 16-core path reuses the 20-core TWO_BY_TEN operand-state and TWO_CLUSTERS deflake layouts and emits a warning. Static inspection of the 25G83 reference driver's compute-channel initialization supports sizing the compute buffer by per-cluster slot width, but it does not independently establish the render offsets or qualify context switching.

Validation

  • Built a complete NixOS kernel and initrd with this exact GPU source change on top of integrated J614s kernel 24bfd5ba2c182bf67d40c7d02f4947d124f04fa4. The J614s booted it, the topology warning appeared, and the owner reported the system worked. The tested kernel includes other J614s integration changes; it is not a build of this standalone PR branch.
  • Earlier, the same machine booted the exact-mask version and completed a 15-iteration Wayland/Zink shared-surface rendering run and an offscreen Zink compute check with 262,144 CPU-matched results. These checks predate the topology change.
  • The 16-core buffer offsets and preemption remain unqualified, and the alternate mask has not been hardware-tested. Review is requested on automatic admission and the experimental buffer assumptions.

Allow a configured alternate core-mask layout while keeping the measured
20-core T6040 path unchanged. The 16-core mask and ten slots per cluster
have been observed on J614s; reuse of the 20-core command-buffer offsets
remains experimental and emits a warning.

Generated-by: LLM
Assisted-by: LLM
Signed-off-by: Michal S. <[email protected]>
@notmysegv
notmysegv marked this pull request as ready for review November 2, 2026 21:23
@RyanTheTide

Copy link
Copy Markdown
Contributor

Reviewed for the M4 merge train. Two things block a merge, neither about the change itself:

  • The commit has no Signed-off-by: line. Kernel commits here need the author's own sign-off (DCO), and we can't add it for you. Please amend with git commit --amend -s and push.
  • The PR targets aurora-wip, which is now a fast-forward mirror of integration/aurora. Please retarget it to integration/aurora. It still merges cleanly there (checked against 19f71a1).

The code path looks right to me: the alternate layout is admitted only for the exact 0x3db/0x3db masks with two clusters of ten slots, the 20-core path and T8140 are unchanged, and the warning makes the experimental status visible. We have no 16-core M4 Pro here, so the J614s boot in the description is the hardware evidence. Once the two points above are done we'll put it in the next J616s no-regression boot and merge.

@notmysegv
notmysegv force-pushed the codex/t6040-16core-layout branch from c6665be to 60a113a Compare November 3, 2026 01:21
@notmysegv
notmysegv changed the base branch from aurora-wip to integration/aurora November 3, 2026 01:21
@notmysegv
notmysegv force-pushed the codex/t6040-16core-layout branch from 60a113a to 913e97d Compare November 3, 2026 01:21

Copy link
Copy Markdown
Member Author

Added the author sign-off and LLM disclosure, and retargeted this to integration/aurora.

@notmysegv notmysegv changed the title drm/asahi: admit the observed 16-core T6040 layout drm/asahi: admit 16-core T6040 GPUs by topology Nov 4, 2026

@RyanTheTide RyanTheTide left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the retarget. One blocker is left: the second commit, 5233565 "drm/asahi: admit 16-core T6040 GPUs by topology", still has no Signed-off-by:. The first commit has the sign-off and the Generated-by/Assisted-by lines, but the second has no trailers at all, and checkpatch.pl reports "Missing Signed-off-by". Please add your sign-off to that commit, or squash the two into one signed commit, and push. We can't add a sign-off for you.

The code itself is ready to go. On our side:

  • I built it in the shipping config (Fedora asahi base plus asahi.config) on top of integration/aurora, alongside #817 and #821. The build is clean and W=1 on drivers/gpu/drm/asahi/ gives no new warnings.
  • alternate can't be true on the 20-core M4 Pro: it needs cores != active_cores, and on that chip they are equal. On T8140 cores is None. So the measured paths are unchanged.

Once the signed commit is up we'll merge it with a merge commit.

Recognize the experimental 16-core layout by its two clusters, ten
slots per cluster and eight enabled cores per cluster. The actual mask
bits remain device-specific and are checked against loader calibration.
Keep the measured 20-core path and experimental warning unchanged in scope.

The reused 20-core buffer offsets and context switching are not qualified.

Generated-by: LLM
Assisted-by: LLM
Signed-off-by: Michal S. <[email protected]>
@notmysegv
notmysegv force-pushed the codex/t6040-16core-layout branch from 5233565 to d6b05d7 Compare November 4, 2026 22:30

Copy link
Copy Markdown
Member Author

Added the missing trailers to the second commit, now d6b05d7. Both PR commits now have Generated-by: LLM, Assisted-by: LLM, and Signed-off-by: Michal S. <[email protected]>.

Verified that the amended commit's source tree is identical to 5233565. Checkpatch on the format-patch output no longer reports a missing sign-off; its remaining error/warning concern the requested Generated-by: LLM trailer format. No code changed, so I have not repeated the build or hardware run. This preserves the code you already built and reviewed.

@notmysegv
notmysegv requested a review from RyanTheTide November 4, 2026 22:31
@RyanTheTide
RyanTheTide merged commit d9faa8c into aurora-silicon:integration/aurora Nov 4, 2026
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merged, thanks. Re-gated on integration/aurora 5ced6f9 with #804 and #821 together:

  • every commit carries your Signed-off-by;
  • the shipping-config build is clean;
  • all 118 dtbs build, and only t6040-j614s.dtb changes;
  • W=1 on drivers/gpu/drm/asahi/, apple-dart and rtkit-helper gives 0 new warnings;
  • the apple-dcp host selftests pass 85/85.

aurora-wip has been fast-forwarded to match.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants