WARNING CPU: 2 PID: 3763 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:1197 dcn32_calculate_dccg_k1_k2_values

Bug #2041006 reported by Lawrence A Fossi
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
Lunar
Confirmed
Undecided
Unassigned
Mantic
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned
linux-hwe-6.2 (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Confirmed
Undecided
Unassigned
Lunar
Invalid
Undecided
Unassigned
Mantic
Invalid
Undecided
Unassigned
Noble
Invalid
Undecided
Unassigned

Bug Description

darkfoss@Tardis-2:~$ lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04

Clean install just apt-get update and apt-get dist-upgrade
During the installation process when intramfs is run the following error is being generated:
Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu

darkfoss@Tardis-2:~$ apt-cache policy linux-firmware
linux-firmware:
  Installed: 20220329.git681281e4-0ubuntu3.21
  Candidate: 20220329.git681281e4-0ubuntu3.21
  Version table:
 *** 20220329.git681281e4-0ubuntu3.21 500
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy-updates/main i386 Packages
        100 /var/lib/dpkg/status
     20220329.git681281e4-0ubuntu3.14 500
        500 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu jammy-security/main i386 Packages
     20220329.git681281e4-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        500 http://us.archive.ubuntu.com/ubuntu jammy/main i386 Packages

All of the above do not work even though the driver is installed correctly. The above error prevents radeonsi from loading.

The good news is when I installed Both 23.04 and 23.10 they had 1 working firmware each they are:
From Lunar Lobster
20230323.gitbcdcfbcf-0ubuntu1.2 security (main) 2023-07-06
Publishing details

    Created on 2023-07-06 by Andy Whitcroft
    Published on 2023-07-06

Changelog

linux-firmware (20230323.gitbcdcfbcf-0ubuntu1.2) lunar; urgency=medium

  * rtl8761b usb bluetooth doesn't work following reboot until unplug/replug (LP: #1968604)
    - rtl_bt: Update RTL8761B BT UART firmware to 0x9DC6_D922
    - rtl_bt: Update RTL8761B BT USB firmware to 0xDFC6_D922

 -- Juerg Haefliger <email address hidden> Mon, 05 Jun 2023 09:22:50 +0200

Available diffs

    diff from 20230323.gitbcdcfbcf-0ubuntu1.1 to 20230323.gitbcdcfbcf-0ubuntu1.2 (653 bytes)

Builds

    [FULLYBUILT] amd64

Built packages

    linux-firmware Firmware for Linux kernel drivers

Package files

    linux-firmware_20230323.gitbcdcfbcf-0ubuntu1.2.debian.tar.xz (3.4 MiB)
    linux-firmware_20230323.gitbcdcfbcf-0ubuntu1.2.dsc (2.0 KiB)
    linux-firmware_20230323.gitbcdcfbcf-0ubuntu1.2_all.deb (268.0 MiB)
    linux-firmware_20230323.gitbcdcfbcf.orig.tar.xz (254.0 MiB)

From The Mantic Minotaur (current stable release)
20230919.git3672ccab-0ubuntu2.1 release (main) 2023-10-09
Publishing details

    Created on 2023-10-09 by Ubuntu Archive Auto-Sync
    Published on 2023-10-09

Changelog

linux-firmware (20230919.git3672ccab-0ubuntu2.1) mantic; urgency=medium

  * /lib/firmware/brcm/brcmfmac43430-sdio.bin missing on riscv64 (LP: #2038546)
    - [Packaging] config: Don't exclude cypress fw link targets

 -- Juerg Haefliger <email address hidden> Mon, 09 Oct 2023 16:16:20 +0200

Available diffs

    diff from 20230919.git3672ccab-0ubuntu2 to 20230919.git3672ccab-0ubuntu2.1 (992 bytes)

Builds

    [FULLYBUILT] amd64
    [FULLYBUILT] arm64
    [FULLYBUILT] armhf
    [FULLYBUILT] ppc64el
    [FULLYBUILT] riscv64
    [FULLYBUILT] s390x

Built packages

    linux-firmware Firmware for Linux kernel drivers

Package files

    linux-firmware_20230919.git3672ccab-0ubuntu2.1.debian.tar.xz (3.3 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1.dsc (2.0 KiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_amd64.deb (389.5 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_arm64.deb (386.5 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_armhf.deb (384.5 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_ppc64el.deb (384.2 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_riscv64.deb (384.3 MiB)
    linux-firmware_20230919.git3672ccab-0ubuntu2.1_s390x.deb (315.0 MiB)
    linux-firmware_20230919.git3672ccab.orig.tar.xz (292.2 MiB)

darkfoss@Tardis-2:~$ glxinfo | grep render
direct rendering: Yes
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
    GLX_MESA_copy_sub_buffer, GLX_MESA_query_renderer, GLX_MESA_swap_control,
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: Radeon RX 7900 XTX (gfx1100, LLVM 16.0.6, DRM 3.54, 6.2.0-35-generic)
    GL_ARB_conditional_render_inverted, GL_ARB_conservative_depth,
    GL_INTEL_blackhole_render, GL_KHR_blend_equation_advanced,
    GL_NV_conditional_render, GL_NV_copy_image, GL_NV_depth_clamp,
    GL_ARB_compute_variable_group_size, GL_ARB_conditional_render_inverted,
    GL_INTEL_blackhole_render, GL_KHR_blend_equation_advanced,
    GL_NV_conditional_render, GL_NV_copy_depth_to_color, GL_NV_copy_image,
    GL_EXT_render_snorm, GL_EXT_robustness, GL_EXT_sRGB_write_control,
    GL_INTEL_blackhole_render, GL_KHR_blend_equation_advanced,
    GL_NV_conditional_render, GL_NV_draw_buffers, GL_NV_fbo_color_attachments,
    GL_OES_element_index_uint, GL_OES_fbo_render_mipmap,

Hope this helps get a working firmware out. I'd love to try rocm.

Tags: kern-8408
Revision history for this message
Lawrence A Fossi (darkfoss) wrote :

I extracted the firmware package from Lunar and compared the files to the one currently installed and noticed that amdgpu/gc_11_0_0_mes_2.bin is not present in the Lunar package.
Perhaps that is what is causing the issue?

Revision history for this message
Mario Limonciello (superm1) wrote :

Can you please share your kernel log from jammy when the failure has occurred?

We did test XTX working, suspect a separate issue.

Juerg Haefliger (juergh)
Changed in linux-firmware (Ubuntu):
status: New → Incomplete
tags: added: kern-8408
Revision history for this message
Lawrence A Fossi (darkfoss) wrote :

Your comments lead me do some digging and it tuns out I had somehow broken the secure boot chain. After changing the 2 bios ccp settings from auto to enabled the psp loads correctly. I downgraded the firmware with muon then Discover notified me of an upgrade I had made sure that it was set to update on reboot. Everything appears to have installed in the correct manner, I now have fully working secure display.

There are 2 remaining issues 1 new 1 old.
The new issue occurred last night after installing the new kernel upgrade:Linux Tardis-2 6.2.0-36-generic #37~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 9 15:34:04 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
I can actually see it during the boot up right after the Ubuntu slash screen and before the screen to unlock the drive encryption:

10/31/23 11:47 AM amd_gpio AMDI0030 0: Invalid config param 0014

I'm attaching the kernel log error occurs at the top right under init.

Revision history for this message
Lawrence A Fossi (darkfoss) wrote :

Second issue is resuming from sleep 1 error on shutdown different error on resume. I'm attaching the kernel log after resuming.

Sorry for the long delay from my initial post but I wanted to make sure I was providing clean information from a solid installation.

Revision history for this message
Mario Limonciello (superm1) wrote :

> amd_gpio AMDI0030 0: Invalid config param 0014

This is fixed by this patch:
https://github.com/torvalds/linux/commit/87b549efcb0f7934b0916d2a00607a878b6f1e0f

Canonical needs to backport that to applicable kernels.

> 10/31/23 12:11 PM WARNING CPU: 2 PID: 3763 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:1197 dcn32_calculate_dccg_k1_k2_values+0xec/0x120 [amdgpu]

I believe that likely Canonical is missing stable backports related to VRR.
You can cross reference a newer mainline kernel to confirm this.

affects: linux-firmware (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu Noble):
status: Incomplete → Fix Released
Changed in linux (Ubuntu Mantic):
status: New → Fix Released
Changed in linux (Ubuntu Lunar):
status: New → Confirmed
Changed in linux (Ubuntu Jammy):
status: New → Confirmed
summary: - 7900XTX support still broken on Jammy after latest update
+ WARNING CPU: 2 PID: 3763 at
+ drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:1197
+ dcn32_calculate_dccg_k1_k2_values
no longer affects: linux (Ubuntu Jammy)
affects: linux-hwe (Ubuntu Jammy) → linux-hwe-6.2 (Ubuntu Jammy)
Changed in linux-hwe-6.2 (Ubuntu Jammy):
status: New → Confirmed
Changed in linux-hwe-6.2 (Ubuntu Lunar):
status: New → Invalid
Changed in linux-hwe-6.2 (Ubuntu Mantic):
status: New → Invalid
Changed in linux-hwe-6.2 (Ubuntu Noble):
status: New → Invalid
Changed in linux (Ubuntu Jammy):
status: New → Invalid
Revision history for this message
Lawrence A Fossi (darkfoss) wrote :

I can confirm everything I'm seeing is fixed in mainline/v6.5.6 6.7.7 could not be tested due to a bad signature error.

The lone exception was amd_gpio AMDI0030 0: Invalid config param 0014. That is fixed in mainline/6.6.rc5
I did not test the earlier 6.6rc candidates.

Revision history for this message
Lawrence A Fossi (darkfoss) wrote :

The error going into sleep as well as the error coming out of sleep are now gone with the latest linux-hwe-6.2 update.Thank you.
uname -a
Linux Tardis-2 6.2.0-37-generic #38~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Nov 2 18:01:13 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

I'm seeing this error now once going into sleep and once coming out no spam in the log. Other than an longer than normal delayed blanking of the screen no apparent issues with it. IE not seeing any of the issues reported in the bug report below.

11/28/23 10:35 PM kernel [drm:dcn20_wait_for_blank_complete [amdgpu]] *ERROR* DC: failed to blank crtc!

I found this bug report so it's already fixed in the future can upload the latest kernel log if needed.
https://gitlab.freedesktop.org/drm/amd/-/issues/2581

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.