Additional data point, plus a workaround that needs no downgrade.

Hardware: Sapphire Radeon AI PRO R9700 (1002:7551, subsystem 1da2:e499,
VBIOS 113-1E4990U-S83), used headless for compute. The monitor is on the
Raphael iGPU (DCN 3.1.5) of a Ryzen 9 7950X3D. KDE neon (noble),
kernel 7.0.0-42-generic.

Symptom variant: no display is attached to the R9700, so there was no
black screen. Instead the log filled with "failed to load ucode
DMCUB(0x3F)" and DMCUB errors, followed by "SMU: No response" and
"late_init of IP block <smu> failed -62". A few minutes after boot the
GPU fan went to full speed and the whole system froze.

Scope: between 0ubuntu3.3 and 0ubuntu3.4 exactly four firmware files
changed, and only one of them is broken (header ip / ucode_version):

  file              3.3                3.4
  dcn_3_1_4_dmcub   3.1  0x08004800    3.1  0x08005700
  dcn_3_1_5_dmcub   3.1  0x05001C00    3.1  0x05002E00
  dcn_3_2_0_dmcub   3.2  0x07002A00    3.2  0x07002F00
  dcn_4_0_1_dmcub   4.0  0x0A000800    symlink -> dcn_3_2_0 (3.2 0x07002F00)

The other three updates look correct. The new dcn_3_1_5 firmware
(0x05002E00) runs on the iGPU here without errors. Downgrading the whole
package to 3.3 therefore also reverts the DCN 3.1.4 fix from
LP: #2168847. Restoring this one file is enough.

Workaround without downgrade or hold, and without writing into
package-owned files: the kernel firmware loader looks in
/lib/firmware/updates before /lib/firmware. initramfs-tools does the
same (add_firmware in /usr/share/initramfs-tools/hook-functions) on
systems where amdgpu is in the initramfs. The 3.3 .deb is still
downloadable from Launchpad:

  wget 
https://launchpad.net/ubuntu/+archive/primary/+files/linux-firmware-amd-graphics_20240318.git3b128b60-0ubuntu3.3_all.deb
  dpkg-deb --fsys-tarfile 
linux-firmware-amd-graphics_20240318.git3b128b60-0ubuntu3.3_all.deb \
    | tar -x ./lib/firmware/amdgpu/dcn_4_0_1_dmcub.bin.zst
  md5sum lib/firmware/amdgpu/dcn_4_0_1_dmcub.bin.zst
    # expect 4ba7d5ddafac5fe090fdf886a6c0e916, 225553 bytes
  sudo install -D -m644 lib/firmware/amdgpu/dcn_4_0_1_dmcub.bin.zst \
    /lib/firmware/updates/amdgpu/dcn_4_0_1_dmcub.bin.zst
  sudo update-initramfs -u -k all

Result here on 7.0.0-42: "DMUB hardware initialized: version=0x0A000800",
no ucode, DMCUB or SMU errors, runtime suspend/resume of the card is
clean, and a 90 s fp16 matmul load runs at the 300 W limit with normal
fan control (0 -> 2800 rpm) and correct results.

Once a fixed package is released, delete
/lib/firmware/updates/amdgpu/dcn_4_0_1_dmcub.bin.zst and run
update-initramfs again, otherwise it keeps shadowing the packaged file.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173041

Title:
  black screen after upgrading linux-firmware-amd-graphics to 0ubuntu3.4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-firmware-amd-graphics/+bug/2173041/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to