amdgpu creates UBSAN: invalid-load in /display/amdgpu_dm/amdgpu_dm.c:6044:84

Bug #1961468 reported by MichaelE
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

System works relatively stable, am mainly seeing issues when resuming from standby. But I cannot say whether it is related to this report in dmesg

[ 4.258606] amdgpu 0000:03:00.0: amdgpu: RAS: optional ras ta ucode is not available
[ 4.268193] amdgpu 0000:03:00.0: amdgpu: RAP: optional rap ta ucode is not available
[ 4.268197] amdgpu 0000:03:00.0: amdgpu: SECUREDISPLAY: securedisplay ta ucode is not available
[ 4.268801] amdgpu 0000:03:00.0: amdgpu: SMU is initialized successfully!
[ 4.270242] [drm] kiq ring mec 2 pipe 1 q 0
[ 4.270945] [drm] Display Core initialized with v3.2.149!
[ 4.271480] [drm] DMUB hardware initialized: version=0x0101001C
[ 4.289069] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
[ 4.313490] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input22
[ 4.313564] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:03:00.6/sound/card1/input23
[ 4.313806] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.313809] Bluetooth: BNEP filters: protocol multicast
[ 4.313813] Bluetooth: BNEP socket layer initialized
[ 4.477199] [drm] VCN decode and encode initialized successfully(under DPG Mode).
[ 4.477218] [drm] JPEG decode initialized successfully.
[ 4.478487] kfd kfd: amdgpu: Allocated 3969056 bytes on gart
[ 4.512435] memmap_init_zone_device initialised 524288 pages in 4ms
[ 4.512440] amdgpu: HMM registered 2048MB device memory
[ 4.512477] amdgpu: SRAT table not found
[ 4.512478] amdgpu: Virtual CRAT table created for GPU
[ 4.513372] amdgpu: Topology: Add dGPU node [0x1638:0x1002]
[ 4.513380] kfd kfd: amdgpu: added device 1002:1638
[ 4.513507] amdgpu 0000:03:00.0: amdgpu: SE 1, SH per SE 2, CU per SH 18, active_cu_number 28
[ 4.515763] [drm] fb mappable at 0x3B0CD3000
[ 4.515766] [drm] vram apper at 0x3B0000000
[ 4.515767] [drm] size 8294400
[ 4.515768] [drm] fb depth is 24
[ 4.515768] [drm] pitch is 7680
[ 4.515870] fbcon: amdgpudrmfb (fb0) is primary device
[ 4.515945] ================================================================================
[ 4.515945] UBSAN: invalid-load in /build/linux-aa0B4d/linux-5.15.0/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6044:84
[ 4.515947] load of value 192 is not a valid value for type '_Bool'
[ 4.515948] CPU: 0 PID: 497 Comm: systemd-udevd Not tainted 5.15.0-18-generic #18-Ubuntu
[ 4.515950] Hardware name: LENOVO 82N7/LNVNB161216, BIOS H9CN25WW 11/12/2021
[ 4.515951] Call Trace:
[ 4.515952] <TASK>
[ 4.515954] show_stack+0x52/0x58
[ 4.515959] dump_stack_lvl+0x4a/0x5f
[ 4.515963] dump_stack+0x10/0x12
[ 4.515964] ubsan_epilogue+0x9/0x45
[ 4.515965] __ubsan_handle_load_invalid_value.cold+0x44/0x49
[ 4.515967] create_stream_for_sink.cold+0x5d/0xbb [amdgpu]
[ 4.516166] create_validate_stream_for_sink+0x59/0x150 [amdgpu]
[ 4.516346] dm_update_crtc_state+0x235/0x7b0 [amdgpu]
[ 4.516517] amdgpu_dm_atomic_check+0x596/0xcd0 [amdgpu]
[ 4.516721] ? ww_mutex_lock+0x83/0x90
[ 4.516730] ? dm_plane_format_mod_supported+0x1f/0x100 [amdgpu]
[ 4.516939] ? drm_plane_check_pixel_format+0x45/0x90 [drm]
[ 4.516966] ? drm_atomic_plane_check+0x12f/0x360 [drm]
[ 4.516982] drm_atomic_check_only+0x253/0x4b0 [drm]
[ 4.516998] drm_atomic_commit+0x18/0x50 [drm]
[ 4.517012] drm_client_modeset_commit_atomic+0x1df/0x220 [drm]
[ 4.517029] drm_client_modeset_commit_locked+0x5b/0x160 [drm]
[ 4.517044] ? mutex_lock+0x13/0x40
[ 4.517048] drm_client_modeset_commit+0x27/0x50 [drm]
[ 4.517066] __drm_fb_helper_restore_fbdev_mode_unlocked+0xc2/0xf0 [drm_kms_helper]
[ 4.517082] drm_fb_helper_set_par+0x40/0x60 [drm_kms_helper]
[ 4.517095] fbcon_init+0x2bf/0x650
[ 4.517099] visual_init+0xf1/0x180
[ 4.517102] do_bind_con_driver.isra.0+0x1f9/0x370
[ 4.517104] do_take_over_console+0x3b/0x50
[ 4.517106] do_fbcon_takeover+0x78/0x120
[ 4.517107] fbcon_fb_registered+0xfb/0x160
[ 4.517109] do_register_framebuffer+0x222/0x350
[ 4.517111] register_framebuffer+0x22/0x40
[ 4.517112] __drm_fb_helper_initial_config_and_unlock+0x99/0xd0 [drm_kms_helper]
[ 4.517126] drm_fb_helper_initial_config+0x43/0x50 [drm_kms_helper]
[ 4.517142] amdgpu_fbdev_init+0xd8/0x110 [amdgpu]
[ 4.517322] amdgpu_device_init.cold+0x31b/0x7db [amdgpu]
[ 4.517469] ? do_pci_enable_device+0xd7/0x100
[ 4.517477] amdgpu_driver_load_kms+0x6d/0x330 [amdgpu]
[ 4.517589] amdgpu_pci_probe+0x11e/0x1a0 [amdgpu]
[ 4.517676] local_pci_probe+0x4b/0x90
[ 4.517678] pci_device_probe+0x115/0x1f0
[ 4.517680] really_probe+0x21e/0x420
[ 4.517683] __driver_probe_device+0x115/0x190
[ 4.517684] driver_probe_device+0x23/0xc0
[ 4.517686] __driver_attach+0xbd/0x1d0
[ 4.517687] ? __device_attach_driver+0x110/0x110
[ 4.517688] bus_for_each_dev+0x7e/0xc0
[ 4.517690] driver_attach+0x1e/0x20
[ 4.517691] bus_add_driver+0x135/0x200
[ 4.517693] driver_register+0x95/0xf0
[ 4.517694] __pci_register_driver+0x68/0x70
[ 4.517695] amdgpu_init+0x7c/0x1000 [amdgpu]
[ 4.517831] ? 0xffffffffc2de5000
[ 4.517833] do_one_initcall+0x48/0x1d0
[ 4.517837] ? kmem_cache_alloc_trace+0x19e/0x2e0
[ 4.517840] do_init_module+0x62/0x280
[ 4.517843] load_module+0xac9/0xbb0
[ 4.517844] __do_sys_finit_module+0xbf/0x120
[ 4.517846] __x64_sys_finit_module+0x18/0x20
[ 4.517846] do_syscall_64+0x5c/0xc0
[ 4.517849] ? exit_to_user_mode_prepare+0x37/0xb0
[ 4.517851] ? syscall_exit_to_user_mode+0x27/0x50
[ 4.517853] ? __x64_sys_mmap+0x33/0x40
[ 4.517855] ? do_syscall_64+0x69/0xc0
[ 4.517856] ? syscall_exit_to_user_mode+0x27/0x50
[ 4.517857] ? __x64_sys_lseek+0x18/0x20
[ 4.517859] ? do_syscall_64+0x69/0xc0
[ 4.517860] ? sysvec_call_function+0x4e/0x90
[ 4.517862] ? asm_sysvec_call_function+0xa/0x20
[ 4.517864] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 4.517865] RIP: 0033:0x7fcf64d52a3d
[ 4.517867] Code: 5b 41 5c c3 66 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 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 c3 53 0f 00 f7 d8 64 89 01 48
[ 4.517868] RSP: 002b:00007ffe34c1d228 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 4.517870] RAX: ffffffffffffffda RBX: 0000563057d05aa0 RCX: 00007fcf64d52a3d
[ 4.517871] RDX: 0000000000000000 RSI: 00007fcf64ee5441 RDI: 000000000000001a
[ 4.517872] RBP: 0000000000020000 R08: 0000000000000000 R09: 0000000000000002
[ 4.517872] R10: 000000000000001a R11: 0000000000000246 R12: 00007fcf64ee5441
[ 4.517873] R13: 0000563057d0ef90 R14: 0000563057d032d0 R15: 0000563057d052d0
[ 4.517874] </TASK>
[ 4.517924] ================================================================================
[ 4.556766] ucsi_acpi: probe of USBC000:00 failed with error -5
[ 4.573268] Console: switching to colour frame buffer device 240x67

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.15.0-18-generic 5.15.0-18.18
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
ApportVersion: 2.20.11-0ubuntu77
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sat Feb 19 09:35:34 2022
InstallationDate: Installed on 2022-02-11 (7 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
MachineType: LENOVO 82N7
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcFB: 0 amdgpudrmfb
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-5.15.0-18-generic root=UUID=d1796991-349c-4784-b8c3-e0a2eb2fc132 ro rootflags=subvol=@ quiet splash resume=UUID=34078276-40b3-44a8-95d9-2d9ff2caa568 mem_sleep_default=deep vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-18-generic N/A
 linux-backports-modules-5.15.0-18-generic N/A
 linux-firmware 20220217.git6342082c-0ubuntu1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/12/2021
dmi.bios.release: 1.25
dmi.bios.vendor: LENOVO
dmi.bios.version: H9CN25WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: LNVNB161216
dmi.board.vendor: LENOVO
dmi.board.version: SDK0T76463 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 31
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Yoga 7 14ACN6
dmi.ec.firmware.release: 1.25
dmi.modalias: dmi:bvnLENOVO:bvrH9CN25WW:bd11/12/2021:br1.25:efr1.25:svnLENOVO:pn82N7:pvrYoga714ACN6:rvnLENOVO:rnLNVNB161216:rvrSDK0T76463WIN:cvnLENOVO:ct31:cvrYoga714ACN6:skuLENOVO_MT_82N7_BU_idea_FM_Yoga714ACN6:
dmi.product.family: Yoga 7 14ACN6
dmi.product.name: 82N7
dmi.product.sku: LENOVO_MT_82N7_BU_idea_FM_Yoga 7 14ACN6
dmi.product.version: Yoga 7 14ACN6
dmi.sys.vendor: LENOVO

Revision history for this message
MichaelE (michael-eitelwein) wrote :
tags: added: amdgpu
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Andreas (temposuender) wrote :

I've updated today to
Linux PC1-Linux 5.15.0-18-generic #18-Ubuntu SMP Fri Jan 21 14:57:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

and I got on boot
UBSAN: invalid-load in /build/linux-aa0B4d/linux-5.15.0/drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:6044:84
load of value 192 is not a valid value for type '_Bool'

Have to crtl+d to go ahead booting

Revision history for this message
You-Sheng Yang (vicamo) wrote :

This duplicates bug 1956497, which should be available in 5.15.0-19.19 or newer.

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.