Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
If these are indeed the problems, they should be fixed in the kernel proper, not worked around in linprocfs.
sys/compat/linprocfs/linprocfs.c | ||
---|---|---|
149 ↗ | (On Diff #107290) | If you are about OSPKE, then I believe that the right fix is to re-read feature2 after setting the bit in CR4. |
150 ↗ | (On Diff #107290) | Can you explain more, where feature3 is zeroed? |
sure, I wrote a reply to the 986c4ca3 a few days ago about this
sys/compat/linprocfs/linprocfs.c | ||
---|---|---|
149 ↗ | (On Diff #107290) | agree, I commented on it above |
150 ↗ | (On Diff #107290) | https://cgit.freebsd.org/src/tree/sys/amd64/acpica/acpi_wakeup.c#n219 seems on wakeup we should reload ext features before initializecpu(), at first look |
sys/amd64/amd64/initcpu.c | ||
---|---|---|
296 | I suggest only do this once, see the IS_BSP() check above. Otherwise you introduce the unpleasant race where all APs are writing to the variables. I believe that resume occurs on BSP, please recheck. |
done, about resume on BSP, AFAIR, according to the ACPI Spec (16.3), it should,
and it works