User Details
- User Since
- Feb 26 2021, 3:47 PM (257 w, 3 d)
Today
Would appreciate a:
Suggested by: olce
tag line at commit. Thanks!
Yesterday
- 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'
Mon, Jan 26
Looks good!
Fri, Jan 23
I think this warrants a "Relnotes: yes" tag.
Almost there! One bug (BUS_PROBE_DEFAULT) and one strongly suggested change (potential bug) around sc->dsm_sets |= DSM_SET_MS;, the rest is mostly cosmetic.
Thu, Jan 22
Minsoo beat me to it.
Wed, Jan 21
I'm fine with the patch as it is. It is going to be useful in cases the hardware doesn't do self-tuning properly.
Mon, Jan 19
This approach looks weird, and I'm still unclear on what is really needed. More generally, I'd like to know why we have to do that, and I question its safety.
I have a couple of comments, but really we should first determine what to do with D54410, please see there.
Ah, sorry... I'm pretty sure I had seen that problem during the review of D48734 at some point but forgot about it...
Fri, Jan 16
Oh, you're right, jails are more of an object than a subject.
Wed, Jan 14
We should also avoid the ugly pollution of struct acpi_softc (I completely understand this was done to get something working more quickly). Rather, let's define a new interface, called something like acpi_lpi (defined in a new acpi_lpi_if.m file), with two methods, acpi_lpi_enter() and acpi_lpi_exit(), which would be called before/after entering suspend-to-idle in acpi_EnterSleepState() (e.g., on all direct children of acpi; we'll see that in D48735). There are examples of interfaces under sys/dev/acpica, acpi_if.m and acpi_bus_if.m. The .m files are processed by sys/tools/makeobjops.awk. There's a bit more doc on kobj(9) (which device(9) relies on) in the Architecture Handbook.
Looks good (if you could move the comment about the sleep button, that would be great, see inline comment).
I'm pretty new to device management in FreeBSD, but it looks to me that allocating some memory + acpi_set_private() in DEVICE_PROBE() (here, acpi_spmc_probe()) and acpi_get_private() + deallocation in DEVICE_ATTACH() is a bad pattern, as it will cause memory leaks and in fact even panics in most cases if there are multiple candidate drivers. Since there is for now only a single driver, could you please instead fill up the acpi_spmc_softc directly and have acpi_spmc_probe() return 0 on success (which guarantees preservation of the softc up to DEVICE_ATTACH())? Let's also avoid possible bad pattern spreading by copy-pasting (incidentally, I see the same pattern in acpi_ec.c).
Mon, Jan 12
Looks good, except for one thing (see the inline comment in do_sleep()).
Sat, Jan 10
Fri, Jan 9
I'm not too sure about changing the type of a sysctl knob that has existed for a long time. The only compatibility problem that I can see doing this is potentially breaking reporting in an application that would call sysctl(3) (or sysctlbyname(3)) directly, passing an unitialized integer and then reading from it, as only the first byte would have been filled. Setting the boolean would still work (except on big-endian arches). The use of an old sysctl(8) utility is not affected.
"modified" => "going to be modified"
Cater to comments.
Thu, Jan 8
I fail to see any usefulness of CACHE_LARGE_PAD when it was introduced, which corresponds to aligning CACHE_ZONE_LARGE_SIZE to struct namecache_ts. So I'd just drop the corresponding roundup2(), with the benefit of not requiring a struct namecache_ts alignment for CACHE_ZONE_LARGE_SIZE (but then you have to change the corresponding static assertion).