Skip to content

Comments

fix: switch darp11-b to S3 deep sleep and harden PCI suspend#1753

Draft
brianmcgillion wants to merge 1 commit intotiiuae:mainfrom
brianmcgillion:fix-darter-sleep
Draft

fix: switch darp11-b to S3 deep sleep and harden PCI suspend#1753
brianmcgillion wants to merge 1 commit intotiiuae:mainfrom
brianmcgillion:fix-darter-sleep

Conversation

@brianmcgillion
Copy link
Collaborator

S3 deep sleep fully powers down the PCIe bus, eliminating VFIO FLR config space corruption on the Intel BE200 WiFi after resume.

Also add error handling to the pci-suspend path in power.nix, mirroring the existing resume fallback (VM restart on failure).

Update vhotplug to include post-attach VID/DID verification.

Description of Changes

Type of Change

  • New Feature
  • Bug Fix
  • Improvement / Refactor

Related Issues / Tickets

Checklist

  • Clear summary in PR description
  • Detailed and meaningful commit message(s)
  • Commits are logically organized and squashed if appropriate
  • Contribution guidelines followed
  • Ghaf documentation updated with the commit - https://tiiuae.github.io/ghaf/
  • Author has run make-checks and it passes
  • All automatic GitHub Action checks pass - see actions
  • Author has added reviewers and removed PR draft status

Testing Instructions

Applicable Targets

  • Orin AGX aarch64
  • Orin NX aarch64
  • Lenovo X1 x86_64
  • Dell Latitude x86_64
  • System 76 x86_64

Installation Method

  • Requires full re-installation
  • Can be updated with nixos-rebuild ... switch
  • Other:

Test Steps To Verify:

  1. ...

S3 deep sleep fully powers down the PCIe bus, eliminating VFIO FLR
config space corruption on the Intel BE200 WiFi after resume.

Also add error handling to the pci-suspend path in power.nix, mirroring
the existing resume fallback (VM restart on failure).

Update vhotplug to include post-attach VID/DID verification.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
@brianmcgillion
Copy link
Collaborator Author

TRIAL, likely needs to be closed

@kajusnau
Copy link
Collaborator

Same issue has been replicated on X1, seems like the NIC sometimes fails to reattach after resume.
Can be verified by checking:

  • Run sudo vhotplugcli pci resume --vm net-vm on ghaf-host
  • Check ifconfig on net-vm or gui-vm desktop to see if WiFi is visible again

@brianmcgillion
Copy link
Collaborator Author

brianmcgillion commented Feb 19, 2026

I am starting to think that this might be solved by adding swap. if you look at the memory messages when this happens it seems that the memory is starved on resume causing the driver to fail to allocate space.

Also created this test patch #1768 to see if the Firmware update might help. it seems that there is no new FW though.

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