Issue definitely also occurs with stock Ubuntu GNOME DE (just did a
fresh install on a ThinkPad t495s with "AMD Ryzen 7 PRO 3700U w/ Radeon
Vega Mobile Gfx"; up-to-date kernel 5.3.0-26-generic and the issue
occurred twice within 12 hours of installing - once upon resuming and
the 2nd time just after forcing a reboot due to first issue.

I fully understand that complaining here isn't likely to have much
effect but it's a real shame that just when AMD finally appears to be
taking the Edge over Intel (we *desperately* need the competition IMHO;
see the vulnerabilities debacle), the premier Linux desktop distribution
falls flat on its face.  I also understand that the issue is likely not
Debian/Ubuntu specific.

That said, I really hope that Canonical sees this bug and sponsors a fix
(perhaps in partnership with AMD) at least before 20.04 LTS hits the
shelves.

Stack trace:

Jan 21 08:56:57 t495s kernel: [ 7403.538132] ------------[ cut here 
]------------
Jan 21 08:56:57 t495s kernel: [ 7403.538257] WARNING: CPU: 5 PID: 1566 at 
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_hw_sequencer.c:932 
dcn10_verify_allow_pstate_change_high.col
d+0xc/0x23d [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538258] Modules linked in: rfcomm ccm cmac 
bnep nls_iso8859_1 iwlmvm snd_hda_codec_realtek mac80211 libarc4 
snd_hda_codec_generic uvcvideo btusb snd_h
da_codec_hdmi btrtl videobuf2_vmalloc btbcm videobuf2_memops snd_seq_midi 
btintel videobuf2_v4l2 edac_mce_amd videobuf2_common snd_seq_midi_event 
snd_hda_intel kvm_amd snd_hda_codec video
dev bluetooth ccp kvm irqbypass snd_rawmidi snd_hda_core joydev mc serio_raw 
input_leds iwlwifi snd_hwdep wmi_bmof thinkpad_acpi snd_pcm nvram ecdh_generic 
k10temp ecc ledtrig_audio snd_s
eq snd_pci_acp3x snd_seq_device rtsx_pci_ms snd_timer ipmi_devintf memstick 
cfg80211 ipmi_msghandler snd ucsi_acpi typec_ucsi typec soundcore mac_hid 
sch_fq_codel parport_pc ppdev lp parp
ort ip_tables x_tables autofs4 hid_logitech_hidpp hid_logitech_dj hid_generic 
usbhid hid dm_crypt amdgpu crct10dif_pclmul crc32_pclmul ghash_clmulni_intel 
aesni_intel amd_iommu_v2 rtsx_pc
i_sdmmc gpu_sched i2c_algo_bit ttm drm_kms_helper aes_x86_64 crypto_simd 
syscopyarea sysfillrect
Jan 21 08:56:57 t495s kernel: [ 7403.538286]  sysimgblt cryptd glue_helper 
psmouse fb_sys_fops drm i2c_piix4 nvme rtsx_pci r8169 nvme_core realtek wmi 
video i2c_scmi
Jan 21 08:56:57 t495s kernel: [ 7403.538295] CPU: 5 PID: 1566 Comm: Xorg 
Tainted: G        W         5.3.0-26-generic #28-Ubuntu
Jan 21 08:56:57 t495s kernel: [ 7403.538296] Hardware name: LENOVO 
20QJCTO1WW/20QJCTO1WW, BIOS R13ET40W(1.14 ) 10/29/2019
Jan 21 08:56:57 t495s kernel: [ 7403.538381] RIP: 
0010:dcn10_verify_allow_pstate_change_high.cold+0xc/0x23d [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538385] Code: 83 c8 ff e9 59 f7 f7 ff 48 
c7 c7 08 f1 a2 c0 e8 9d 97 79 f8 0f 0b 83 c8 ff e9 43 f7 f7 ff 48 c7 c7 08 f1 
a2 c0 e8 87 97 79 f8 <0f> 0b 80 bb 9f 01 00 00 00 75 05 e9 6a 1e f8 ff 48 8b 83 
f8 02 00
Jan 21 08:56:57 t495s kernel: [ 7403.538386] RSP: 0018:ffff9d04820f7710 EFLAGS: 
00010246
Jan 21 08:56:57 t495s kernel: [ 7403.538387] RAX: 0000000000000024 RBX: 
ffff88e30cc80000 RCX: 0000000000000006
Jan 21 08:56:57 t495s kernel: [ 7403.538388] RDX: 0000000000000000 RSI: 
0000000000000082 RDI: ffff88e31ed57440
Jan 21 08:56:57 t495s kernel: [ 7403.538388] RBP: ffff9d04820f7720 R08: 
0000000000000617 R09: 0000000000000004
Jan 21 08:56:57 t495s kernel: [ 7403.538389] R10: 0000000000000000 R11: 
0000000000000001 R12: ffff88e30cc80000
Jan 21 08:56:57 t495s kernel: [ 7403.538390] R13: ffff88e1d06701b8 R14: 
00000000ffffffff R15: ffff88e1d1253000
Jan 21 08:56:57 t495s kernel: [ 7403.538391] FS:  00007effe0e44a80(0000) 
GS:ffff88e31ed40000(0000) knlGS:0000000000000000
Jan 21 08:56:57 t495s kernel: [ 7403.538392] CS:  0010 DS: 0000 ES: 0000 CR0: 
0000000080050033
Jan 21 08:56:57 t495s kernel: [ 7403.538392] CR2: 0000000000000000 CR3: 
000000040fbec000 CR4: 00000000003406e0
Jan 21 08:56:57 t495s kernel: [ 7403.538393] Call Trace:
Jan 21 08:56:57 t495s kernel: [ 7403.538474]  
dcn10_pipe_control_lock.part.0+0x76/0x80 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538554]  
dcn10_apply_ctx_for_surface+0x4a8/0x5e0 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538634]  ? 
dc_remove_plane_from_context+0x108/0x270 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538635] done.
Jan 21 08:56:57 t495s kernel: [ 7403.538706]  ? 
dc_rem_all_planes_for_stream+0xc8/0x110 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538777]  
dc_commit_state_no_check+0x387/0x580 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538840]  ? 
amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538914]  dc_commit_state+0x96/0xb0 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.538987]  
amdgpu_dm_atomic_commit_tail+0x3bf/0xfb0 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539062]  ? 
optc1_get_crtc_scanoutpos+0x69/0xa0 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539130]  ? 
amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539199]  ? dm_read_reg_func+0x25/0x90 
[amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539268]  ? generic_reg_get+0x22/0x40 
[amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539272]  ? _cond_resched+0x19/0x30
Jan 21 08:56:57 t495s kernel: [ 7403.539318]  ? 
amdgpu_bo_pin_restricted+0x61/0x2a0 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539321]  ? ww_mutex_unlock+0x26/0x30
Jan 21 08:56:57 t495s kernel: [ 7403.539325]  ? 
ttm_eu_backoff_reservation+0x4d/0x90 [ttm]
Jan 21 08:56:57 t495s kernel: [ 7403.539398]  ? 
dm_plane_helper_prepare_fb+0x156/0x290 [amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539400]  ? _cond_resched+0x19/0x30
Jan 21 08:56:57 t495s kernel: [ 7403.539402]  ? 
wait_for_completion_timeout+0x3a/0x120
Jan 21 08:56:57 t495s kernel: [ 7403.539404]  ? 
wait_for_completion_interruptible+0x37/0x160
Jan 21 08:56:57 t495s kernel: [ 7403.539414]  commit_tail+0x41/0x70 
[drm_kms_helper]
Jan 21 08:56:57 t495s kernel: [ 7403.539421]  ? commit_tail+0x41/0x70 
[drm_kms_helper]
Jan 21 08:56:57 t495s kernel: [ 7403.539428]  
drm_atomic_helper_commit+0x118/0x120 [drm_kms_helper]
Jan 21 08:56:57 t495s kernel: [ 7403.539496]  amdgpu_dm_atomic_commit+0xb1/0xf0 
[amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539510]  drm_atomic_commit+0x4a/0x50 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539522]  
drm_atomic_connector_commit_dpms+0xdf/0x100 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539535]  
drm_mode_obj_set_property_ioctl+0x156/0x2a0 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539550]  ? 
drm_connector_set_obj_prop+0x90/0x90 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539563]  
drm_connector_property_set_ioctl+0x3b/0x60 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539572]  drm_ioctl_kernel+0xae/0xf0 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539575]  ? sock_write_iter+0x8c/0xf0
Jan 21 08:56:57 t495s kernel: [ 7403.539586]  drm_ioctl+0x234/0x3d0 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539599]  ? 
drm_connector_set_obj_prop+0x90/0x90 [drm]
Jan 21 08:56:57 t495s kernel: [ 7403.539603]  ? do_iter_write+0xe6/0x1a0
Jan 21 08:56:57 t495s kernel: [ 7403.539655]  amdgpu_drm_ioctl+0x4e/0x80 
[amdgpu]
Jan 21 08:56:57 t495s kernel: [ 7403.539658]  do_vfs_ioctl+0x407/0x670
Jan 21 08:56:57 t495s kernel: [ 7403.539660]  ? vfs_read+0x12e/0x160
Jan 21 08:56:57 t495s kernel: [ 7403.539661]  ksys_ioctl+0x67/0x90
Jan 21 08:56:57 t495s kernel: [ 7403.539663]  __x64_sys_ioctl+0x1a/0x20
Jan 21 08:56:57 t495s kernel: [ 7403.539666]  do_syscall_64+0x5a/0x130
Jan 21 08:56:57 t495s kernel: [ 7403.539668]  
entry_SYSCALL_64_after_hwframe+0x44/0xa9
Jan 21 08:56:57 t495s kernel: [ 7403.539671] RIP: 0033:0x7effe119267b
Jan 21 08:56:57 t495s kernel: [ 7403.539673] Code: 0f 1e fa 48 8b 05 15 28 0d 
00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa 
b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e5 27 0d 00 f7 d8 64 
89 01 48
Jan 21 08:56:57 t495s kernel: [ 7403.539674] RSP: 002b:00007ffe6c5cc058 EFLAGS: 
00000246 ORIG_RAX: 0000000000000010
Jan 21 08:56:57 t495s kernel: [ 7403.539676] RAX: ffffffffffffffda RBX: 
00007ffe6c5cc090 RCX: 00007effe119267b
Jan 21 08:56:57 t495s kernel: [ 7403.539677] RDX: 00007ffe6c5cc090 RSI: 
00000000c01064ab RDI: 000000000000000c
Jan 21 08:56:57 t495s kernel: [ 7403.539677] RBP: 00000000c01064ab R08: 
0000000000000000 R09: 00007effe0a6ed10
Jan 21 08:56:57 t495s kernel: [ 7403.539678] R10: 00007effe0a6ed20 R11: 
0000000000000246 R12: 000055c6f5937c40
Jan 21 08:56:57 t495s kernel: [ 7403.539679] R13: 000000000000000c R14: 
0000000000000000 R15: 000055c6f3b879c0
Jan 21 08:56:57 t495s kernel: [ 7403.539681] ---[ end trace d8cbaf69d48fc546 
]---

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xserver-xorg-video-amdgpu in Ubuntu.
https://bugs.launchpad.net/bugs/1842954

Title:
  AMD GPU hang/crash/black screen after suspend(ing)

Status in Linux:
  Unknown
Status in xserver-xorg-video-amdgpu package in Ubuntu:
  Fix Released

Bug description:
  This is a freeze which is obviously caused by a bug in the xserver-
  xorg-video-amdgpu package ver: 19.0.1* which is shipped with Ubuntu
  19.04 and 19.10. Upstream fix is needed.

  Workaround:
  sudo nano /etc/apt/sources.list, copy-paste one line which contains "main 
multiverse universe restricted" and change the distribution name "eoan" or 
"disco" to "bionic" (for this line only)
  So you will have a line like
  deb [url] bionic multiverse main restricted universe
  ctrl+o, save it

  sudo update
  sudo apt install xserver-xorg-core=2:1.19.6-1ubuntu4
  sudo apt install xserver-xorg-video-amdgpu=18.0.1-1

  sudo reboot

  If everything is OK then you should keep these packages by using:
  sudo apt-mark hold xserver-xorg-core=2:1.19.6-1ubuntu4
  sudo apt-mark hold xserver-xorg-video-amdgpu=18.0.1-1

  You can later unhold them by using the same commands with "unhold"

  If a newer bionic package version comes out (fe. a security update)
  you should unhold the packages do an apt update and use apt policy
  [package name without = and version] to check the new bionic versions
  that you can install using my original install commands with the
  proper version paramter.

  If something is not OK, then press E on grub menu, paste nomodeset
  parameter at the and of the kernel line then f10. After the kernel
  loading and the command line login you should just do an apt upgrade
  if you hadn't held the packages before.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1842954/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to