Skip to content

Suspend doesn't work when PreserveVideoMemoryAllocations is enabled #472

@Monsterovich

Description

@Monsterovich

NVIDIA Open GPU Kernel Modules Version

525.85.05

Does this happen with the proprietary driver (of the same version) as well?

Yes

Operating System and Version

Linux Mint 21.1

Kernel Release

Linux pc 5.19.15-xanmod1 #0~20221012.git85103f7 SMP Wed Oct 12 15:04:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Hardware: GPU

GPU 0: NVIDIA GeForce RTX 3060 Ti (UUID: GPU-039a34f7-087c-dc8f-a607-e0d937443d0f)

Describe the bug

An error occurs when trying to boot into the system after suspend if PreserveVideoMemoryAllocations is enabled:

[   10.255125] NVRM: GPU 0000:05:00.0: PreserveVideoMemoryAllocations module parameter is set. System Power Management attempted without driver procfs suspend interface. Please refer to the 'Configuring Power Management Support' section in the driver README.
[   10.255127] nvidia 0000:05:00.0: PM: pci_pm_freeze(): nv_pmops_freeze+0x0/0x20 [nvidia] returns -5
[   10.255200] nvidia 0000:05:00.0: PM: dpm_run_callback(): pci_pm_freeze+0x0/0xc0 returns -5
[   10.255203] nvidia 0000:05:00.0: PM: failed to quiesce async: error -5

To Reproduce

  1. Create a file /etc/modprobe.d/nvidia-power-management.conf with the following content:
options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp
  1. sudo update-initramfs -c -k all to re-generate the kernels.
  2. Reboot.
  3. Go to suspend mode.
  4. Get an error when trying to load a saved state.

Bug Incidence

Always

nvidia-bug-report.log.gz

nvidia-bug-report.log.gz

More Info

https://forums.developer.nvidia.com/t/cannot-suspend-gtx3060-laptop/244143/9
https://forums.developer.nvidia.com/t/preservevideomemoryallocations-systemd-services-causes-resume-from-hibernate-to-fail/233643/3

Metadata

Metadata

Assignees

Labels

NV-TriagedAn NVBug has been created for dev to investigatebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions