Suspend to RAM powers the cards off, which resets the speed selectors. A
PM_POST_SUSPEND notifier, ahead of nvidia's, runs the unlock again on every
card unlocked at boot while nvidia still has it suspended. A card that kept
power, or that nvidia has already resumed, is left as it is.
gpu_unlock.resume=0 turns this off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Older kernels (6.8, 6.14) leave a device no driver has enabled at
PCI_UNKNOWN, so the claim refused every card with -EOPNOTSUPP. Accept
PCI_UNKNOWN when PMCSR is there to confirm D0.
Supermicro X11 AMI firmware hands every card over with BME set, whatever
its option ROM and bus master settings, so the claim refused every card
with -EBUSY. Clear it and record the cleared command as the original; the
WPR2 check still refuses a card a driver has initialised.
Tested on 4x RTX 3090 (VBIOS 94.02.59.00.94 and .DD), Ubuntu 24.04,
6.8.0-31-generic, NVIDIA 610.57.04: all four unlock.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>