[Kernel-packages] [Bug 1872375] Re: AMDGPU driver crashes when resuming from sleep if a ffmpeg-vaapi encoding backend is being used

2020-06-15 Thread Launchpad Bug Tracker
[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

** Changed in: linux (Ubuntu)
   Status: Incomplete => Expired

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1872375

Title:
  AMDGPU driver crashes when resuming from sleep if a ffmpeg-vaapi
  encoding backend is being used

Status in linux package in Ubuntu:
  Expired

Bug description:
  Good morning, I'm writing this because is pretty much easily
  reproduceable in this hardware

  I discovered this when I set up an automatic permanent replay-
  recording in OBS, using FFMPEG VAAPI backend

  I usually put the system to sleep, and pretty much 100% of the times
  so far when OBS is recording something AND is using the ffmpeg-vaapi
  backend, putting the system to sleep and then waking it back, causes
  the amdgpu driver to crash no matter what

  Any other sleep/standby test made without recording using ffmpeg-vaapi
  (even using default ffmpeg software x264 backend) has not made the
  driver crash so far

  My setup:
  CPU: AMD Ryzen 5 1600
  GPU: AMD Sapphire RX 580 8GB
  RAM: 12GB DDR4 (3x4GB)
  System: Ubuntu 20.04 Focal Fossa
  Desktop: GNOME 3.36.1
  Kernel: 5.4.0-21-generic #25-Ubuntu
  Display server: X.org

  Here is the system crashing logs dmesg

  (Don't mind the hostname, it's a desktop PC not a thinkpad)

  Apr 13 01:49:02 haru-ThinkPad-T440s kernel: [   64.100393] PM: suspend entry 
(deep)
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.108441] Filesystems sync: 
0.008 seconds
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.108716] Freezing user 
space processes ... (elapsed 0.002 seconds) done.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.111290] OOM killer 
disabled.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.111291] Freezing remaining 
freezable tasks ... (elapsed 0.000 seconds) done.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.112125] printk: Suspending 
console(s) (use no_console_suspend to debug)
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.113085] serial 00:04: 
disabled
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.113317] parport_pc 00:03: 
disabled
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151545] sd 0:0:0:0: [sda] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151713] sd 1:0:0:0: [sdc] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151720] sd 10:0:0:0: [sdd] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151724] sd 11:0:0:0: [sdb] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151807] sd 0:0:0:0: [sda] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.152043] sd 1:0:0:0: [sdc] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.157544] sd 10:0:0:0: [sdd] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.612461] ACPI: Preparing to 
enter system sleep state S3
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.925094] PM: Saving 
platform NVS memory
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.925117] Disabling non-boot 
CPUs ...
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.927049] smpboot: CPU 1 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.931788] smpboot: CPU 2 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.934941] IRQ 37: no longer 
affine to CPU3
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.935968] smpboot: CPU 3 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.940098] smpboot: CPU 4 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.943503] IRQ 27: no longer 
affine to CPU5
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.943510] IRQ 28: no longer 
affine to CPU5
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.944533] smpboot: CPU 5 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.947662] IRQ 44: no longer 
affine to CPU6
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.948697] smpboot: CPU 6 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.952180] IRQ 30: no longer 
affine to CPU7
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.953216] smpboot: CPU 7 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.957820] smpboot: CPU 8 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.961177] IRQ 39: no longer 
affine to CPU9
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.961187] IRQ 63: no longer 
affine to CPU9
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.962201] smpboot: CPU 9 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.965160] IRQ 40: no longer 
affine to CPU10
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.966184] smpboot: CPU 10 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.970189] 

[Kernel-packages] [Bug 1872375] Re: AMDGPU driver crashes when resuming from sleep if a ffmpeg-vaapi encoding backend is being used

2020-04-16 Thread Kai-Heng Feng
Please test latest mainline kernel:
https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.7-rc1/

Particularly, to test the commit:
commit 487eca11a321ef33bcf4ca5adb3c0c4954db1b58
Author: Prike Liang 
Date:   Tue Apr 7 20:21:26 2020 +0800

drm/amdgpu: fix gfx hang during suspend with video playback (v2)

** Changed in: linux (Ubuntu)
   Status: Confirmed => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1872375

Title:
  AMDGPU driver crashes when resuming from sleep if a ffmpeg-vaapi
  encoding backend is being used

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  Good morning, I'm writing this because is pretty much easily
  reproduceable in this hardware

  I discovered this when I set up an automatic permanent replay-
  recording in OBS, using FFMPEG VAAPI backend

  I usually put the system to sleep, and pretty much 100% of the times
  so far when OBS is recording something AND is using the ffmpeg-vaapi
  backend, putting the system to sleep and then waking it back, causes
  the amdgpu driver to crash no matter what

  Any other sleep/standby test made without recording using ffmpeg-vaapi
  (even using default ffmpeg software x264 backend) has not made the
  driver crash so far

  My setup:
  CPU: AMD Ryzen 5 1600
  GPU: AMD Sapphire RX 580 8GB
  RAM: 12GB DDR4 (3x4GB)
  System: Ubuntu 20.04 Focal Fossa
  Desktop: GNOME 3.36.1
  Kernel: 5.4.0-21-generic #25-Ubuntu
  Display server: X.org

  Here is the system crashing logs dmesg

  (Don't mind the hostname, it's a desktop PC not a thinkpad)

  Apr 13 01:49:02 haru-ThinkPad-T440s kernel: [   64.100393] PM: suspend entry 
(deep)
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.108441] Filesystems sync: 
0.008 seconds
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.108716] Freezing user 
space processes ... (elapsed 0.002 seconds) done.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.111290] OOM killer 
disabled.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.111291] Freezing remaining 
freezable tasks ... (elapsed 0.000 seconds) done.
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.112125] printk: Suspending 
console(s) (use no_console_suspend to debug)
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.113085] serial 00:04: 
disabled
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.113317] parport_pc 00:03: 
disabled
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151545] sd 0:0:0:0: [sda] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151713] sd 1:0:0:0: [sdc] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151720] sd 10:0:0:0: [sdd] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151724] sd 11:0:0:0: [sdb] 
Synchronizing SCSI cache
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.151807] sd 0:0:0:0: [sda] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.152043] sd 1:0:0:0: [sdc] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.157544] sd 10:0:0:0: [sdd] 
Stopping disk
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.612461] ACPI: Preparing to 
enter system sleep state S3
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.925094] PM: Saving 
platform NVS memory
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.925117] Disabling non-boot 
CPUs ...
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.927049] smpboot: CPU 1 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.931788] smpboot: CPU 2 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.934941] IRQ 37: no longer 
affine to CPU3
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.935968] smpboot: CPU 3 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.940098] smpboot: CPU 4 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.943503] IRQ 27: no longer 
affine to CPU5
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.943510] IRQ 28: no longer 
affine to CPU5
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.944533] smpboot: CPU 5 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.947662] IRQ 44: no longer 
affine to CPU6
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.948697] smpboot: CPU 6 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.952180] IRQ 30: no longer 
affine to CPU7
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.953216] smpboot: CPU 7 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.957820] smpboot: CPU 8 is 
now offline
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.961177] IRQ 39: no longer 
affine to CPU9
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.961187] IRQ 63: no longer 
affine to CPU9
  Apr 13 01:49:08 haru-ThinkPad-T440s kernel: [   64.962201] smpboot: CPU 9 is 
now offline
  Apr 13 01:49:08