Skip to content

drm/asahi: g15: pin J514S cd05 firmware TEXT - #366

Merged
maralcbr merged 3 commits into
omacom:integration/aurorafrom
javanoo6:fix/j514s-cd05-firmware-pin
Nov 10, 2026
Merged

maralcbr merged 3 commits into
omacom:integration/aurorafrom
javanoo6:fix/j514s-cd05-firmware-pin

Conversation

@javanoo6

@javanoo6 javanoo6 commented Nov 5, 2026

Copy link
Copy Markdown

On a 14-inch M3 Pro (apple,j514s, T6030), the shipped kernel rejects GPU firmware TEXT cd05af6a828b52e4c2fed20086d3d18a7db42e03a8fd6f8354f9f06e0a61363e. The display works, but there is no GPU render node and Hyprland consumes several CPU cores.

Add a J514S-only firmware entry with the complete measured digest, TEXT/DATA sizes and GKTS marker. This allows the existing exact lookup to accept this build without g15_accept_text_prefix. Existing firmware entries and matching rules remain unchanged. Related: #247; this covers only the cd05af6a… variant.

Hardware evidence

  • MacBook Pro 14-inch M3 Pro (November 2023), apple,j514s / apple,t6030.
  • OS firmware 14.7; system firmware 26.5.2.
  • iBoot2 iBoot-10151.140.19.700.2; iBoot1 mBoot-18000.121.3.
  • Omarchy 4.5.0-3; linux-aurora 7.2.11.aurora14-1 (running 7.2.11-14-1-ARCH); m1n1-aurora 1.6.1.aurora22-1.
  • mesa-aurora 1:26.3.0_devel.20261031.231483.a1969111475-1; Hyprland 0.56.2.

Without the override, probe failed with loaded GFX TEXT identity mismatch: EINVAL, /dev/dri/renderD128 was absent, and recent Hyprland CPU samples were 787–803%.

With options asahi g15_accept_text_prefix=0xcd05af6a828b52e4 included in the initramfs and UKI, one successful boot produced:

GPU firmware build admitted by g15_accept_text_prefix: TEXT 0x5c000 DATA 0x114000 GKTS 0x58e88 sha256 cd05af6a828b52e4c2fed20086d3d18a7db42e03a8fd6f8354f9f06e0a61363e
T6030 G15S admitted, ASC=0x0
T6030 G15S: cores enabled per cluster: [7, 7]
G15: firmware at READY, starting the backend

/dev/dri/renderD128 appeared. Aquamarine logged CDRMRenderer(drm): Using device /dev/dri/card0. Hyprland CPU samples fell to 4–5%, with total CPU 97–98% idle. These are brief observations under different desktop activity, not a controlled benchmark. glxinfo was unavailable, so a GL renderer string was not collected.

Validation

  • Added a regression using the production firmware table and identity::lookup::verdict with prefix override zero. It failed against the original table and passed with this entry.
  • The regression rejects the same digest on J516S, a digest differing after the first eight bytes, changed segment sizes and a changed marker.
  • python tools/asahi/g15-maintained-handoff-tests.py --mutations passed; all five existing negative-control mutations failed as intended.
  • git diff --check passed.

Remaining validation

Draft: the patched kernel has not been built or boot-tested without the override. Runtime evidence above comes from the packaged kernel with the override. Vulkan, sustained GPU load, suspend/resume and long-term stability have not been tested. Maintainer review and a boot test of the exact pin are needed before merge.

The J514S 14.7 boot chain can load a T6030 firmware build whose full TEXT
digest is not in the admission table. Probe refuses it and no GPU render
node is created.

Desktop use with the explicit prefix override reaches firmware READY and
reduces Hyprland CPU use from several cores to single-digit percentages.
Pin the complete measured digest only for J514S, with its segment sizes
and marker, rather than requiring a persistent bring-up override.

Exercise the production firmware table and exact lookup with the override
disabled. Reject other boards, altered digest suffixes, sizes and markers.

Link: omacom#247
Signed-off-by: Nikita Konkov <95355711+javanoo6@users.noreply.github.com>
@javanoo6

javanoo6 commented Nov 5, 2026

Copy link
Copy Markdown
Author

Could a maintainer approve CI and apply ci:build to this PR? I’d like to test the patched kernel on my J514S M3 Pro without the firmware override.

With the override, the GPU initializes and Hyprland CPU usage drops from roughly 800% to 4–5%. I’ll test the exact firmware pin, desktop use, GPU load, and suspend/resume, then report results here.

@javanoo6
javanoo6 marked this pull request as ready for review November 5, 2026 11:28
@joshuaswarren

Copy link
Copy Markdown

[Joshua's agent] Thanks for the report and the boot evidence. We read the diff: one FirmwareBuild row for apple,j514s and the new test. The 32 digest bytes in the row match cd05af6a828b52e4c2fed20086d3d18a7db42e03a8fd6f8354f9f06e0a61363e from your description. The sizes and marker (0x5c000, 0x114000, 0x58e88) are the same as the existing J516S and J514S rows.

ci:build needs a maintainer with triage access, which our account does not have, so a maintainer will need to add it. Once it runs, the package, KUnit and boot jobs will show on this PR.

The lab has no J514S, so we cannot boot-test this row. The boot test has to come from you. With the patched kernel and no g15_accept_text_prefix option, please post the kernel log lines that show how the firmware was admitted. We expect a pin by exact row, not "admitted by g15_accept_text_prefix". Please also post whether /dev/dri/renderD128 appears. Your plan to test desktop use, GPU load and suspend and resume is the right next step.

@scottjones

scottjones commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Thanks for this, and for the clear hardware evidence. This J514S variant isn't covered by the current pins, and we don't have a 14" M3 Pro in our Mac lab right now, so we'd like to test the exact pin there before merge: a build without the override, plus Vulkan, a sustained GPU load and suspend.

Would you be up for adding this Mac to the lab as a volunteer? It lets us boot test kernels on it remotely, only inside an availability window you set (sudo lab-agent window add ...), and you can pause or leave at any time. If you're interested, tell me how you'd like to be contacted privately and I'll send a one-time join command there. It's a personal token, so it won't go in this thread.

A couple of practical notes:

  • It needs Omarchy on that Mac, and jobs run only on AC power while it's awake.
  • Omarchy installs encrypt the disk, so the join steps include the lab's script that sets up unlocking at boot. That lets the lab reboot it unattended.

The easiest way to reach me privately is a DM on X: x.com/bi9kahuna.

@scottjones scottjones added the ci:build Build, test and boot the kernel for this PR now label Nov 8, 2026
@javanoo6

javanoo6 commented Nov 8, 2026

Copy link
Copy Markdown
Author

I cant reach you at x.com since I cant pay for the Plus tier subscription. May I reach you some how else? Yes, I would like to volunteer mine m3pro 14'', it will be available for about 8 hours a day. Hope the jobs do not require mine presence and I can really leave mac lid closed and unattended.

@scottjones scottjones added ci:build Build, test and boot the kernel for this PR now and removed ci:build Build, test and boot the kernel for this PR now labels Nov 8, 2026
The J514S cd05 FirmwareBuild row adds 15 lines to the T6030 firmware
table, which changes the pinned hw.rs file and t6030 module digests.
With that row removed both digests are their previous values, so the
T6030 profile itself is unchanged. Refresh the two pins and record why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Scott Jones <scottajones@gmail.com>
@scottjones
scottjones force-pushed the fix/j514s-cd05-firmware-pin branch from 3e882d7 to 9ef29ba Compare November 8, 2026 20:33
@scottjones scottjones added ci:build Build, test and boot the kernel for this PR now and removed ci:build Build, test and boot the kernel for this PR now labels Nov 8, 2026

@maralcbr maralcbr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 9ef29ba. Single machine-scoped J514S cd05 row plus refreshed golden pins; booted without the override. Other machines unaffected.

@maralcbr
maralcbr added this pull request to the merge queue Nov 10, 2026
Merged via the queue into omacom:integration/aurora with commit 52b7683 Nov 10, 2026
26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:build Build, test and boot the kernel for this PR now

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants