Bug 210321 - /display/dc/dcn20/dcn20_resource.c:3240 dcn20_validate_bandwidth_fp+0x8b/0xd0 [amdgpu]
Summary: /display/dc/dcn20/dcn20_resource.c:3240 dcn20_validate_bandwidth_fp+0x8b/0xd0...
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-23 16:45 UTC by vladi
Modified: 2021-03-12 15:58 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.10.0-rc5
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description vladi 2020-11-23 16:45:17 UTC
Been happening since 5.9



[Mon Nov 23 08:42:42 2020] ------------[ cut here ]------------
[Mon Nov 23 08:42:42 2020] WARNING: CPU: 15 PID: 155 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:3240 dcn20_validate_bandwidth_fp+0x8b/0xd0 [amdgpu]
[Mon Nov 23 08:42:42 2020] Modules linked in: autofs4 ipv6 tcp_bic binfmt_misc btusb btrtl btbcm btintel bluetooth snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio snd_hda_intel snd_intel_dspcfg snd_usb_audio snd_hda_codec snd_hwdep snd_usbmidi_lib snd_hda_core rfkill amdgpu ecdh_generic snd_pcm ecc snd_seq_midi mousedev snd_seq_midi_event snd_rawmidi cdc_acm input_leds led_class iommu_v2 evdev gpu_sched snd_seq ttm i2c_algo_bit snd_seq_device drm_kms_helper snd_timer syscopyarea sysfillrect sysimgblt fb_sys_fops snd drm k10temp ccp soundcore sha1_generic button efivarfs dm_crypt encrypted_keys dm_mod r8169 realtek mdio_devres libphy usbhid
[Mon Nov 23 08:42:42 2020] CPU: 15 PID: 155 Comm: kworker/15:1 Not tainted 5.10.0-rc5 #50
[Mon Nov 23 08:42:42 2020] Hardware name: Micro-Star International Co., Ltd. MS-7B89/B450M MORTAR (MS-7B89), BIOS 1.D0 01/06/2020
[Mon Nov 23 08:42:42 2020] Workqueue: events drm_mode_rmfb_work_fn [drm]
[Mon Nov 23 08:42:42 2020] RIP: 0010:dcn20_validate_bandwidth_fp+0x8b/0xd0 [amdgpu]
[Mon Nov 23 08:42:42 2020] Code: 00 7b 2b 22 85 14 1f 00 00 75 26 f2 0f 11 85 58 26 00 00 31 d2 48 89 ee 4c 89 e7 e8 8f f6 ff ff 89 c2 22 95 14 1f 00 00 75 33 <0f> 0b eb 03 90 75 d2 66 0f 12 14 24 f2 0f 11 95 58 26 00 00 48 83
[Mon Nov 23 08:42:42 2020] RSP: 0018:ffffa93000607c28 EFLAGS: 00010246
[Mon Nov 23 08:42:42 2020] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 000000000001876f
[Mon Nov 23 08:42:42 2020] RDX: 0000000000000000 RSI: 211d5948abbbab22 RDI: 00000000000261a0
[Mon Nov 23 08:42:42 2020] RBP: ffff8d0cab2a0000 R08: ffff8d0cab2a1ec8 R09: ffff8d0c8e440000
[Mon Nov 23 08:42:42 2020] R10: ffff8d0c86dde000 R11: 0000000100000001 R12: ffff8d0c8e440000
[Mon Nov 23 08:42:42 2020] R13: 0000000000000000 R14: ffff8d0cab2a0000 R15: ffff8d0c85b20308
[Mon Nov 23 08:42:42 2020] FS:  0000000000000000(0000) GS:ffff8d0f8efc0000(0000) knlGS:0000000000000000
[Mon Nov 23 08:42:42 2020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[Mon Nov 23 08:42:42 2020] CR2: 000056169e9dd940 CR3: 00000001114fa000 CR4: 0000000000350ee0
[Mon Nov 23 08:42:42 2020] Call Trace:
[Mon Nov 23 08:42:42 2020]  dcn20_validate_bandwidth+0x2d/0x50 [amdgpu]
[Mon Nov 23 08:42:42 2020]  dc_validate_global_state+0x279/0x300 [amdgpu]
[Mon Nov 23 08:42:42 2020]  amdgpu_dm_atomic_check+0xb39/0xc30 [amdgpu]
[Mon Nov 23 08:42:42 2020]  drm_atomic_check_only+0x557/0x7e0 [drm]
[Mon Nov 23 08:42:42 2020]  drm_atomic_commit+0x19/0x70 [drm]
[Mon Nov 23 08:42:42 2020]  drm_framebuffer_remove+0x395/0x430 [drm]
[Mon Nov 23 08:42:42 2020]  drm_mode_rmfb_work_fn+0x37/0x50 [drm]
[Mon Nov 23 08:42:42 2020]  process_one_work+0x1ae/0x300
[Mon Nov 23 08:42:42 2020]  worker_thread+0x1f6/0x3e0
[Mon Nov 23 08:42:42 2020]  ? rescuer_thread+0x410/0x410
[Mon Nov 23 08:42:42 2020]  kthread+0x12a/0x150
[Mon Nov 23 08:42:42 2020]  ? kthread_create_worker_on_cpu+0x70/0x70
[Mon Nov 23 08:42:42 2020]  ret_from_fork+0x22/0x30
[Mon Nov 23 08:42:42 2020] ---[ end trace cb43a970abd417bb ]---

❯ emerge --info
Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r2, 5.10.0-rc5 x86_64)
=================================================================
System uname: Linux-5.10.0-rc5-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-gentoo-2.7
KiB Mem:    16419668 total,  12449312 free
KiB Swap:   16137212 total,  16137212 free
Timestamp of repository gentoo: Mon, 23 Nov 2020 15:05:42 +0000
Head commit of repository gentoo: b98ac916976c6de90fd633bcb2b579f57762a23c

Head commit of repository lto-overlay: 3c0f2f8521d5d8e5180e742bee80f93e64575b38

Head commit of repository mv: 45f322abb49bf38da282afe2aa8c287d99c9e630

Head commit of repository steam-overlay: 6ed5630096d43208168572264f204d40e6b2a5c0

Head commit of repository eroen: 168c481db277e12e30ba6dea71a774337512ce32

Head commit of repository mva: 88a3abdfc840fc7d5645a0570fc0c6b03a45218d

sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 3.7.12 [disabled]
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/ccache:          3.7.12::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0-r3::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000

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

lto-overlay
    location: /usr/local/portage/lto-overlay
    sync-type: git
    sync-uri: https://github.com/InBetweenNames/gentooLTO.git
    masters: gentoo mv
    priority: 50

mv
    location: /usr/local/portage/mv
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/mv.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /usr/local/portage/steam
    sync-type: git
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

eroen
    location: /usr/local/portage/eroen
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/user/eroen.git
    masters: gentoo
    priority: 9999

mva
    location: /usr/local/portage/mva
    sync-type: git
    sync-uri: https://github.com/msva/mva-overlay.git
    masters: gentoo
    priority: 9999

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/terminfo"
CXXFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=auto -fuse-linker-plugin -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en bg"
MAKEOPTS="-j17 -l9"
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/cache/gentoo"
USE="X a52 aac aalib acl acpi activities adns aio alsa amd64 asf bash-completion berkdb bluetooth branding btrfs bzip2 cairo caps cdda cdr chroot cli crypt cryptsetup cups curl custom-cflags custom-optimization dav1d dbus declarative device-mapper dri dts dv dvd dvdr egl elogind emboss encode exif faac faad ffmpeg flac fortran gbm gdbm gif glamor gles gles2 glib gnutls gold gpg graphite gstreamer gui hwaccel iconv icu imap inotify introspection iproute2 ipv6 irc ithreads iwd jpeg jumbo-build kde kerberos kipi kwallet lcms libaom libglvnd libinput libnotify libtirpc lto lzo mad maps matroska melt mng mp3 mp4 mpd mpeg mtp multilib ncurses networkmanager nls nptl offensive ogg ogm opengl openmp opus otr ozone pam pango pcre pdf pdfimport pgo phonon pic plasma png policykit ppds pulseaudio qml qt5 rar rav1e rdp readline rpc sasl screencast sdl seccomp semantic-desktop speex spell split-usr sql ssl startup-notification svg system-av1 system-cairo system-ffmpeg system-harfbuzz system-icu system-jpeg system-libevent system-libvpx system-llvm system-mesa system-webp theora threads thumbnail tidy tiff truetype udev udisks unicode upower usb user-session v4l vaapi vcd vim-syntax vnc vorbis vpx wayland widgets x264 xattr xcb xml xv xvfb xvid zip zlib zsh-completion" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda_intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache 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 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc efi-64" INPUT_DEVICES="keyboard libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="fujitsu" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Florian Evers 2020-12-27 20:17:00 UTC
Similar issue un my box. Today I updated from kernel 5.9.16 to kernel 5.10.3 and found this in the dmesg log:


[So Dez 27 19:12:10 2020] ------------[ cut here ]------------
[So Dez 27 19:12:10 2020] WARNING: CPU: 16 PID: 4138 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:3240 dcn20_validate_bandwidth_fp+0x8b/0xd0
[So Dez 27 19:12:10 2020] CPU: 16 PID: 4138 Comm: X Tainted: G                T 5.10.3-gentoo #1
[So Dez 27 19:12:10 2020] Hardware name: Gigabyte Technology Co., Ltd. X570 AORUS MASTER/X570 AORUS MASTER, BIOS F30 09/07/2020
[So Dez 27 19:12:10 2020] RIP: 0010:dcn20_validate_bandwidth_fp+0x8b/0xd0
[So Dez 27 19:12:10 2020] Code: 01 7b 2b 22 85 0c 1f 00 00 75 25 31 d2 f2 0f 11 85 50 26 00 00 48 89 ee 4c 89 e7 e8 cf f5 ff ff 89 c2 22 95 0c 1f 00 00 75 32 <0f> 0b eb 02 75 d3 f2 0f 10 14 24 f2 0f 11 95 50 26 00 00 48 83 c4
[So Dez 27 19:12:10 2020] RSP: 0018:ffff9af6c5203b50 EFLAGS: 00010246
[So Dez 27 19:12:10 2020] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000077770
[So Dez 27 19:12:10 2020] RDX: 0000000000000000 RSI: 1f37e77bc0bcc6d8 RDI: 000000000002adc0
[So Dez 27 19:12:10 2020] RBP: ffff8bceb4de0000 R08: 0000000000000006 R09: 0000000000000000
[So Dez 27 19:12:10 2020] R10: ffff8bcd43600000 R11: 0000000100000001 R12: ffff8bcd43600000
[So Dez 27 19:12:10 2020] R13: ffff8bcd43600000 R14: ffff8bcd40ca4c90 R15: ffff8bcd42ee0308
[So Dez 27 19:12:10 2020] FS:  00007fb79eed18c0(0000) GS:ffff8bdc3f000000(0000) knlGS:0000000000000000
[So Dez 27 19:12:10 2020] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[So Dez 27 19:12:10 2020] CR2: 00005613b60d8608 CR3: 000000011a3a8000 CR4: 0000000000350ee0
[So Dez 27 19:12:10 2020] Call Trace:
[So Dez 27 19:12:10 2020]  dcn20_validate_bandwidth+0x1f/0x30
[So Dez 27 19:12:10 2020]  dc_validate_global_state+0x22f/0x2a0
[So Dez 27 19:12:10 2020]  amdgpu_dm_atomic_check+0xb02/0xbe0
[So Dez 27 19:12:10 2020]  drm_atomic_check_only+0x584/0x800
[So Dez 27 19:12:10 2020]  ? _raw_spin_unlock_irqrestore+0xf/0x30
[So Dez 27 19:12:10 2020]  drm_atomic_commit+0xe/0x50
[So Dez 27 19:12:10 2020]  drm_atomic_connector_commit_dpms+0xd2/0xf0
[So Dez 27 19:12:10 2020]  drm_mode_obj_set_property_ioctl+0x193/0x3d0
[So Dez 27 19:12:10 2020]  ? drm_connector_set_obj_prop+0x80/0x80
[So Dez 27 19:12:10 2020]  drm_connector_property_set_ioctl+0x3c/0x60
[So Dez 27 19:12:10 2020]  drm_ioctl_kernel+0xad/0xf0
[So Dez 27 19:12:10 2020]  drm_ioctl+0x215/0x390
[So Dez 27 19:12:10 2020]  ? drm_connector_set_obj_prop+0x80/0x80
[So Dez 27 19:12:10 2020]  amdgpu_drm_ioctl+0x44/0x80
[So Dez 27 19:12:10 2020]  __x64_sys_ioctl+0x7e/0xb0
[So Dez 27 19:12:10 2020]  do_syscall_64+0x33/0x80
[So Dez 27 19:12:10 2020]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[So Dez 27 19:12:10 2020] RIP: 0033:0x7fb79f103d77
[So Dez 27 19:12:10 2020] Code: 01 75 a5 49 8d 3c 1c e8 f7 fe ff ff 85 c0 78 a6 5b 4c 89 e0 5d 41 5c c3 66 2e 0f 1f 84 00 00 00 00 00 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d c1 70 0c 00 f7 d8 64 89 01 48
[So Dez 27 19:12:10 2020] RSP: 002b:00007ffddf8e14d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[So Dez 27 19:12:10 2020] RAX: ffffffffffffffda RBX: 00007ffddf8e1510 RCX: 00007fb79f103d77
[So Dez 27 19:12:10 2020] RDX: 00007ffddf8e1510 RSI: 00000000c01064ab RDI: 000000000000000c
[So Dez 27 19:12:10 2020] RBP: 00000000c01064ab R08: 0000000000000000 R09: 00007fb79f7d1d10
[So Dez 27 19:12:10 2020] R10: 00007fb79f7d1d20 R11: 0000000000000246 R12: 00005613b703c390
[So Dez 27 19:12:10 2020] R13: 000000000000000c R14: 0000000000000000 R15: 00005613b6113e00
[So Dez 27 19:12:10 2020] ---[ end trace 4936e0098b209a6c ]---


waterstation ~ # emerge --info
Portage 3.0.9 (python 3.8.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.32-r3, 5.10.3-gentoo x86_64)
=================================================================
System uname: Linux-5.10.3-gentoo-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.2.5
KiB Mem:    65794276 total,  56616072 free
KiB Swap:   16864252 total,  16864252 free
Timestamp of repository gentoo: Sun, 27 Dec 2020 15:00:01 +0000
Head commit of repository gentoo: 465bb6880edff24a20d24e074a4da935c3be4123
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo
dev-util/cmake:           3.17.4-r1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r3::gentoo
Repositories:

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

localrepo
    location: /usr/local/portage
    masters: gentoo

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/unifi"
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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en ru"
MAKEOPTS="-j20"
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"
USE="X a52 aac acl acpi activities alsa amd64 bash-completion berkdb bluetooth branding browserplugin bzip2 cairo caps cdda cddb cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode epub exif farstream fbcondecor flac fortran g3dvl gbm gdbm gif git gpg gphoto2 gpm gui iconv icq icu inotify ipod ipv6 jabber jingle jpeg kde kipi kolab kpathsea kwallet latex lcms lensfun libglvnd libnotify libtirpc mad mercurial mikmod mmx mmxext mng mod mp3 mp4 mpeg multilib mythtv ncurses netlink nls nptl nsplugin ogg opengl openmp opus oscar otr pam pango pch pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 raw rdesktop rdp readline rss scanner sdl seccomp semantic-desktop sip skype spell split-usr sse sse2 sse3 sse4_1 ssl ssse3 startup-notification svg taglib tcpd theora thumbnail tiff truetype udev udisks unicode upower usb v4l v4l2 vaapi video vlc vnc vorbis vulkan widgets wxwidgets x264 xattr xcb xcomposite xml xmpp xv xvid zip zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="epson epson2" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

waterstation ~ # 

Regards,
Florian
Comment 2 Tyler Kropp 2021-01-07 02:49:38 UTC
Not sure how far back it goes exactly, but I'm getting the same error on 5.4.80, also Gentoo.
Comment 3 Florian Evers 2021-01-19 22:25:46 UTC
Hi,

new info: this "crash" can be reproduced very easily here on my system. It is enough to switch the screen off and on again to find the dump in the dmesg log. I did not test yet whether it happens during switching off or while switiching it back on, but I may test that using a second box.

I first noticed that the crash never happens if I work or play on my computer, but if I come back after a pause I certainly found it in the logs. Thus I got the assumption that it happens during the power saving phase of the screen. Interestingly, using the power switch of the screen the dump can be triggered very easily and 100% reliably.

Hope this helps!

Regards,
Florian
Comment 4 Tristen Hayfield 2021-03-12 12:31:15 UTC
I'm seeing this on the 5.10.* series as well. Currently 5.10.23, Gentoo. Radeon RX 5500 XT.

Looking at the offending section of code, it seems an assertion is being triggered:

	// Fallback: Try to only support G6 temperature read latency
	context->bw_ctx.dml.soc.dram_clock_change_latency_us = context->bw_ctx.dml.soc.dummy_pstate_latency_us;

	voltage_supported = dcn20_validate_bandwidth_internal(dc, context, false);
	dummy_pstate_supported = context->bw_ctx.bw.dcn.clk.p_state_change_support;

	if (voltage_supported && dummy_pstate_supported) {
		context->bw_ctx.bw.dcn.clk.p_state_change_support = false;
		goto restore_dml_state;
	}

	// ERROR: fallback is supposed to always work.
	ASSERT(false);

So one of (or both) voltage_supported and dummy_pstate_supported are evaluating to false here and falling through to the assertions.

Stack trace attached for completeness' sake. Hopefully a dev that understands the hardware will take a look at this one day and find it helpful.

[  642.193449] WARNING: CPU: 22 PID: 3546 at drivers/gpu/drm/amd/amdgpu/../display/dc/dcn20/dcn20_resource.c:3242 dcn20_validate_bandwidth_fp+0xd3/0xf0 [amdgpu]
[  642.193450] Modules linked in: fuse nfs lockd grace nfs_ssc sunrpc k10temp amdgpu backlight gpu_sched snd_hda_codec_hdmi ttm iwlmvm iwlwifi acpi_cpufreq efivarfs
[  642.193457] CPU: 22 PID: 3546 Comm: X Not tainted 5.10.23-gentoo #1
[  642.193457] Hardware name: System manufacturer System Product Name/TUF GAMING X570-PLUS (WI-FI), BIOS 3402 01/13/2021
[  642.193487] RIP: 0010:dcn20_validate_bandwidth_fp+0xd3/0xf0 [amdgpu]
[  642.193488] Code: 5d 41 5c c3 5b 48 89 ee 4c 89 e7 5d ba 01 00 00 00 41 5c e9 2f f6 ff ff 41 0f b6 f4 48 c7 c7 a0 a8 8c c0 31 c0 e8 8d 09 14 d9 <0f> 0b 48 89 9d 50 26 00 00 44 89 e0 5b 5d 41 5c c3 0f 0b e9 53 ff
[  642.193489] RSP: 0018:ffffc18284b37b40 EFLAGS: 00010246
[  642.193490] RAX: 0000000000000000 RBX: 4079400000000000 RCX: 0000000000000000
[  642.193490] RDX: 0000000000000000 RSI: ffff9ea22f197380 RDI: ffff9ea22f197380
[  642.193491] RBP: ffff9e93ab0e0000 R08: 0000000000000000 R09: ffffc18284b37910
[  642.193492] R10: ffffc18284b37908 R11: ffffffff9a722228 R12: 0000000000000001
[  642.193492] R13: 0000000000000000 R14: ffff9e93ab0e0000 R15: ffff9e9344e5b560
[  642.193493] FS:  00007fc5f22978c0(0000) GS:ffff9ea22f180000(0000) knlGS:0000000000000000
[  642.193494] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  642.193494] CR2: 000055fa36a96628 CR3: 00000001155b2000 CR4: 0000000000350ee0
[  642.193495] Call Trace:
[  642.193526]  dcn20_validate_bandwidth+0x24/0x40 [amdgpu]
[  642.193548]  dc_validate_global_state+0x284/0x300 [amdgpu]
[  642.193580]  amdgpu_dm_atomic_check+0xb09/0xc00 [amdgpu]
[  642.193584]  drm_atomic_check_only+0x555/0x7d0
[  642.193585]  drm_atomic_commit+0xe/0x50
[  642.193586]  drm_atomic_connector_commit_dpms+0xd5/0xf0
[  642.193588]  drm_mode_obj_set_property_ioctl+0x184/0x3a0
[  642.193589]  ? drm_connector_set_obj_prop+0x80/0x80
[  642.193590]  drm_connector_property_set_ioctl+0x32/0x50
[  642.193592]  drm_ioctl_kernel+0xa5/0xf0
[  642.193593]  drm_ioctl+0x20a/0x3a0
[  642.193594]  ? drm_connector_set_obj_prop+0x80/0x80
[  642.193614]  amdgpu_drm_ioctl+0x44/0x80 [amdgpu]
[  642.193616]  __x64_sys_ioctl+0x81/0xa0
[  642.193618]  do_syscall_64+0x33/0x80
[  642.193620]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[  642.193621] RIP: 0033:0x7fc5f24cb227
[  642.193622] Code: 1f 40 00 48 89 d8 49 8d 3c 1c 48 f7 d8 49 39 c4 72 b1 e8 0c ff ff ff 85 c0 78 b6 5b 4c 89 e0 5d 41 5c c3 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 11 6c 0c 00 f7 d8 64 89 01 48
[  642.193622] RSP: 002b:00007fff122b98c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  642.193623] RAX: ffffffffffffffda RBX: 00007fff122b9900 RCX: 00007fc5f24cb227
[  642.193624] RDX: 00007fff122b9900 RSI: 00000000c01064ab RDI: 000000000000000c
[  642.193624] RBP: 00000000c01064ab R08: 0000000000000000 R09: 00007fc5f2b97d10
[  642.193625] R10: 00007fc5f2b97d20 R11: 0000000000000246 R12: 000055fa38755350
[  642.193625] R13: 000000000000000c R14: 0000000000000000 R15: 000055fa36abf540
[  642.193626] ---[ end trace b1edc8bf2eac897c ]---


I added the following line before the assertion and recompiled the kernel:
DC_LOG_ERROR("voltage_supported: %d, dummy_pstate_supported: %d\n", voltage_supported, dummy_pstate_supported);

When the issue triggered again, it logged:
[drm:dcn20_validate_bandwidth_fp [amdgpu]] *ERROR* voltage_supported: 1, dummy_pstate_supported: 0

So in my case the assertion is being triggered because dummy_pstate_supported is false and the fallback is not working as intended.
Comment 5 Tristen Hayfield 2021-03-12 15:58:43 UTC
I did some more digging into this. I put some logging inside the if block to see if that branch is ever taken:

	if (voltage_supported && dummy_pstate_supported) {
		context->bw_ctx.bw.dcn.clk.p_state_change_support = false;
		goto restore_dml_state;
	}

in order to log when or if the fallback worked. The logs confirmed that the fallback is often used and generally works. Upon starting up the system and starting up Xorg I get about a dozen log messages indicating that it entered the if block. The only exception seems to be as Florian describes above, that when the display shuts off due to power-saving it triggers the assertion.

Note You need to log in before you can comment on or make changes to this bug.