How to fix NVMe RAID hibernate failure issue

Steve Chang 6 Reputation points
   We are developing NVMe RAID StorPort driver and encounter 
 hibernation issue:
 "If the system is booted from our RAID disk, and
 then try to hibernate, the windows only load driver
 for the dummy PCI device as it is booted from the
 dummy PCI device, but the disk is combined by other
 NVME PCI devices which are unavailable, the hibernation
 is failed and system crashed as no disk found."

   When loading our RAID driver for the second time at hibernate, 
 HwFindAdapter routine of dummy PCI device is invoked, 
 but HwFindAdapter routine of NVMe PCI device is not invoked.
 Current problem:
   How can we modify the StorPort driver code so that HwFindAdapter   
   routine of the NVMe PCI device is invoked in hibernation?

   We try to add power relationship between NVMe PCI device and 
 dummy PCI device, but HwFindAdapter routine of NVMe PCI device
 is still not invoked.
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
9,529 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
6,814 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 43,316 Reputation points

    Hello there,

    There are two different scenarios of failures that occurs randomly:

    -When the hibernation screen goes off, the hard drive works for a few seconds. After that, the hard drive stops working but the PC is still powered on. After powering down by pressing the power button for three seconds and powering on again, Windows starts like a normal clean start, as if it was shut down instead of being hibernated.

    -When the hibernation screen goes off, the hard drive works for a few seconds and finally goes STANDBY instead of hibernate.

    Try the below steps and see if that helps:

    Disable/enable hibernation using powercfg -h tool

    Change hibernation file size to 100% of amount of RAM (powercfg -h size 100)

    Run deep CHKDSK during system boot

    Hope this resolves your Query !!

    --If the reply is helpful, please Upvote and Accept it as an answer–

    0 comments No comments

  2. Steve Chang 6 Reputation points


    Thanks for your reply.

    But my question is to how to adjust driver code to support hibernate.

    Could you give some suggestions on this?

    0 comments No comments