As of now PCI core skips pci_prepare_to_sleep(), which put device to D3,
if pci_save_state() was called by the driver's suspend callback.
IMO there are two ways to handle this:
1) Don't call pci_save_state().
2) Manually put device to D3 after pci_save_state().
Let's try 1) first:
diff --git a/nv.c b/nv.c
index b6dc6f3..ed250c8 100644
--- a/nv.c
+++ b/nv.c
@@ -4200,8 +4200,6 @@ nv_power_management(
nv_kthread_q_stop(&nvl->bottom_half_q);
nv_disable_pat_support();
-
- pci_save_state(nvl->pci_dev);
break;
}
case NV_PM_ACTION_RESUME:
--
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/1836630
Title:
System76 Oryx Pro (oryp5) with 5.0.0-21: Fail to resume from suspend
Status in Linux:
Unknown
Status in linux package in Ubuntu:
Confirmed
Status in linux-hwe-edge package in Ubuntu:
Confirmed
Bug description:
After upgrading the Ubuntu kernel to version 5.0.0-21, the System76
Oryx Pro (oryp5) fails to resume from suspend when using discrete
NVIDIA graphics
The issue can be created on this hardware by following these steps:
- Install Ubuntu 18.04.2
- Add the proposed updates: https://wiki.ubuntu.com/Testing/EnableProposed
- Upgrade:
sudo apt-get updatesudo apt-get dist-upgrade
- Install 5.0 HWE kernel:
sudo apt-get install linux-generic-hwe-18.04-edge
- Install NVIDIA driver:
sudo apt-get install nvidia-driver-430
- Reboot:
sudo reboot
- Attempt suspend/resume cycle
This occurred after upgrading the kernel from version 5.0.0-20.
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/controlC1: system76 1721 F.... pulseaudio
/dev/snd/controlC0: system76 1721 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
MachineType: System76 Oryx Pro
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux-hwe-edge
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.0.0-21-generic
root=UUID=10b5d457-8884-4b50-bd82-9b38e7f36564 ro
ProcVersionSignature: Ubuntu 5.0.0-21.22~18.04.1-generic 5.0.15
RelatedPackageVersions:
linux-restricted-modules-5.0.0-21-generic N/A
linux-backports-modules-5.0.0-21-generic N/A
linux-firmware 1.173.9
Tags: bionic
Uname: Linux 5.0.0-21-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm sudo
_MarkForUpload: True
dmi.bios.date: 05/07/2019
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.07.08
dmi.board.asset.tag: Tag 12345
dmi.board.name: Oryx Pro
dmi.board.vendor: System76
dmi.board.version: oryp5
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: System76
dmi.chassis.version: oryp5
dmi.modalias:
dmi:bvnINSYDECorp.:bvr1.07.08:bd05/07/2019:svnSystem76:pnOryxPro:pvroryp5:rvnSystem76:rnOryxPro:rvroryp5:cvnSystem76:ct10:cvroryp5:
dmi.product.family: Not Applicable
dmi.product.name: Oryx Pro
dmi.product.sku: Not Applicable
dmi.product.version: oryp5
dmi.sys.vendor: System76
To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1836630/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp