Sleep and PnP (Reliability) Test Fails for ARM64

aklak 0 Reputation points
2026-04-28T17:48:03.64+00:00

Issue Summary

I'm trying to certify a minifilter driver with HLK tests where the client is ARM64.

Because Microsoft's documentation states that physical hardware must be used, I purchased a Microsoft Surface (2025).

All the tests pass fine, except the DF FSMF – Sleep and PnP (disable/enable) with I/O Before and After (Reliability) test.

Parameters used

Parameter Name Value
DQ DriverBinaryNames='myDriver.sys'
Wpa2skAesSsid kistestssid
Wpa2PskPassword password
ResumeDelay 10
WDTFREMOTESYSTEM
TestCycles 4
IOPeriod 1
DriverVerifierAdditionalDrivers MSDMFilt.sys
FSMFApiTest TRUE
LogDriverVerifierEventsAsFailure FALSE

Key Observations

  • This test passes fine when certifying for x86_64.
  • For ARM64 Virtual Machine, test passes.
  • For ARM64 (Physical device), the test fails every time.
  • When targeting another driver (not my own) WDFILTER.sys the test fails with the same symptoms
  • When targeting Microsoft's sample driver passThrough the test fails with the same symptoms
  • The tests will pass fine with the TestCycle parameter set to 3. It always fails when set to the default 4 cycles.

Errors/Warnings

  • HLK Studio typically states that the test failed due to an unexpected reboot
  • The client device's event viewer system logs show several instances of this log:
       Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: TE.ProcessHost.exe (6136) consumed 63349456896 bytes, MsMpEng.exe (5332) consumed 301400064 bytes, and HLKAcmengine.exe (6944) consumed 116539392 bytes.
    
    There are more logs regarding memory usage such as: The Client License Service (ClipSVC) failed to start due to insufficient memory resources.
  • Right before the test fails, an error appears on the client where the TE.ProcessHost.exe process says: breakpoint reached
  • The CMD prompt on the client right before the test fails will often show: crash with exception code 0xC000027B occurred in module "TextInputHost.exe"

Question

The above observations and errors/warnings seem to point to either the device or the test itself being the issue. I've factory reset the laptop already and also created a fresh .vhlk to use in Hyper-V but the outcome is the same.

What is the root cause of the error? Is this a known problem? Can I workaround the problem? Is the problem the test or my device?

Windows development | Windows Driver Kit (WDK)

2 answers

Sort by: Most helpful
  1. Anonymous
    2026-04-30T08:43:59.37+00:00

    Hello @aklak ,

    I would treat this as memory exhaustion first, not as a minifilter failure. And the Surface should be innocent. But, based on the public information availalbe, I would not assume this issue is known.

    What is the root cause of the error?

    I can’t name a confirmed root cause from the current data, but I would look at TE.ProcessHost.exe first. The event log says it reached about 63 GB of virtual memory, then other components started failing with insufficient memory.

    To separate a user-mode leak from kernel pool growth, capture memory snapshots before the test and after each cycle:

    
    mkdir C:\HLKDiag
    
    tasklist /v > C:\HLKDiag\tasklist_before.txt
    
    wmic process get Name,ProcessId,PageFileUsage,WorkingSetSize,VirtualSize > C:\HLKDiag\process_before.txt
    
    poolmon /b > C:\HLKDiag\poolmon_before.txt
    
    

    Repeat those commands after each cycle, changing the file names to cycle1, cycle2, and so on.

    Also, you should arm ProcDump before the run so the machine captures TE.ProcessHost.exe before it falls over:

    
    procdump64.exe -accepteula -ma -m 8192 -n 1 -s 10 -w TE.ProcessHost.exe C:\HLKDiag
    
    

    ProcDump’s memory trigger is documented here: ProcDump - Sysinternals.

    Can I workaround the problem?

    TestCycles=3 is useful for narrowing the issue, but I would not assume it is acceptable for certification unless the submission path allows that parameter change.

    For the next default TestCycles=4 run, I’d increase the page file, keep the machine as clean as possible, and collect the TE.ProcessHost.exe dump plus the poolmon snapshots. If TE.ProcessHost.exe grows each cycle while pool stays stable, the test host is the likely problem. If pool grows each cycle, the pool tags will tell you which driver/component to chase.

    I would also try one run with Microsoft Defender real-time protection temporarily disabled, only in an isolated lab setup, because your event log shows MsMpEng.exe in the memory list too. I do not think Defender is the main suspect, but it is easy to remove that variable for one controlled run.

    • Increase the page file manually before the run, so the system has more room to survive long enough to collect dumps.
    • Make sure the client has plenty of free disk space before starting the test.
    • Disconnect unnecessary peripherals.
    • Stop nonessential background software.
    • Keep the HLK controller and client on the same/latest HLK build.
    • Run RAMMap before and during the test to see whether memory is going into process private bytes, driver locked memory, mapped files, or standby/cache. RAMMap is available here: RAMMap - Sysinternals.

    If you want a trace rather than just snapshots, Windows Performance Recorder can capture memory/pool activity. The command-line options are documented here: WPR command-line options.

    
    mkdir C:\HLKDiag\Traces
    
    wpr -start Memory -start PoolUsage
    
    

    Then stop it after the third cycle or immediately when memory starts climbing:

    
    wpr -stop C:\HLKDiag\Traces\hlk_memory.etl
    
    

    If the machine reboots before you can stop the trace, then ProcDump plus periodic poolmon snapshots will probably be more useful.

    I hope this helps you troubleshoot the issue. If you found this informative, please consider providing a feedback following this guide.

    Thank you.

    Was this answer helpful?


  2. AI answer

    2026-04-28T17:48:25.49+00:00

    The context only provides general behavior and troubleshooting guidance for Device Fundamentals (DF) Sleep/PNP with I/O tests, not a specific ARM64 Surface‑only defect or memory‑leak bug in the test itself. Based on that context, only the following can be stated:

    1. What the failing test is doing

    The DF – Sleep and PNP (disable and enable) with IO Before and After (Reliability) test:

    • Cycles the system through supported sleep states (for example, CS, S1–S4).
    • Performs I/O and basic PnP (disable/enable) on devices before and after each sleep cycle.
    • Is a scenario‑based reliability test that combines I/O with power and PnP operations and runs multiple cycles, with an overall timeout of 180 minutes.

    This matches the pattern described for Device Fundamentals Reliability tests, which:

    • Run I/O for a period before and after each scenario (sleep, PnP, reboot, etc.).
    • May exercise the same device multiple times across cycles.
    1. How these tests commonly fail

    The documentation describes a common failure mode for Device Fundamentals Reliability tests:

    • I/O on a particular device can permanently hang.
    • The test then fails after a timeout (often hours) when HLK terminates the hung process.

    The guidance is to:

    • Investigate the hang while the test process is still running, rather than waiting for timeout.
    • Use the “Test Hangs” guidance in the Device Fundamentals troubleshooting topic.
    1. What the test parameters mean and how they affect behavior

    The DF Sleep and PNP test supports parameters such as:

    • DQ: WDTF SDEL query identifying the target device(s).
    • TestCycles: number of test cycles.
    • IOPeriod: I/O period in minutes.
    • ResumeDelay: delay after each sleep cycle.
    • DriverVerifierAdditionalDrivers, DriverVerifierExcludedFlags, DriverVerifierCustomizeConfiguration: control Driver Verifier behavior.

    The context does not provide any ARM64‑specific caveats for these parameters, nor a documented limitation on TestCycles for ARM64.

    1. Supported platforms and configuration

    The DF Sleep and PNP tests explicitly list ARM64 as a supported platform and require “special configuration” and Device Fundamentals prerequisites to be met before running. There is no note in the context that ARM64 physical devices are excluded or that this test is known to fail only on ARM64 hardware.

    1. Recommended next steps from the documentation

    Given a repeatable failure on a supported platform, the official guidance is:

    • Review the test documentation and logs
      • Use the Device.DevFund test documentation to understand the exact scenario and verify configuration.
      • Thoroughly review the test logs, especially entries before the failure, to see which scenario and device were under test when the failure occurred.
      • Review all “Additional Files” attached to the test result in HLK Studio (for example, SetupAPI logs for PnP scenarios).
    • Investigate hangs and timeouts while the process is running
      • If the failure is due to a hang or timeout, investigate while the hung Te.exe/test process is still active, following the “Test Hangs” guidance in the Device Fundamentals troubleshooting topic.
    • Reproduce and debug from the command line
      • Reproduce the DF test from a command prompt using Te.exe and the appropriate DevFund test DLL and /p:"DQ=..." parameter.
      • Optionally add /BreakOnError so that the system breaks into the kernel debugger at the moment the test logs an error, allowing inspection of system state, memory, and the driver stack.
    • Use general HLK troubleshooting
      • Apply the generic HLK test troubleshooting guidance to confirm the client is stable, not sleeping unexpectedly outside the test, and that there are no HLK client issues contributing to the failure.
    • Escalate to Microsoft if needed
      • Device Fundamentals test owners monitor the Windows Hardware Testing and Certification Forum for issues with these tests.
      • If the problem persists on supported hardware with correct configuration and after log‑based triage, open a support case as described in the Windows HLK Support documentation so the test owners can investigate whether this is a product/test issue.

    The context does not identify a known issue where DF – Sleep and PNP with I/O fails only on ARM64 physical devices at TestCycles = 4, nor does it attribute such a failure to the device versus the test. It only documents how the test works, common failure modes (hang/timeout), and the official triage and escalation paths.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.