Skip to content

[iMac20,1 / Navi 14 0x7340:0x0219] Intermittent SMU init -62 at cold boot — persists on 7.1.6 despite patch 6001 #19

Open

Description

@Alex6-iMac27

Hardware

iMac20,1 (27" 5K, 2020), T2
GPU: Navi 14 [1002:7340], subsystem [106B:0219], rev 47 (Radeon Pro 5500 XT)
Kernel: 7.1.6-1-t2-noble, built 2026-08-03 — i.e. it already includes patch 6001-drm-amd-pm-Fix-boot-problems-in-5300 (dated 2026-07-09), and my device matches all four IDs that patch gates on (0x1002/0x7340/0x106B/0x0219).

Problem

Despite patch 6001 being present and applicable to my exact device, amdgpu still fails intermittently at cold boot with an SMU timeout. Roughly 1 successful boot in 20. On failure the machine hangs before the LUKS prompt; nomodeset avoids it (no acceleration).

Key point: patch 6001 fixes the "SMU: I'm not done with your previous command" variant by hardcoding the allowed-features masks in smu_v11_0_set_allowed_mask. My failure is different: SMU: No response msg_reg: 6 resp_reg: 0 — a complete non-response at EnableAllSmuFeatures (the step right after set_allowed_mask), timing out after ~3 s → -62. So 6001 does not appear to cover this cold-boot case.

Failing boot (7.1.6, ro quiet splash):


initializing kernel modesetting (NAVI14 0x1002:0x7340 0x106B:0x0219 0x47)
use vbios provided pptable
smc_dpm_info table revision(format.content): 4.5
SMU: No response msg_reg: 6 resp_reg: 0
Failed to enable requested dpm features!
Failed to setup smc hw!
hw_init of IP block failed -62
Fatal error during GPU init
probe with driver amdgpu failed with error -62
Successful boot — same kernel, same cmdline (13 min later):


initializing kernel modesetting (NAVI14 0x1002:0x7340 0x106B:0x0219 0x47)
use vbios provided pptable
smc_dpm_info table revision(format.content): 4.5
SMU is initialized successfully!
Display Core v3.2.378 initialized on DCN 2.0
Initialized amdgpu 3.64.0
SMU firmware version matches (0x38/0x38). ppfeaturemask 0xffffbffd / 0xfff7bffd tested, no effect.

Interpretation / question

The identical kernel+cmdline both succeeding and failing points to a boot-time race or stale SMU hardware state left by the Apple firmware, not a mask issue. Could a forced ASIC/SMU reset before hw_init (similar in spirit to patch 7002 for the VI Macs) make cold-boot init deterministic on Navi 14 iMac20,1? Happy to test patches. Full failing + successful dmesg attached.

cc @iurjscsi1101500 (author of patch 6001, same GPU)

Activity

  1. edschofield commented on Sep 4, 2026

    @edschofield

    I can confirm the same intermittent SMU timeout on my iMac 2020 (27" 5K) too. But I have a different Apple subsystem ID and GPU revision from the original report.

    Hardware and software

    System:             Apple iMac20,1 (T2), board Mac-CFF7D910A743CAAF
    CPU:                Intel Core i9-10910
    GPU:                Navi 14 [1002:7340], subsystem [106b:0218], rev 0x41
    VRAM:               8176 MiB
    VBIOS:              113-D322A1XT-011
    VBIOS version:      017.002.000.000.000000, 2020/07/10
    Kernel package:     linux-t2 7.1.8.arch1-3 (Arch Linux)
    Kernel:             7.1.8-arch1-Watanare-T2-3-t2
    Kernel build:       Sun, 16 Aug 2026 06:39:16 +0000
    AMDGPU DRM version: 3.64.0
    Firmware package:   linux-firmware-amdgpu 20260810-2
    SMU interface:      driver 0x38, firmware 0x38
    SMU firmware:       53.38.0 (0x00352600)
    BIOS:               2103.160.2.0.0 (iBridge 23.16.16068.0.0,0), 2026-07-11
    

    My normal relevant command line is:

    quiet splash intel_iommu=on iommu=pt pcie_ports=compat
    

    So this is without any explicit amdgpu.ppfeaturemask, amdgpu.dpm, or amdgpu.aspm override. Sometimes it boots successfully; when it does, the loaded module reports:

    dpm=-1
    aspm=-1
    runpm=-1
    ppfeaturemask=0xfff7bfff
    

    Reproduction and boot results

    Out of seven boots using the same kernel build and normal DPM behavior, I've seen this:

    Configuration Results
    Command line above pass, fail -62, pass
    Same command line plus pm_async=off fail -62, fail -62, pass, pass

    i.e. 3 failures in 7 similar boots.

    The machine appears to hang or remain on a black screen (plus probably spurious "Hardware Error" messages) when the GPU fails, but I don't think the system is really hanging. At least two failed boots reached systemd's graphical.target; one reported startup complete after 12 seconds and responded to a short power-button press with an orderly shutdown. The display wasn't working so this looks like an early boot hang.

    Failing and successful signatures

    Here is a typical failure:

    [    5.943458] amdgpu 0000:03:00.0: initializing kernel modesetting (NAVI14 0x1002:0x7340 0x106B:0x0218 0x41).
    [    5.949924] amdgpu 0000:03:00.0: [drm] ATOM BIOS: 113-D322A1XT-011, build: 521466, ver: 017.002.000.000.000000, 2020/07/10
    [    6.149222] amdgpu 0000:03:00.0: smu driver if version = 0x00000038, smu fw if version = 0x00000038, smu fw program = 0, smu fw version = 0x00352600 (53.38.0)
    [    6.149319] amdgpu 0000:03:00.0: use vbios provided pptable
    [    6.149417] amdgpu 0000:03:00.0: smc_dpm_info table revision(format.content): 4.5
    [    9.452134] amdgpu 0000:03:00.0: SMU: No response msg_reg: 6 resp_reg: 0
    [    9.452301] amdgpu 0000:03:00.0: Failed to enable requested dpm features!
    [    9.452402] amdgpu 0000:03:00.0: Failed to setup smc hw!
    [    9.452508] amdgpu 0000:03:00.0: hw_init of IP block <smu> failed -62
    [    9.452695] amdgpu 0000:03:00.0: Fatal error during GPU init
    [    9.537007] amdgpu 0000:03:00.0: probe with driver amdgpu failed with error -62
    

    A successful boot with the same kernel and command line gives this:

    [    6.009059] amdgpu 0000:03:00.0: initializing kernel modesetting (NAVI14 0x1002:0x7340 0x106B:0x0218 0x41).
    [    6.014688] amdgpu 0000:03:00.0: [drm] ATOM BIOS: 113-D322A1XT-011, build: 521466, ver: 017.002.000.000.000000, 2020/07/10
    [    6.216291] amdgpu 0000:03:00.0: smu driver if version = 0x00000038, smu fw if version = 0x00000038, smu fw program = 0, smu fw version = 0x00352600 (53.38.0)
    [    6.216388] amdgpu 0000:03:00.0: use vbios provided pptable
    [    6.216481] amdgpu 0000:03:00.0: smc_dpm_info table revision(format.content): 4.5
    [    6.228056] amdgpu 0000:03:00.0: SMU is initialized successfully!
    [    7.472086] [drm] Initialized amdgpu 3.64.0 for 0000:03:00.0 on minor 1
    

    Difference from patch 6001's PCI ID

    Patch 6001-drm-amd-pm-Fix-boot-problems-in-5300.patch is about subsystem device 0x0219. My machine is 0x0218, so that special-case mask doesn't help here. Nevertheless, the msg_reg: 6, resp_reg: 0, and -62 failure is the same as reported in this issue. This seems useful evidence that the complete non-response at EnableAllSmuFeatures is not confined to the 0x0219 board or to the behavior changed by patch 6001?

    amdgpu.dpm=0 result

    I also tried one boot with amdgpu.dpm=0. It did not reproduce the msg_reg: 6 timeout. Instead, it failed earlier with a different signature:

    amdgpu: smu firmware loading failed
    amdgpu 0000:03:00.0: amdgpu_device_ip_init failed
    amdgpu 0000:03:00.0: Fatal error during GPU init
    amdgpu 0000:03:00.0: probe with driver amdgpu failed with error -95
    

    So that doesn't help as a workaround on this Navi 14 configuration.

    Please let me know how I can run any further tests to help!

  2. edschofield commented on Sep 8, 2026

    @edschofield

    Following up on my earlier comment: delaying memory-clock scaling (UCLK) enablement has worked on my iMac20,1, with GPU 1002:7340, Apple subsystem 106b:0218, revision 41. There's a patch here.

    The kernel with this patch successfully passed 40 warm boots and 10 cold boots without failures. Peripherals stayed connected. These are results from one machine, and I haven't tested starts immediately after macOS or suspend/resume.

    There is also a useful control: on the same experimental kernel, restoring the original UCLK policy reproduced the EnableAllSmuFeatures timeout (msg_reg: 6, error -62). A normal reboot with delayed UCLK recovered.
    Enabling UCLK separately immediately after enable-all had also failed in an earlier experiment, so the point in initialization matters.

    The candidate leaves UCLK out of the initial enable-all request, enables it in Navi's post-init callback, and refreshes the driver's memory-clock state. It retains both memory-voltage features and all four memory states (98, 500, 625 and 875 MHz). Hardware rendering passed on the successful boots; VAAPI H.264 decoding was checked on selected earlier boots and all eight
    new cold tests. This builds on Atharva Tiwari's delayed-UCLK proposal, with a different board predicate and additional clock bookkeeping.

    I've extracted a production patch without the experiment selector or diagnostic tracing and built it on the current T2 7.2.3 sources. It has passed a normal warm boot, rendering and video checks, plus three minutes of sustained rendering
    with memory-clock transitions. A separate warm boot confirmed that the public option to disable memory-clock DPM still works. This patch has now also passed a cold start with AC connected and a start after the iMac was unplugged for at least 60 seconds. Rendering and video checks passed on both.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions