Repository navigation
drm/amd/pm: defer UCLK DPM enablement on Apple Navi 14 0218 - #60
edschofield wants to merge 2 commits into
Conversation
Add the board-specific initialization workaround for the tested 0218/41 iMac. Keep the existing 0219 patch unchanged. Assisted-by: LLM
Defer UCLK DPM enablement to avoid timeouts on Apple iMac 1002:7340/106b:0218. Update firmware bit and memory DPM table accordingly.
|
Thanks for this — it lines up with what I see on a MacBookPro16,1 (2019) with the Radeon Pro 5500M: On that board the failure mode is slightly different from the iMac's: init usually succeeds, but the SMU stops responding on the first 3D load, i.e. on the first UCLK DPM transition (message timeouts, then a hard GPU hang; GFXCLK forced to 300 MHz does not help). Disabling So the trigger is the same UCLK enablement / first transition your patch addresses, just on a third Apple Navi 14 subsystem next to Would you consider extending |
|
Thanks @3v3nFloW. I've included your The AMD staging version passed ten warm boots on my Are you still using Linux Mint 22.3 with Reference: your detailed report. |
|
Thanks for adding Yes, still Linux Mint 22.3 (XFCE, T2-Mint ISO) with Workarounds currently enabled (all userspace/boot path, nothing patched in the kernel):
One data point that may matter for the mclk question: with DPM_UCLK masked off, Way back to a working kernel: 7.2.3 stays installed next to the test kernel, GRUB shows its menu for 5 s, macOS is on its own partition, and SSH is up ~9 s after boot while the hang has never come before ~20 s — so from another machine I can Proposed
Is there a ready noble build of the #61 kernel (CI artifact, or a T2-Ubuntu-Kernel branch I should build from)? Building locally is fine, I just want to test the same tree you tested. I can run this within the next few days. |
On an iMac20,1 (2020, 27") with GPU
1002:7340 / 106b:0218, revision41, the normalEnableAllSmuFeaturesrequest can time out with error-62, leaving no AMDGPU DRM device. This patch leaves UCLK DPM out of that request and enables it from Navi's post-init callback. It then verifies the firmware bit and refreshes the driver's supported-feature bit, memory DPM table and sustainable clock limits.Both memory-voltage features stay enabled during normal initialization. The patch respects
PP_MCLK_DPM_MASK, validates the PPT memory states consumed by DCN20, and matches only the tested0218/41board. It leaves patch 6001's0219workaround unchanged.This follows Atharva Tiwari's delayed-UCLK proposal for 0219. I described results with my hardware in
the September 4 comment on kernel issue 19. Enabling UCLK separately immediately after enable-all failed in an earlier
experiment; the later callback is the tested point in initialization. The results do not establish the firmware's internal cause.
Here's the testing I've done on my iMac:
The build uses Arch
v7.2.3-arch1plus T2 patch collection1ed4126844013f7e6fb3c8b0347cf0c5d6f99ffa. Historical counts belong to the experimental implementation. An intended unplugged start was corrected to AC-connected when the operator clarified the sequence; the actual unplugged check was then performed and confirmed. Other Apple boards, macOS-predecessor starts, suspend/resume and native 5K have not been validated. Boot-time MCE and Bluetooth observations remain outside this GPU initialization patch.I would appreciate review of the callback ordering and clock-state updates, and testing on other affected hardware before considering a broader match. The intended destination is AMDGPU upstream; carrying it in T2 would also make the tested fix available to affected users.
This work was prompted by frequent, intermittent boot failures on my iMac due to the GPU not being initialized. I used Codex / GPT-6 to do the source investigation, patch implementation, test scripts, as well as then by requests to isolate the UCLK sequencing change, retain public policy behaviour and validate a production extraction. The checks above include compiled C, real hardware and an original-policy control; the host tests use mocked firmware.
Formatting checks:
checkpatch --strict --no-signoffreports zero errors, two warnings and five checks. The warnings concern the accessible mail-archive link and the older assistance-trailer format expected by the checked-out checker; the five checks concern existing firmware-interface CamelCase names.