Page MenuHomeFreeBSD

olce (Olivier Certner)
User

Projects

User Details

User Since
Feb 26 2021, 3:47 PM (258 w, 1 d)

Recent Activity

Today

olce added inline comments to D55007: hwpstate_amd(4): Sane defaults for min/max perf on insane capabilities.
Sat, Feb 7, 10:01 AM
olce added inline comments to D55008: hwpstate_amd(4): Factor out setting the CPPC_REQUEST register.
Sat, Feb 7, 9:17 AM

Yesterday

olce accepted D55146: pwd: Clean up and adopt POSIX semantics.
Fri, Feb 6, 9:28 PM
olce committed rGbfd50a32ff26: sys/sysctl.h: Add missing <sys/kassert.h> include (authored by olce).
sys/sysctl.h: Add missing <sys/kassert.h> include
Fri, Feb 6, 8:54 PM
olce accepted D55146: pwd: Clean up and adopt POSIX semantics.

(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.)

Fri, Feb 6, 4:57 PM
olce committed rG7bc7692b940b: hwpstate_amd(4): Revamp the softc (authored by olce).
hwpstate_amd(4): Revamp the softc
Fri, Feb 6, 4:30 PM
olce committed rG461bac05a145: hwpstate_amd(4): Rename EPP handler, convert to unsigned int (authored by olce).
hwpstate_amd(4): Rename EPP handler, convert to unsigned int
Fri, Feb 6, 4:30 PM
olce committed rG0f747142c16b: hwpstate_amd(4): attach(): Fix style (authored by olce).
hwpstate_amd(4): attach(): Fix style
Fri, Feb 6, 4:30 PM
olce committed rGfa0512f7156d: hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers (authored by olce).
hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers
Fri, Feb 6, 4:30 PM
olce committed rG73c9d843ffb9: hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's (authored by olce).
hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's
Fri, Feb 6, 4:29 PM
olce committed rGe938d57e0a88: hwpstate_amd(4): Rename register dump sysctl handler (authored by olce).
hwpstate_amd(4): Rename register dump sysctl handler
Fri, Feb 6, 4:29 PM
olce closed D55004: hwpstate_amd(4): Revamp the softc.
Fri, Feb 6, 4:29 PM
olce closed D55003: hwpstate_amd(4): attach(): Fix style.
Fri, Feb 6, 4:29 PM
olce closed D55002: hwpstate_amd(4): Rename EPP handler, convert to unsigned int.
Fri, Feb 6, 4:29 PM
olce closed D55001: hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers.
Fri, Feb 6, 4:29 PM
olce closed D55000: hwpstate_amd(4): Rename register dump sysctl handler.
Fri, Feb 6, 4:29 PM
olce closed D54999: hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's.
Fri, Feb 6, 4:29 PM
olce committed rG804329587508: hwpstate{_amd,intel}(4): Move common knobs to a separate file (authored by olce).
hwpstate{_amd,intel}(4): Move common knobs to a separate file
Fri, Feb 6, 4:24 PM
olce committed rG1a446f765d9c: sys/sysctl.h: Make it self-contained when included from the kernel (authored by olce).
sys/sysctl.h: Make it self-contained when included from the kernel
Fri, Feb 6, 4:23 PM
olce closed D54528: hwpstate{_amd,intel}(4): Move common knobs to a separate file.
Fri, Feb 6, 4:23 PM
olce committed rG8bdcfc2a3feb: endian.h: Visibility comment: Fix grammar, a typo and punctuation (authored by olce).
endian.h: Visibility comment: Fix grammar, a typo and punctuation
Fri, Feb 6, 2:48 PM
olce committed rG584c4e0abbfd: i386 minidump: Remove unused macros (authored by olce).
i386 minidump: Remove unused macros
Fri, Feb 6, 2:48 PM
olce closed D54627: acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it.
Fri, Feb 6, 2:47 PM
olce committed rGd2aa0a4dace1: acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it (authored by olce).
acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it
Fri, Feb 6, 2:47 PM
olce added a comment to D55139: cpufreq: Fix sysctl name conflict between hwpstate_intel and hwpstate_amd.

Your approach is much more elegant..

Sorry for not doing another search before submitting. I had this change locally (before the diff was open).

Thanks.

Fri, Feb 6, 1:54 PM
olce added inline comments to D54528: hwpstate{_amd,intel}(4): Move common knobs to a separate file.
Fri, Feb 6, 11:04 AM
olce updated the diff for D54528: hwpstate{_amd,intel}(4): Move common knobs to a separate file.

New approach

Fri, Feb 6, 11:03 AM
olce added a reviewer for D54528: hwpstate{_amd,intel}(4): Move common knobs to a separate file: emaste.
Fri, Feb 6, 11:02 AM
olce commandeered D54528: hwpstate{_amd,intel}(4): Move common knobs to a separate file.

"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.

Fri, Feb 6, 11:02 AM
olce added a comment to D55139: cpufreq: Fix sysctl name conflict between hwpstate_intel and hwpstate_amd.

I'm already working on it. May be what ShengYi proposed in D54528 already, but I'm trying a different, somewhat simpler approach.

Fri, Feb 6, 9:16 AM

Thu, Feb 5

olce added inline comments to D55125: diff: Report I/O errors in Stone algorithm.
Thu, Feb 5, 4:36 PM
olce accepted D55119: acpi: Fix trying to enter NONE state.

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).

Thu, Feb 5, 1:39 PM

Tue, Feb 3

olce committed rG895e1c6567d9: sysctl(9): Booleans: Fix old value length discovery (authored by olce).
sysctl(9): Booleans: Fix old value length discovery
Tue, Feb 3, 10:45 PM
olce added inline comments to D46923: cred: proc_set_cred(), proc_unset_cred(): Update user's process count.
Tue, Feb 3, 9:51 PM
olce committed rGe401e6d3fc91: acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description (authored by olce).
acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description
Tue, Feb 3, 5:20 PM
olce committed rG7f031c9f6b9f: acpi: Move sysctl tree set up at end of initialization (authored by olce).
acpi: Move sysctl tree set up at end of initialization
Tue, Feb 3, 5:20 PM
olce committed rG53bb02015fce: amd64: parse_memmap(): Move comment about size at proper place (authored by olce).
amd64: parse_memmap(): Move comment about size at proper place
Tue, Feb 3, 5:20 PM
olce committed rG406da392ef8d: sysctl(9): Booleans: Accept integers to ease knob conversion (authored by olce).
sysctl(9): Booleans: Accept integers to ease knob conversion
Tue, Feb 3, 5:20 PM
olce closed D54626: acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description.
Tue, Feb 3, 5:20 PM
olce closed D54926: acpi: Move sysctl tree set up at end of initialization.
Tue, Feb 3, 5:20 PM
olce closed D54925: sysctl(9): Booleans: Accept integers to ease knob conversion.
Tue, Feb 3, 5:20 PM
olce added inline comments to D55082: riscv: implement kernel ifunc resolution.
Tue, Feb 3, 4:51 PM
olce committed rG9ae367d11de8: hwpstate_amd(4): Rename CPPC register macros (authored by olce).
hwpstate_amd(4): Rename CPPC register macros
Tue, Feb 3, 2:06 PM
olce committed rG4b0e09a918fb: hwpstate_amd(4): Fix BITS_WITH_VALUE()/SET_BITS_VALUE() to obey the mask (authored by olce).
hwpstate_amd(4): Fix BITS_WITH_VALUE()/SET_BITS_VALUE() to obey the mask
Tue, Feb 3, 2:05 PM
olce committed rGe5f8cbb86d58: x86: x86_msr_op(): MSR_OP_LOCAL: Disable interrupts on atomic ops (authored by olce).
x86: x86_msr_op(): MSR_OP_LOCAL: Disable interrupts on atomic ops
Tue, Feb 3, 2:05 PM
olce committed rGa1a8bcdfde2e: x86: x86_msr_op(): Simplify assertions (authored by olce).
x86: x86_msr_op(): Simplify assertions
Tue, Feb 3, 2:05 PM
olce closed D54998: hwpstate_amd(4): Rename CPPC register macros.
Tue, Feb 3, 2:05 PM
olce closed D54997: hwpstate_amd(4): Fix BITS_WITH_VALUE()/SET_BITS_VALUE() to obey the mask.
Tue, Feb 3, 2:05 PM
olce committed rG7acd7ac6385c: x86: x86_msr_op(): Move setting mode up, delineate logical blocks (authored by olce).
x86: x86_msr_op(): Move setting mode up, delineate logical blocks
Tue, Feb 3, 2:05 PM
olce closed D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
Tue, Feb 3, 2:05 PM
olce added a comment to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
In D54996#1258764, @kib wrote:

And yes, SAFE variants are added specifically to be treated differently from the RENDEZVOUS case. If you want/need atomicity, the RENDEZVOUS is the right choice, if atomicity is not needed, which is not rare case, SAFE is good.

Tue, Feb 3, 1:55 PM
olce added a comment to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
In D54996#1258764, @kib wrote:

SAFE variants cannot be called while a spinlock is owned, otherwise sched_bind() cannot work, it needs to migrate thread to different CPU.

Tue, Feb 3, 1:51 PM
olce added a comment to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
In D54996#1258511, @kib wrote:

I am fine with either case, IMO it is simpler to disable the interrupts unconditionally. It is boot code only anyway, and we should target the code size and not code speed.

Tue, Feb 3, 10:55 AM
olce updated the diff for D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.

Unconditionally deactivate interrupts on MSR_OP_LOCAL.

Tue, Feb 3, 10:55 AM

Mon, Feb 2

olce added a comment to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.

Gentle ping.

Mon, Feb 2, 8:49 PM
olce accepted D55062: Re-introduce kern.sched.topology_spec.
Mon, Feb 2, 8:47 PM
olce added a comment to D54925: sysctl(9): Booleans: Accept integers to ease knob conversion.

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).

Mon, Feb 2, 8:37 PM
olce added inline comments to D55001: hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers.
Mon, Feb 2, 4:51 PM
olce accepted D48735: acpi: Call SPMC suspend/resume hooks.
Mon, Feb 2, 3:54 PM
olce added inline comments to D54999: hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's.
Mon, Feb 2, 3:38 PM
olce accepted D55014: EVENTHANDLER.9: EVENTHANDLER_REGISTER never fails.

Would appreciate a:
Suggested by: olce
tag line at commit. Thanks!

Mon, Feb 2, 1:09 PM

Sun, Feb 1

olce retitled D54996: x86: x86_msr_op(): Add comments, guarantee atomicity from x86: x86_msr_op(): Add comments, cosmetic changes to x86: x86_msr_op(): Add comments, guarantee atomicity.
Sun, Feb 1, 10:16 PM
olce added inline comments to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
Sun, Feb 1, 10:13 PM
olce added inline comments to D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
Sun, Feb 1, 3:17 PM
olce updated the diff for D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
  • Disable interrupts on MSR_OP_LOCAL and non-atomic MSR manipulation.
  • Trim and update comments.
Sun, Feb 1, 3:17 PM

Sat, Jan 31

olce added inline comments to D48735: acpi: Call SPMC suspend/resume hooks.
Sat, Jan 31, 3:37 PM
olce requested review of D55010: hwpstate_amd(4): Add knobs to get/set all fields of CPPC_REQUEST.
Sat, Jan 31, 11:50 AM
olce requested review of D55009: hwpstate_amd(4): 'epp' sysctl leaf to operate on real EPP hardware values.
Sat, Jan 31, 11:49 AM
olce requested review of D55008: hwpstate_amd(4): Factor out setting the CPPC_REQUEST register.
Sat, Jan 31, 11:49 AM
olce requested review of D55007: hwpstate_amd(4): Sane defaults for min/max perf on insane capabilities.
Sat, Jan 31, 11:48 AM
olce requested review of D55006: hwpstate_amd(4): attach(): More diagnostic on CPPC enable.
Sat, Jan 31, 11:48 AM
olce requested review of D55005: hwpstate_amd(4): Register dump: Fine-grained error reporting.
Sat, Jan 31, 11:48 AM
olce requested review of D55004: hwpstate_amd(4): Revamp the softc.
Sat, Jan 31, 11:47 AM
olce requested review of D55003: hwpstate_amd(4): attach(): Fix style.
Sat, Jan 31, 11:47 AM
olce requested review of D55002: hwpstate_amd(4): Rename EPP handler, convert to unsigned int.
Sat, Jan 31, 11:47 AM
olce requested review of D55001: hwpstate_amd(4): Assert PSTATE_CPPC is on in corresponding sysctl handlers.
Sat, Jan 31, 11:47 AM
olce requested review of D55000: hwpstate_amd(4): Rename register dump sysctl handler.
Sat, Jan 31, 11:46 AM
olce requested review of D54999: hwpstate_amd(4): Factor out printing CPPC registers, fix CPPC_REQUEST's.
Sat, Jan 31, 11:46 AM
olce requested review of D54998: hwpstate_amd(4): Rename CPPC register macros.
Sat, Jan 31, 11:46 AM
olce requested review of D54997: hwpstate_amd(4): Fix BITS_WITH_VALUE()/SET_BITS_VALUE() to obey the mask.
Sat, Jan 31, 11:45 AM
olce retitled D54996: x86: x86_msr_op(): Add comments, guarantee atomicity from x86: x86_msr_op(): Move setting mode up, delineate logical blocks to x86: x86_msr_op(): Add comments, cosmetic changes.
Sat, Jan 31, 11:32 AM
olce requested review of D54996: x86: x86_msr_op(): Add comments, guarantee atomicity.
Sat, Jan 31, 11:30 AM

Fri, Jan 30

olce accepted D54833: kern: mac: add a prison_cleanup entry point.

rer: removing the prlabel, @csjp noted (paraphrasing, maybe poorly) that that's a MAC-philosophical thing that policy (writers?) shouldn't have to have 'that' much knowledge of kernel internals. It turns out that they often do anyways, but the historically consistent thing is that object labels get passed along with the labels to avoid the policy reaching into the object when it's something that they'll want to act on.

Fri, Jan 30, 5:29 PM
olce added a comment to D54833: kern: mac: add a prison_cleanup entry point.

prison_created is done after we know that the jail's going to stick around because I wanted the prison state to be 'final' (post-OSD) before we do any label propagation stuff... maybe that wasn't quite the right call.

Fri, Jan 30, 9:13 AM

Thu, Jan 29

olce accepted D54951: tuning.7: document schedulers knobs.
Thu, Jan 29, 10:40 PM
olce added inline comments to D54951: tuning.7: document schedulers knobs.
Thu, Jan 29, 10:29 PM

Wed, Jan 28

olce added a comment to D54833: kern: mac: add a prison_cleanup entry point.

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(). :-)

Wed, Jan 28, 5:47 PM
olce added inline comments to D54926: acpi: Move sysctl tree set up at end of initialization.
Wed, Jan 28, 4:32 PM
olce added a comment to D54925: sysctl(9): Booleans: Accept integers to ease knob conversion.

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.

Wed, Jan 28, 2:06 PM
olce updated the diff for D54925: sysctl(9): Booleans: Accept integers to ease knob conversion.

Remove useless initialization of temp_int in the SYSCTL_IN() case.

Wed, Jan 28, 1:49 PM
olce updated the diff for D54626: acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description.

Update commit message

Wed, Jan 28, 1:11 PM
olce updated the diff for D54627: acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it.

Update commit message

Wed, Jan 28, 1:10 PM
olce updated the diff for D54627: acpi: New R/O 'hw.acpi.s4bios_supported' sysctl, gate S4BIOS with it.

Prevent users to set hw.acpi.s4bios to true if S4BIOS is not supported.

Wed, Jan 28, 1:07 PM
olce updated the diff for D54626: acpi: 'hw.acpi.s4bios' sysctl: Change type to bool, expand description.
  • Impacts of new prerequisite (D54926)
  • Slightly tweak the description of 'hw.acpi.s4bios'
Wed, Jan 28, 12:47 PM
olce requested review of D54926: acpi: Move sysctl tree set up at end of initialization.
Wed, Jan 28, 12:44 PM
olce requested review of D54925: sysctl(9): Booleans: Accept integers to ease knob conversion.
Wed, Jan 28, 12:44 PM
olce committed rG0cca6277499f: acpi: Use AcpiGbl_FACS even on ACPI_REDUCED_HARDWARE (authored by olce).
acpi: Use AcpiGbl_FACS even on ACPI_REDUCED_HARDWARE
Wed, Jan 28, 11:32 AM
olce committed rG526c09a48929: acpi: Use only AcpiGetSleepTypeData() to determine Sx support (authored by olce).
acpi: Use only AcpiGetSleepTypeData() to determine Sx support
Wed, Jan 28, 11:32 AM
olce committed rG149e6c67ca80: acpi_spmc(4): Fix compilation on 32-bit platforms (authored by olce).
acpi_spmc(4): Fix compilation on 32-bit platforms
Wed, Jan 28, 11:32 AM
olce committed rGa9f7074e858f: ahc(4): Fix a warning on i386 compilation (authored by olce).
ahc(4): Fix a warning on i386 compilation
Wed, Jan 28, 11:32 AM