User Details
- User Since
- Feb 26 2021, 3:47 PM (258 w, 1 d)
Today
Yesterday
(Small point: Last if currently looks slightly weird as it is calling getcwd_physical() even on !physical, would use a logical variable instead of physical.)
New approach
"Simpler" approach with some common file holding the common sysctl knobs. As said, I anticipate that machdep.hwpstate_pkg_ctrl will be removed from hwpstate_amd, but debug.hwpstate_verbose will probably stay and start to be used in hwpstate_intel as well. There are other knobs in hwpstate_amd that might become relevant for Intel too, but I haven't spent too much time on them, they could be moved later.
I'm already working on it. May be what ShengYi proposed in D54528 already, but I'm trying a different, somewhat simpler approach.
Thu, Feb 5
I do not see any other such type mistake with enum power_stype involved (have checked quite a number of references, including all of acpic.c and subr_power.c).
Tue, Feb 3
Unconditionally deactivate interrupts on MSR_OP_LOCAL.
Mon, Feb 2
Gentle ping.
Not doing it now, but going further, in order to facilitate changing the internal type of sysctl knobs that are integers, beyond the case evoked here (int -> bool), without breaking the ABI, we should probably tolerate any type of integer in input and output (really, size of I/O buffers) and convert them to the target (internal) type, raising some errors where appropriate (e.g., if the value is out of range for the target type with the exception of booleans).
Would appreciate a:
Suggested by: olce
tag line at commit. Thanks!
Sun, Feb 1
- Disable interrupts on MSR_OP_LOCAL and non-atomic MSR manipulation.
- Trim and update comments.
Sat, Jan 31
Fri, Jan 30
Thu, Jan 29
Wed, Jan 28
The /* Symmetry with prison_created */ comment is indeed welcome to clear the slight but apparently necessary confusion coming from the hook prison_cleanup being called in mac_prison_destroy() while prison_created is not called from mac_prison_init(). :-)
Alternative: Leave sysctl_handle_bool() as is, and created another one, as well as accompanying macros SYSCTL_ADD_xxx() and co., to define booleans compatible with ints. In addition, these could unconditionally output/input an integer, easing back and forth internal transition between int and bool as this would preserve the ABI.
Remove useless initialization of temp_int in the SYSCTL_IN() case.
Update commit message
Update commit message
Prevent users to set hw.acpi.s4bios to true if S4BIOS is not supported.
- Impacts of new prerequisite (D54926)
- Slightly tweak the description of 'hw.acpi.s4bios'