Bug 266888 - hint.* don't survive suspend/resume
Summary: hint.* don't survive suspend/resume
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 13.1-STABLE
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-07 14:20 UTC by Eirik Oeverby
Modified: 2022-10-11 19:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eirik Oeverby 2022-10-07 14:20:59 UTC
Hi,

Have applied the patch by Tom Jones from #253288 which works wonders, but during A/B testing with and without the patch, I stumbled across something potentially significant: Hints given via the boot loader prompt - and presumably via loader.conf - do not survive a suspend/resume cycle.

In this case, the hint to disable hwpstate_intel was set during initial boot, and the system was stable. After a suspend/resume had set my heart racing (it actually worked!), the system wedged shortly after, as if the aforementioned hint had not been set. I'm guessing the hwpstate_intel driver attached itself upon resume because the hint was purged from memory, leading to the wedging problem resurfacing.

I assume this should be easy to test/verify for anyone slightly more qualified than me, but my suspicion is that this will affect a significant number of scenarios where hints (and possibly other loader.conf settings) could be lost.

/Eirik