Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925909 - sys-kernel/gentoo-kernel-6.6.16 [amdgpu] warning on boot
Summary: sys-kernel/gentoo-kernel-6.6.16 [amdgpu] warning on boot
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-01 11:02 UTC by Christian D.
Modified: 2024-10-01 14:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
amdgpu-warning (amdgpu-warning.txt,9.71 KB, text/plain)
2024-09-30 10:10 UTC, toon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian D. 2024-03-01 11:02:13 UTC
On my current (new) machine, using AMD Ryzen 7900 X3D integrated graphics, dmesg shows the following warning on every boot: 

[    6.224505] ------------[ cut here ]------------
[    6.224508] WARNING: CPU: 0 PID: 710 at drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_capability.c:1526 dp_retrieve_lttpr_cap+0x16f/0xd40 [amdgpu]
[    6.224585] Modules linked in: intel_rapl_msr intel_rapl_common snd_hda_codec_hdmi snd_usb_audio(+) edac_mce_amd amdgpu(+) mt7921e snd_hda_intel mt7921_common snd_usbmidi_lib snd_intel_dspcfg snd_intel_sdw_acpi mt792x_lib snd_ump amdxcp kvm_amd snd_hda_codec mt76_connac_lib snd_rawmidi gpu_sched mt76 snd_seq_device i2c_algo_bit snd_hda_core drm_suballoc_helper mc 8021q snd_hwdep drm_ttm_helper btusb kvm garp btrtl ttm mrp snd_pcm stp btintel drm_exec mac80211 llc snd_timer btbcm irqbypass drm_display_helper btmtk libarc4 snd cec vfat rapl wmi_bmof pcspkr k10temp drm_buddy i2c_piix4 bluetooth soundcore r8169 fat cfg80211 rfkill joydev gpio_amdpt gpio_generic loop fuse nfnetlink crct10dif_pclmul crc32_pclmul crc32c_intel polyval_clmulni polyval_generic ghash_clmulni_intel sha512_ssse3 nvme sha256_ssse3 sha1_ssse3 sp5100_tco nvme_core ccp nvme_common video wmi
[    6.224649] CPU: 0 PID: 710 Comm: (udev-worker) Not tainted 6.6.16-gentoo-dist #1
[    6.224653] Hardware name: Micro-Star International Co., Ltd. MS-7D75/MAG B650 TOMAHAWK WIFI (MS-7D75), BIOS 1.70 08/10/2023
[    6.224658] RIP: 0010:dp_retrieve_lttpr_cap+0x16f/0xd40 [amdgpu]
[    6.224717] Code: 04 25 28 00 00 00 75 45 48 83 c4 10 89 d8 5b 5d e9 76 54 16 cb 48 c7 c2 4b a7 41 c1 be 02 00 00 00 31 ff e8 73 bd c2 ca eb b7 <0f> 0b c6 85 9c 02 00 00 80 b9 80 00 00 00 48 c7 c2 70 21 3f c1 31
[    6.224724] RSP: 0018:ffffc900016d75e8 EFLAGS: 00010246
[    6.224727] RAX: 0000000000000000 RBX: 0000000000000001 RCX: 00ffffffffffffff
[    6.224730] RDX: 0000000000000007 RSI: ffffc900016d75e8 RDI: 0000000000000000
[    6.224733] RBP: ffff8881143bc000 R08: ffff888109449a60 R09: 0000000000000000
[    6.224735] R10: 0000000000000002 R11: 0000000000000001 R12: 0000000000000001
[    6.224738] R13: ffff8881143ba000 R14: ffff8881115a1800 R15: 0000000000000000
[    6.224741] FS:  00007f459d9a1840(0000) GS:ffff888fd8200000(0000) knlGS:0000000000000000
[    6.224744] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.224747] CR2: 00007fdcd0002018 CR3: 000000010c41a000 CR4: 0000000000f50ef0
[    6.224750] PKRU: 55555554
[    6.224752] Call Trace:
[    6.224754]  <TASK>
[    6.224756]  ? dp_retrieve_lttpr_cap+0x16f/0xd40 [amdgpu]
[    6.224811]  ? __warn+0x81/0x130
[    6.224816]  ? dp_retrieve_lttpr_cap+0x16f/0xd40 [amdgpu]
[    6.224868]  ? report_bug+0x171/0x1a0
[    6.224873]  ? handle_bug+0x3c/0x80
[    6.224877]  ? exc_invalid_op+0x17/0x70
[    6.224880]  ? asm_exc_invalid_op+0x1a/0x20
[    6.224886]  ? dp_retrieve_lttpr_cap+0x16f/0xd40 [amdgpu]
[    6.224940]  ? dp_retrieve_lttpr_cap+0x114/0xd40 [amdgpu]
[    6.224991]  dp_retrieve_lttpr_cap+0x22d/0xd40 [amdgpu]
[    6.225042]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225046]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225049]  ? dp_is_sink_present+0xbc/0x120 [amdgpu]
[    6.225102]  link_detect_connection_type+0xc3e/0x10d0 [amdgpu]
[    6.225167]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225171]  ? dm_read_reg_func+0x38/0xf0 [amdgpu]
[    6.225248]  link_detect+0x3a/0x480 [amdgpu]
[    6.225309]  ? dal_gpio_destroy_irq+0x25/0x40 [amdgpu]
[    6.225368]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225371]  ? query_hpd_status+0x6e/0xa0 [amdgpu]
[    6.225425]  amdgpu_dm_update_connector_after_detect+0x220d/0x3100 [amdgpu]
[    6.225497]  ? amdgpu_dm_replay_disable+0x180/0xf20 [amdgpu]
[    6.225564]  ? amdgpu_dm_replay_disable+0x870/0xf20 [amdgpu]
[    6.225627]  amdgpu_dm_update_connector_after_detect+0x30e2/0x3100 [amdgpu]
[    6.225686]  amdgpu_device_init+0x1da6/0x24b0 [amdgpu]
[    6.225733]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225738]  amdgpu_driver_load_kms+0x19/0x190 [amdgpu]
[    6.225784]  amdgpu_drm_ioctl+0x760/0xee0 [amdgpu]
[    6.225830]  local_pci_probe+0x42/0xa0
[    6.225835]  pci_device_probe+0xc7/0x240
[    6.225839]  really_probe+0x19b/0x3e0
[    6.225844]  ? __pfx___driver_attach+0x10/0x10
[    6.225846]  __driver_probe_device+0x78/0x160
[    6.225849]  driver_probe_device+0x1f/0x90
[    6.225852]  __driver_attach+0xd2/0x1c0
[    6.225855]  bus_for_each_dev+0x85/0xd0
[    6.225859]  bus_add_driver+0x116/0x220
[    6.225863]  driver_register+0x59/0x100
[    6.225865]  ? __pfx_init_module+0x10/0x10 [amdgpu]
[    6.225914]  do_one_initcall+0x5a/0x320
[    6.225920]  do_init_module+0x60/0x230
[    6.225924]  init_module_from_file+0x86/0xc0
[    6.225929]  idempotent_init_module+0x120/0x2b0
[    6.225934]  __x64_sys_finit_module+0x5e/0xb0
[    6.225937]  do_syscall_64+0x5d/0xc0
[    6.225940]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225944]  ? do_syscall_64+0x6c/0xc0
[    6.225946]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225949]  ? syscall_exit_to_user_mode+0x2b/0x40
[    6.225953]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225956]  ? do_syscall_64+0x6c/0xc0
[    6.225958]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225961]  ? irqtime_account_irq+0x40/0xc0
[    6.225965]  ? srso_alias_return_thunk+0x5/0x7f
[    6.225968]  ? __irq_exit_rcu+0x4b/0xc0
[    6.225972]  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
[    6.225975] RIP: 0033:0x7f459e32f1f9
[    6.225978] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 07 6c 0c 00 f7 d8 64 89 01 48
[    6.225984] RSP: 002b:00007ffc8ee01578 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    6.225988] RAX: ffffffffffffffda RBX: 000055eba2663de0 RCX: 00007f459e32f1f9
[    6.225991] RDX: 0000000000000000 RSI: 00007f459e79b2df RDI: 000000000000004a
[    6.225993] RBP: 0000000000000000 R08: 00007f459e3f6b20 R09: 1a1a1a1a1a1a1a1a
[    6.225996] R10: 0000000000000050 R11: 0000000000000246 R12: 00007f459e79b2df
[    6.225999] R13: 0000000000020000 R14: 000055eba2623900 R15: 0000000000000000
[    6.226004]  </TASK>
[    6.226005] ---[ end trace 0000000000000000 ]---


Reproducible: Always

Steps to Reproduce:
1. Have system with Ryzen 7900X3D integrated graphics
2. boot using sys-kernel/gentoo-kernel-6.6.16 (default config)
3. run dmesg
Actual Results:  
A warning is shown

Expected Results:  
No warning is shown

$ emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/systemd/merged-usr, gcc-13, glibc-2.38-r10, 6.6.16-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.16-gentoo-dist-x86_64-AMD_Ryzen_9_7900X3D_12-Core_Processor-with-glibc2.38
KiB Mem:    64970484 total,  61566160 free
KiB Swap:   32767996 total,  32767996 free
Timestamp of repository gentoo: Wed, 28 Feb 2024 14:30:00 +0000
Head commit of repository gentoo: 0316e9564baa3e2379fcd4a4289c51995dd0710d
Timestamp of repository steam-overlay: Fri, 16 Feb 2024 23:18:24 +0000
Head commit of repository steam-overlay: 214f4d5b11850f9751ee0939df3dd2aaaaef6d26

sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.27.9::gentoo
dev-build/libtool:         2.4.7-r2::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r1::gentoo
dev-lang/python:           3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
sys-apps/baselayout:       2.14-r2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.3-r1::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           16.0.6::gentoo, 17.0.6::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/lld:             17.0.6::gentoo
sys-devel/llvm:            16.0.6::gentoo, 17.0.6::gentoo
sys-kernel/linux-headers:  6.6::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 3
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="rsync://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US de de_DE fr fr_FR"
MAKEOPTS="-j24 -l24"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bindist bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dri dts dvd dvdr emacs encode exif flac fortran gdbm gif gpm gtk gtk3 gui iconv icu ipv6 jpeg lcms libedit libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vorbis vulkan wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US de de-DE fr" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 toon 2024-09-30 10:10:30 UTC
Created attachment 904243 [details]
amdgpu-warning

The warning still occurs with kernel gentoo-sources-6.11.0, see attachment.
Comment 2 Nowa Ammerlaan gentoo-dev 2024-09-30 10:13:40 UTC
I'd recommend to also try sys-kernel/git-sources, if it still happens there as well, then please report it upstream: https://gitlab.freedesktop.org/drm/amd/-/issues
Comment 3 toon 2024-09-30 10:28:57 UTC
(In reply to Nowa Ammerlaan from comment #2)
> I'd recommend to also try sys-kernel/git-sources, if it still happens there
> as well, then please report it upstream:
> https://gitlab.freedesktop.org/drm/amd/-/issues

Thanks for the quick reply.
Will do when I find the time.

BTW, everything works normally.
This is a workstation running KDE Plasma 6 on Wayland.
It had two screens:
- one old HD LCD TV screen, connected via HDMI
- one modern WQHD monitor, connected via DP
Comment 4 toon 2024-10-01 14:26:52 UTC
(In reply to Nowa Ammerlaan from comment #2)
> I'd recommend to also try sys-kernel/git-sources, if it still happens there
> as well, then please report it upstream:
> https://gitlab.freedesktop.org/drm/amd/-/issues

Today I emerged sys-kernel/git-sources-6.12_rc1,
compiled, installed and booted it.

The WARNING message with the stack dump did not occur.
So either it is solved in the upcoming 6.12 kernel release,
or it is caused by some gentoo-specific patch.