Skip to content

Unset IsHibernate to avoid resume from GC6/S0ix suspend taking incorrect hibernation resume path #1199

Open
freenull wants to merge 1 commit into
NVIDIA:mainfrom
freenull:main
Open

Unset IsHibernate to avoid resume from GC6/S0ix suspend taking incorrect hibernation resume path #1199
freenull wants to merge 1 commit into
NVIDIA:mainfrom
freenull:main

Conversation

@freenull

@freenull freenull commented Jun 12, 2026

Copy link
Copy Markdown

With S0ix enabled and using the latest version 610.43.02, the following sequence:

  • Hibernate
  • Resume from hibernate
  • Suspend
  • Resume from suspend

Results in no video output and no backlight with spinning fans. Kernel logs reveal an assertion failure:

NVRM: nvAssertFailedNoLog: Assertion failed: pKernelPmu->pPrintBuf == NULL @ kern_pmu.c:188

After many debug prints I have been able to pinpoint this down to rm_power_management picking the wrong branch here during the final resume (RmPowerManagement instead of RmGcxPowerManagement). It turns out that the root cause is InHibernate never getting reset after resuming from hibernation. Because the _RESUME action conditionally switches the path based on InHibernate, the correct GC6 path is used during suspend, but once resume is requested the driver attempts to resume from hibernation instead. I've added a single line to reset InHibernate back to false after resuming from hibernation and I can now successfully execute any mix of suspend and hibernate on my machine.

This fixes Bug 5156763 based on my report on the NVIDIA forums from a while back. The proprietary driver used to dump the exact same assertion failure back when I was still using it, so I suspect the same patch should apply cleanly there as well :)

InHibernate status was not reset after resuming from hibernate. This is
normally not an issue because any STANDBY PM action resets it, but the
GC6 resume path used when S0ix is enabled does not.
The flag is now reset after leaving hibernation.
@CLAassistant

CLAassistant commented Jun 12, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants