NVIDIA / NVIDIA/open-gpu-kernel-modules

Suspend doesn't work when PreserveVideoMemoryAllocations is enabled

Open
#472 225 comments 74 reactions 1 assignee View on GitHub

@amrit1711 is already working on this.

Since Jun 5, 2023.

bug NV-Triaged
Dominant language
C
Stars
17.4k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.