automatic iwlwifi suspend/resume is here to test

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Sun, 24 May 2026 15:04:59 UTC
Hi,

it's gotten quiet here so let's change that :)

As of a few minutes ago I pushed the automatic suspend/resume framework
for LinuxKPI 802.11 drivers into main.

I believe PR  263632 is the oldest still open iwlwifi PR we have and that
should be addressed with this.

In case you are curious why it finally arrives now (drm-kmod 6.12-lts/master allowed
some of my laptops to reliably suspend/resume and bring display back so I no longer
needed to wait for USBDg and then figure out how to keep the xhci alive (not suspend)
to not lose the debug connection);  see also my latest comment on
https://github.com/FreeBSDFoundation/proj-laptop/issues/58#issuecomment-4529029922
for references to the other works.


If you update please do not forget to remove (comment out but keep for a few days?)
any other workarounds you may have implemented, e.g., in rc.suspend/rc.resume.

If the framework gives you trouble you can change the
 	compat.linuxkpi.80211.suspend_type
sysctl to 0 (in /etc/sysctl.conf) and fall back to whatever you have done so
far.  When you do this be sure to loudly report it either here or on PR 263632
and report any errors you get.

In general please do report any issue you are seeing if they are not documented
in a PR yet (even if you got used to them).

Beware, like with any native driver (but very rarely seen so little known), if
the suspend fails for whatever reason we will report the error back to the
general suspend call and that will abort the suspend!  I was able to provoke that
last year during development but haven't seen it anymore in any testing since.
Just saying.

The framework is currently enabled for iwlwifi only, rtw88 and rtw89 will follow
as soon as I get a chance to test.  If you want to have a look you'd have to
set the RTW88_CONFIG_PM / RTW89_CONFIG_PM variable to 1 in the respective module
Makefile and recompile (but I do not know if they even compile after the last
updates).


Blessed days and lots of joy,
/bz

-- 
Bjoern A. Zeeb                                                     r15:7