Page MenuHomeFreeBSD

olce (Olivier Certner)
User

Projects (7)

User Details

User Since
Feb 26 2021, 3:47 PM (290 w, 6 d)

Recent Activity

Today

olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.
In D59910#1376490, @kib wrote:

What do you mean by inconsistency? Do you want _MNTPOINT when fhstat("/")?

Thu, Sep 24, 7:51 PM
olce requested changes to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.

EDIT: Mmm... but this shouldn't be a problem inasmuch as our specific flags are not sent over NFS.

Thu, Sep 24, 5:01 PM
olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.

No, you can get a handle with getfh() and friends, and if you're using NFS, you don't even need to be root to obtain one.

You need PRIV_VFS_GETFH in any case, so I don't see how this is true.

Thu, Sep 24, 4:56 PM
olce requested review of D59988: sched: New scheduler interface definition and implementation scheme.
Thu, Sep 24, 2:06 PM
olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.
In D59910#1376145, @kib wrote:

Reporting root of a file system is different from reporting a mount point. And the request was to provide the feature to identify mount points.

Thu, Sep 24, 1:28 PM
olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.
In D59910#1376112, @kib wrote:

The check on VIRF_MOUNTPOINT is indeed necessary if the handle points to an underlying vnode, but the check on VV_ROOT should be performed also, if for anything for consistency with fstatat().

No, VV_ROOT vnode is not a mountpoint when it is instantiated by ino number, instead of lookup. It is below mountpoint.

Thu, Sep 24, 10:08 AM
olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.

Should kern_fhstat() be updated too?

Thu, Sep 24, 8:02 AM

Yesterday

olce committed rG72bb9eb7b6de: pwd(1): De-obfuscate, style(9) (authored by olce).
pwd(1): De-obfuscate, style(9)
Wed, Sep 23, 11:38 AM
olce closed D59709: pwd(1): De-obfuscate, style(9).
Wed, Sep 23, 11:38 AM
olce accepted D59911: misc: Avoid use of Unicode closing single quote.
Wed, Sep 23, 10:37 AM
Herald added a reviewer for D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag: olce.
In D59910#1375235, @kib wrote:

post hook there would be a significant obfuscation.

Wed, Sep 23, 9:14 AM
olce added a comment to D59910: stat(2): report mount points using st_bsdflags SFBSD_MNTPOINT flag.

It's not particularly pretty that this common code is duplicated, even if there are only a few calls to VOP_STAT() in the tree. Could you please put it instead in a new vop_stat_post() function? That would prevent possible future bugs when new calls to VOP_STAT() are introduced.

Wed, Sep 23, 8:33 AM

Tue, Sep 22

olce added inline comments to D59709: pwd(1): De-obfuscate, style(9).
Tue, Sep 22, 5:07 PM
olce updated the diff for D59709: pwd(1): De-obfuscate, style(9).

Upload the correct diff (previous one was missing #include <string.h>).

Tue, Sep 22, 5:07 PM
olce updated the diff for D59709: pwd(1): De-obfuscate, style(9).

Switch to strchrnul() to find / separators. Further simplifications.

Tue, Sep 22, 4:59 PM
olce added inline comments to D59596: intel/intel_pmc: Add support for Cannon Lake through Meteor Lake.
Tue, Sep 22, 3:05 PM · drivers
olce added a comment to D59596: intel/intel_pmc: Add support for Cannon Lake through Meteor Lake.

Note: Ideally, at some point, we should add some way to print the IP blocks per generation (separate change/revision).

Tue, Sep 22, 9:10 AM · drivers
olce accepted D59875: vfs: Disallow renameat() with FD_RESOLVE_BENEATH descriptors.
Tue, Sep 22, 7:42 AM

Mon, Sep 21

olce requested changes to D59596: intel/intel_pmc: Add support for Cannon Lake through Meteor Lake.

Generally, you have to test if the driver is already attached. Here, the driver could attach through PCI or through ACPI, but it shouldn't attach through both. This is not supposed to happen, but better be safe than sorry, especially when dealing with hardware. So please add a check to both probe methods that device_get_unit(dev) is 0, else bail out (because there's already one driver/device). Check on acpi_get_handle(dev) still looks like a good idea, even if it does not handle the redundancy anymore.

Mon, Sep 21, 7:52 PM · drivers
olce added a comment to D54881: intel/intelpmc: Add Intel PMC Core driver.

There is no spite or resentment behind my frustrated comment, please do not read into it too deeply.

Mon, Sep 21, 8:09 AM

Fri, Sep 18

olce committed rG8aab12ca1898: amdsmu: Fix CPU-model-specific matching (authored by olce).
amdsmu: Fix CPU-model-specific matching
Fri, Sep 18, 1:26 PM
olce closed D59788: amdsmu: Fix model-specific matching.
Fri, Sep 18, 1:26 PM
olce added a comment to D59788: amdsmu: Fix model-specific matching.

does it not make more sense to go through amdsmu_products forwards and just reverse the list? then the list can read more naturally as "the product will be the first one that matches an element in this list"

Fri, Sep 18, 12:49 PM
olce added a comment to D54881: intel/intelpmc: Add Intel PMC Core driver.

You forgot to put this in the release notes, and omitted that I worked with you on this in the commit log. Both of these make my life harder. Please do not do this.

Fri, Sep 18, 9:48 AM
olce requested review of D59788: amdsmu: Fix model-specific matching.
Fri, Sep 18, 7:52 AM
olce accepted D59674: amdsmu: Hints on what to do if IP block blocking S0i3.
Fri, Sep 18, 7:35 AM
olce accepted D59673: amdsmu: Diagnose S0i3 entry after resume.
Fri, Sep 18, 7:35 AM
olce accepted D59741: acpi: Invoke power_resume_check eventhandler.
Fri, Sep 18, 7:33 AM
olce accepted D59740: power: Add power_resume_check eventhandler.

Typo in the commit message: "Thsi is intended".

Fri, Sep 18, 7:33 AM
olce accepted D59739: power: Move power-related eventhandler decls to sys/power.h.
Fri, Sep 18, 7:32 AM
olce accepted D59731: acpi: Don't check suspend-to-idle if suspend failed.
Fri, Sep 18, 7:31 AM

Thu, Sep 17

olce accepted D59735: acpi: Set status to AE_ERROR if device suspend failed.

Good catch!

Thu, Sep 17, 2:12 PM

Wed, Sep 16

olce accepted D59672: acpi: Warn if no amdsmu(4) loaded after suspend-to-idle resume.
Wed, Sep 16, 4:15 PM
olce added a comment to D59672: acpi: Warn if no amdsmu(4) loaded after suspend-to-idle resume.

Always printing a warning is fine for the time being. Having a separate function for the check is neat.

Wed, Sep 16, 2:52 PM
olce requested changes to D59672: acpi: Warn if no amdsmu(4) loaded after suspend-to-idle resume.

I'm fine with the principle of adding a warning. It's just that the current implementation is too rough, as it basically applies to all architectures whereas this concerns only amd64, and also the warning will be issued on Intel platforms as well, which is really confusing.

Wed, Sep 16, 11:29 AM
olce accepted D59583: acpi: Increase length of time (1s -> 5s) for quirk.

Thanks!

Wed, Sep 16, 10:09 AM

Tue, Sep 15

olce requested review of D59709: pwd(1): De-obfuscate, style(9).
Tue, Sep 15, 4:07 PM
olce accepted D59437: sched: rename sched_schedcpu() to sched_sysinit().

See inline comment for a comment improvement suggestion.

Tue, Sep 15, 12:26 PM
olce accepted D59408: sched_ule: fix invalid tdq_slice() and sched_slice_min.
Tue, Sep 15, 12:23 PM

Sun, Sep 13

olce added inline comments to D54881: intel/intelpmc: Add Intel PMC Core driver.
Sun, Sep 13, 2:59 PM
olce added a comment to D54881: intel/intelpmc: Add Intel PMC Core driver.

I'd also advise to disclose the AI used (for anything) with an "Assisted by:" tag.

Sun, Sep 13, 2:56 PM
olce added inline comments to D54881: intel/intelpmc: Add Intel PMC Core driver.
Sun, Sep 13, 2:28 PM
olce accepted D54881: intel/intelpmc: Add Intel PMC Core driver.

Looks really great now! Thanks!

Sun, Sep 13, 1:19 PM
olce added a member for geom: olce.
Sun, Sep 13, 12:47 PM

Sat, Sep 12

olce added a comment to D59583: acpi: Increase length of time (1s -> 5s) for quirk.

By tunable, I mean a sysctl knob (+ loader tunable).

Sat, Sep 12, 1:22 PM
olce requested changes to D59583: acpi: Increase length of time (1s -> 5s) for quirk.

I really think the original comment, although longer, was more informative. Could you please restore it (with amendments about the new findings and change)?

Sat, Sep 12, 1:15 PM
olce accepted D59406: sched_4bsd: fix vague comment.
Sat, Sep 12, 9:01 AM

Fri, Sep 11

olce accepted D59589: website: Restore "The Power to Serve" on homepage.
Fri, Sep 11, 9:26 PM
olce accepted D59568: acpi_spmc: Check AMD constraint packages.
Fri, Sep 11, 4:22 PM
olce added a comment to D59566: acpi_spmc: Check Intel constraint packages.

By the way, could you perhaps move all reads to constraint_obj->Package.Elements[] together close to the package size check? That makes it easier to verify that the check is correct.

Fri, Sep 11, 4:11 PM
olce accepted D59566: acpi_spmc: Check Intel constraint packages.

That's certainly good enough. We can add even more checks later.

Fri, Sep 11, 4:00 PM
olce committed rG7b4d0f62731e: MAINTAINERS/CODEOWNERS: Scheduler: Use globs (authored by olce).
MAINTAINERS/CODEOWNERS: Scheduler: Use globs
Fri, Sep 11, 11:25 AM
olce accepted D59551: acpi_cpu: only report unmapped processor objects enabled in the MADT.

I'd suggest some function renames, but otherwise looks fine. I might do some followup changes.

Fri, Sep 11, 10:15 AM · x86, drivers

Thu, Sep 10

olce accepted D59562: acpi_spmc: Make sure constraints array doesn't end up sparse.
Thu, Sep 10, 3:43 PM
olce added a member for Jails: olce.
Thu, Sep 10, 3:37 PM
olce committed rGd55eb2bed6a7: MAINTAINERS/CODEOWNERS: Scheduling/Priorities: Add a bit more files (authored by olce).
MAINTAINERS/CODEOWNERS: Scheduling/Priorities: Add a bit more files
Thu, Sep 10, 3:33 PM
olce committed rGf02f93e79147: MAINTAINERS/CODEOWNERS: Add myself to scheduler files (authored by olce).
MAINTAINERS/CODEOWNERS: Add myself to scheduler files
Thu, Sep 10, 1:41 PM

Tue, Sep 8

olce added a comment to D59408: sched_ule: fix invalid tdq_slice() and sched_slice_min.

sysctl_kern_slice() lets you set any slice greater or equal to 1. When sched_slice is set to 4 load is 5, the first if condition passes because SCHED_SLICE_MIN_DIVISOR is set to 6 by macro definition. Second if condition also passes and tdq_slice() returns 0.

Tue, Sep 8, 12:02 PM
olce accepted D59471: sched: factor out hogticks calculation into sched_update_hogticks().

Thanks! (Suggested by: olce appreciated.)

Tue, Sep 8, 8:14 AM
olce added a comment to D59406: sched_4bsd: fix vague comment.

schedcpu()'s call to decay_cpu() happens regardless of awake, that is, even sleeping threads are decayed for the first tick of ts_slptime.

Tue, Sep 8, 8:06 AM
olce accepted D59401: sched: fix kern.sched.{4bsd,ule}.slice.
Tue, Sep 8, 7:49 AM

Mon, Sep 7

olce committed rGc6df11228aba: sched_4bsd: Allocate runqueues only for present CPUs (authored by Minsoo Choo <minsoo@minsoo.io>).
sched_4bsd: Allocate runqueues only for present CPUs
Mon, Sep 7, 8:43 AM
olce committed rG554eb7b46216: sched_4bsd: Rename the global runqueue (authored by Minsoo Choo <minsoo@minsoo.io>).
sched_4bsd: Rename the global runqueue
Mon, Sep 7, 8:43 AM
olce committed rG58067171721d: sched_4bsd: Remove obsolete SMP scaling for ticks per priority level (authored by olce).
sched_4bsd: Remove obsolete SMP scaling for ticks per priority level
Mon, Sep 7, 8:43 AM
olce committed rG5db755a864d9: sched_4bsd: Fix conflating priority of differently-niced CPU-bound threads (authored by olce).
sched_4bsd: Fix conflating priority of differently-niced CPU-bound threads
Mon, Sep 7, 8:43 AM
olce committed rGafd1ae57702c: sched_ule: Fix selecting lowest priority thread early in corner case (authored by olce).
sched_ule: Fix selecting lowest priority thread early in corner case
Mon, Sep 7, 8:43 AM

Sun, Sep 6

olce accepted D59402: sched_4bsd: fix comment in maybe_preempt().
Sun, Sep 6, 9:38 PM
olce added inline comments to D59401: sched: fix kern.sched.{4bsd,ule}.slice.
Sun, Sep 6, 9:37 PM
olce accepted D59404: sched_4bsd: remove obsolete comment.
Sun, Sep 6, 9:35 PM
olce accepted D59409: sched_ule: fix typo in comment.
Sun, Sep 6, 9:34 PM
olce accepted D59408: sched_ule: fix invalid tdq_slice() and sched_slice_min.

Slice is number of ticks a thread is allowed to run, thus having slice
value of 0 shouldn't be accepted as threads will never run. In
tdq_slice(), when sched_slice > load, the function will return 0.

Sun, Sep 6, 9:34 PM
olce accepted D59407: sched_ule: fix comment on ts_slice.
Sun, Sep 6, 9:25 PM
olce accepted D59395: sched_4bsd: remove dumping from maybe_preempt().

On second thought, there is a balance between getting a consistent dump image and temporary disruption of the live system for live dumps. It's already the case that they do not guarantee a fully consistent image. And they don't try to stop CPUs, the scheduler, etc. As you point out, minidump is not set, which in this line of thinking is not surprising.

Sun, Sep 6, 9:18 PM
olce requested changes to D59406: sched_4bsd: fix vague comment.

Well, I don't find the new comment less vague. By contrast, the description you're giving in the current commit message is immediately intelligible.

Sun, Sep 6, 5:22 PM
olce added a comment to D59404: sched_4bsd: remove obsolete comment.

Commit message: "As the comment doesn't reflect the code correctly, drop it." is superfluous, I'd just drop it.

Sun, Sep 6, 4:40 PM
olce accepted D59403: sched_4bsd: move comment to correct location.
Sun, Sep 6, 4:39 PM
olce requested changes to D59402: sched_4bsd: fix comment in maybe_preempt().

Grammar.

Sun, Sep 6, 4:39 PM
olce requested changes to D59401: sched: fix kern.sched.{4bsd,ule}.slice.
Sun, Sep 6, 4:38 PM
olce accepted D59400: sched_ule: fix typo goup to group.
Sun, Sep 6, 4:29 PM
olce accepted D59399: sched_ule: remove unused KTR_ULE.

This was never committed enabled. Presumably, it was used for debugging by defining it to KTR_SCHED or some other KTR_* constant. We can revisit if we need something similar in the future.

Sun, Sep 6, 4:28 PM
olce accepted D59398: sched_4bsd: remove obsolete comment.
Sun, Sep 6, 4:17 PM
olce accepted D59396: sched_4bsd: add static assertion for nice weight.

Please rephrase though the assertion description (see inline comment).

Sun, Sep 6, 4:14 PM
olce requested changes to D59395: sched_4bsd: remove dumping from maybe_preempt().

Mmm, that's not true since we have been having live (mini)dump. On the contrary, it is perhaps time to put back dumping here and in ULE.

Sun, Sep 6, 3:53 PM
olce added a comment to D59394: sched_4bsd: remove kern.sched.4bsd.followon.

Suggestion: Rework the end of the commit message for something more concise, such as "is now completely removed, we should remove this tunable." => "and KSE was removed years ago.".

Sun, Sep 6, 3:51 PM
olce accepted D59394: sched_4bsd: remove kern.sched.4bsd.followon.
Sun, Sep 6, 3:42 PM

Sat, Sep 5

olce accepted D59397: sched_4bsd: update function name in comment.
Sat, Sep 5, 1:35 PM

Fri, Sep 4

olce added inline comments to D59413: uiomove: Use size_t for the length argument.
Fri, Sep 4, 9:50 PM
olce accepted D59412: vfs: Avoid integer overflow when faulting.
Fri, Sep 4, 9:47 PM
olce added a comment to D59397: sched_4bsd: update function name in comment.

Mmm... Certainly, schedclock() should have been updated to sched_clock() in commit b43179fbe815 ("Create a new scheduler api..."), which renamed the function. But then, it is still technically true even today that sched_clock() actually updates the mentioned fields, it's just that it does so indirectly (through sched_clock_tick(), of which sched_clock() is the only caller). Keeping the mention of the upper-level function / entry point to the scheduler could be seen as clearer. The recently-introduced possibility to have multiple schedulers compiled in the same kernel lead to some ugly renames, and that's why sched_clock() was renamed to sched_4bsd_clock(). Conceptually, though, the interface function triggering the updates is still sched_clock() (it's how it is referenced from outside 4BSD). I'd slightly prefer having sched_clock() in the comment.

Fri, Sep 4, 7:37 PM
olce added inline comments to D54881: intel/intelpmc: Add Intel PMC Core driver.
Fri, Sep 4, 12:52 PM
olce added inline comments to D54881: intel/intelpmc: Add Intel PMC Core driver.
Fri, Sep 4, 12:43 PM
olce added inline comments to D54881: intel/intelpmc: Add Intel PMC Core driver.
Fri, Sep 4, 11:41 AM

Thu, Sep 3

olce requested changes to D54881: intel/intelpmc: Add Intel PMC Core driver.
Thu, Sep 3, 7:36 PM
olce added a comment to D54881: intel/intelpmc: Add Intel PMC Core driver.

Sorry for the long delay before coming back to this. I'm now quite in a hurry to get this in, so that I can work on some other CPU/chipset generation. A comment a while ago indicated that you had more generations in stock, let's also examine that just after this one is done. I can help polishing and committing them if you do not have time to handle them.

Thu, Sep 3, 7:36 PM

Tue, Sep 1

olce accepted D59309: devstat: Fix a kernel stack disclosure.
Tue, Sep 1, 5:23 PM
olce added a comment to D59309: devstat: Fix a kernel stack disclosure.

Bytes trailing the nul terminator in the device_name field are leaked.

Tue, Sep 1, 5:22 PM
olce added a comment to D59309: devstat: Fix a kernel stack disclosure.

Use of memset() should be systematic on stack-allocated structures for security reasons. The compiler normally eliminates the dead stores.

Tue, Sep 1, 4:57 PM

Fri, Aug 28

olce committed rG0230605c42ae: UPDATING: Fix entry for getgroups(2)/setgroups(2) (authored by olce).
UPDATING: Fix entry for getgroups(2)/setgroups(2)
Fri, Aug 28, 8:56 PM
olce accepted D59201: unix: Fix a socket leak.
Fri, Aug 28, 9:36 AM

Thu, Aug 27

olce requested changes to D59201: unix: Fix a socket leak.

Please check inline comment, there may be a leak.

Thu, Aug 27, 4:51 PM