Page MenuHomeFreeBSD

mchoo (Minsoo Choo)
Minsoo

Projects (7)

User Details

User Since
May 6 2021, 12:00 AM (289 w, 6 d)

Recent Activity

Tue, Nov 17

mchoo updated subscribers of D61601: powerpc64: Preserve read access in radix prefault mappings.

Ping @jhb and @olce for mentor approval

Tue, Nov 17, 12:13 AM
mchoo updated subscribers of D61603: powerpc64: Unlock the radix pmap before retrying a fault.

Ping @jhb and @olce for mentor approval

Tue, Nov 17, 12:12 AM
mchoo updated subscribers of D61604: powerpc64: Preserve the radix fault page index.

Ping @jhb and @olce for mentor approval

Tue, Nov 17, 12:12 AM
mchoo added a comment to D61512: sched_ule: Skip the CPU search for threads bound to one CPU.

I tested your CPU_FFS()/CPU_FFS_AT() variant on the same workload (64-thread EPYC 7502P, sustained UDP receive, one bound worker per CPU). sched_pickcpu() itself went from 0.024% of total CPU time with the flag to 0.032% without it, a small increase, and cpu_search_lowest() was unchanged (0.113% vs 0.115%).

Thanks! I guess that compared to the initial situation, it's not much of a variation, but it's still noticeable.

Although I slightly prefer the non-flag variant, up to you if you prefer to keep this one for the extra gain.

Tue, Nov 17, 12:12 AM

Mon, Nov 16

mchoo updated the diff for D59648: trap_cfi(9): introduce arm64 implementation.

I pushed riscv change to this revision by accident. Restore.

Mon, Nov 16, 7:08 PM
mchoo updated the summary of D59647: trap_cfi(9): introduce riscv implementation.
Mon, Nov 16, 7:07 PM
mchoo updated the diff for D59647: trap_cfi(9): introduce riscv implementation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:07 PM
mchoo updated the diff for D59648: trap_cfi(9): introduce arm64 implementation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:06 PM
mchoo updated the summary of D59648: trap_cfi(9): introduce arm64 implementation.
Mon, Nov 16, 7:06 PM
mchoo updated the diff for D59648: trap_cfi(9): introduce arm64 implementation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:05 PM
mchoo updated the summary of D59649: trap_cfi(9): introduce amd64 implementation.
Mon, Nov 16, 7:04 PM
mchoo updated the diff for D59649: trap_cfi(9): introduce amd64 implementation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:03 PM
mchoo updated the summary of D59650: trap_cfi(9): introduce arm implementation.
Mon, Nov 16, 7:02 PM
mchoo updated the diff for D59650: trap_cfi(9): introduce arm implementation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:02 PM
mchoo updated the summary of D59651: trap_cfi(9): introduce powerpc implemenation.
Mon, Nov 16, 7:01 PM
mchoo updated the diff for D59651: trap_cfi(9): introduce powerpc implemenation.

Reflect @jhb's comment on commit message

Mon, Nov 16, 7:00 PM
mchoo updated the summary of D59652: trap_cfi(9): add man page.
Mon, Nov 16, 6:59 PM
mchoo updated the diff for D59652: trap_cfi(9): add man page.

Reflect @jhb's comment

Mon, Nov 16, 6:59 PM
mchoo abandoned D61602: powerpc64: Fix radix TLB invalidation range length.

I found this issue about two months ago. Thing is, correcting it also lowers the performance in my benchmarks by a couple of %. Can you do some performance testing? The current behavior doesn't cause any errors and if it's faster, IMO we should keep it.

Mon, Nov 16, 6:16 PM
mchoo updated the diff for D61644: powerpc/radix_mmu: Restrict POWER9 errata.

Remove empty line in the beginning of function

Mon, Nov 16, 6:15 PM
mchoo updated the diff for D61644: powerpc/radix_mmu: Restrict POWER9 errata.

Reorganize commits

Mon, Nov 16, 6:14 PM
mchoo requested review of D61644: powerpc/radix_mmu: Restrict POWER9 errata.
Mon, Nov 16, 6:06 PM

Sun, Nov 15

mchoo requested review of D61604: powerpc64: Preserve the radix fault page index.
Sun, Nov 15, 10:09 PM
mchoo requested review of D61603: powerpc64: Unlock the radix pmap before retrying a fault.
Sun, Nov 15, 10:09 PM
mchoo requested review of D61602: powerpc64: Fix radix TLB invalidation range length.
Sun, Nov 15, 10:09 PM
mchoo added a reviewer for D61601: powerpc64: Preserve read access in radix prefault mappings: PowerPC.
Sun, Nov 15, 10:08 PM
mchoo requested review of D61601: powerpc64: Preserve read access in radix prefault mappings.
Sun, Nov 15, 10:08 PM
mchoo added a comment to D59507: powerpc/pmap: Use dcbz to zero pages in the radix pmap.

@pkubaj Could you please MFC this to stable/14,15? (and hopefully to releng/15.2 under releng's permission).

Sun, Nov 15, 9:15 PM

Fri, Nov 13

mchoo added a comment to D61448: sched_ule: Fix rare deadlock on stealing a migrated lock-blocked thread.

A short note on the commit message: Usually in commit message I only put 1) what is the problem, 2) how to solve it, 3) if it's hard to explain in theory, what's an example and I think this deserves having 3). Meanwhile, I think how we got here part (paragraph on initial approach) and how it was reported can be replaced by Differential Revision: and the mailing list thread (Reported by: avg@ <link>) respectively. Then 1), 2), 3) can be more consolidated (I asked LLM to rephrase the commit message and it gave me one shorter and easier to understand). There are few reasons I want to keep commit message concise, one of them is because I don't want my commit message to take too much space when others are scrolling git log.

Fri, Nov 13, 3:18 PM
mchoo accepted D61448: sched_ule: Fix rare deadlock on stealing a migrated lock-blocked thread.

Yes, I like this solution more than fixing in stealing code path.

Fri, Nov 13, 3:06 PM

Thu, Nov 12

mchoo accepted D61448: sched_ule: Fix rare deadlock on stealing a migrated lock-blocked thread.
Thu, Nov 12, 5:12 PM

Tue, Nov 10

mchoo committed rG7cb4d4dfdd18: sched_ule.4: sync current scheduler sysctls.
Tue, Nov 10, 10:21 PM
mchoo committed rGbe25f6d75d26: sched_4bsd.4: sync current scheduler sysctls.
Tue, Nov 10, 10:21 PM
mchoo committed rGfb797f841dab: scheduler.4: document common scheduler sysctls.
Tue, Nov 10, 10:21 PM
mchoo closed D60002: scheduler.4, sched_{4bsd,ule}.4: sync current scheduler sysctls.
Tue, Nov 10, 10:21 PM
mchoo added a comment to D60031: runqueue.9: rewrite.

Recently I was thinking about removing this and scheduler.9. Talk on freebsd-hackers. To mention what applies specifically to those man pages:

  • I believe only interfaces that are exposed to driver API should be documented in man9 (with exception of things like luastyle) and iiuc sched and runqueue functions shouldn't be called by drivers. Drivers should only "hint" the scheduler (e.g. hmp).
  • runqueue.9 and scheduler.9 have been out of sync for years, probably more than a decade, because developers forgot to update the manpage when they modified the code. To prevent this in future, this should be documented in Doxygen style along the code. Doxygen allows Markdown to be used for code documentation, so we can use it for writing examples. @adrian already does this for net80211. @seuros is also interested in this approach for code documentation.
  • As @adrian and @seuros have noted in the mailing thread, we lack content in Doxygen documentation. Moving those two man pages to Doxygen will be a great starting point for documenting scheduler subsystem.

Do you think we should start documenting scheduler stuff in Doxygen and pull them out from man pages?

I hadn't noticed the mailing list discussion (have been working intermittently in the past days), thanks. It looks like this topic requires some nuance.

I wouldn't be strict about what goes into manual pages' section 9. Certainly, priority is to APIs that are the most used by other parts of the kernel, but in the end there is not part that is not used elsewhere, so in principle new manual pages should not be prevented from appearing. If a facility is seldom used, and is prone to a lot of turn-over, then it makes it less suitable to be documented in detail by a manual page; a stable overview might still be useful. Internal documentation can as well go into section 9, if not too tied to details or reasonably stable. For this runqueue.9 manual page, there are some low level details in it, perhaps too much (I wouldn't have documented most of the macros, as they are basically internals), but it has a small bit of important overview and documents the functions, which form an interface to the schedulers, and that is nice. So I'd be inclined to keep the new manual page you wrote for now (with caveats mentioned above).

We could start leveraging Doxygen too, especially for parts that are very tied to the implementation or that move quickly. I.e., for runqueues, there are already a bunch of comments that could be turned into Doxygen ones. At the same time, I'd like to avoid bloating source files; we have in some source files some introductive paragraphs that are still fine because they explain the overview in a concise manner; these could be converted into Doxygen comments; more explicative text however should not go into the source (preferably in a manual page rather than a separate Doxygen file, depending on the case).

The current situation on the scheduling subsystem is a not-that-well-defined interface, both internally and externally, with some confusion between mechanisms that are implemented both in 4BSD and ULE but could be generic (such as priority lending), and conversely some mechanisms that could be leveraged by new implementations but are currently private (such as the balancing mechanisms). Additionally, the external interface, whose form I just revamped, might undergo another revamp with an ad-hoc master file from which a custom script generates headers and source code, similarly to what we do with bus_if.m or vnode_if.src (got a negative feedback on the current design by jrtc27@; will see if others come in). For the (external) interface functions, we should have both generic documentation (what the functions should do in general, when it should be called and what to expect), and implementation-specific documentation where appropriate. In the short term, I'd be cautious not to introduce too much churn or comments that could become obsolete in the coming months. And I think the external interface (to the rest of the kernel) should stay/go primarily into scheduler.9.

As a rule of thumb, I'd continue using section 9 manual pages as the primary documentation for subsystem users, and reserve Doxygen for internal stuff, menial details or fast-moving targets. Curious to know what others think.

Tue, Nov 10, 6:30 PM
mchoo added a comment to D60002: scheduler.4, sched_{4bsd,ule}.4: sync current scheduler sysctls.

Looks good overall. See inline comments for reformulations/suggestions. Also, I would suggest moving kern.sched.*.quantum and kern.sched.*.slice into scheduler.4.

Tue, Nov 10, 5:40 PM
mchoo added inline comments to D60002: scheduler.4, sched_{4bsd,ule}.4: sync current scheduler sysctls.
Tue, Nov 10, 5:34 PM
mchoo updated the diff for D60002: scheduler.4, sched_{4bsd,ule}.4: sync current scheduler sysctls.

Reflect @olce's review comments.

Tue, Nov 10, 5:33 PM
mchoo updated subscribers of D60031: runqueue.9: rewrite.

That's great work. Frankly, I wouldn't have gone to the burden of documenting this facility into that level of details. For example, a (non-pressing) goal is to remove RQ_PPQ. I left it after reworking the runqueues just in case we would need to revert to the old behavior. It has not been the case, so RQ_PPQ has been an unimportant implementation detail, and it should go. We also might want to evolve the interface. But anyway, now that this is written, let's integrate it!

I'd remove mentions of choosethread(). This function is quite different, it is part of the common scheduler infra, is a (thin) wrapper around the scheduler-provided sched_choose(), and importantly has no direct relations to runqueues (as you have seen in your EEVDF WIP). I'd suggest instead to save the corresponding text for a future rewrite of scheduler(9).

See a few inline comments about minor stuff and don't forget ObsoleteFiles.inc for removed links.

Tue, Nov 10, 4:30 AM

Tue, Nov 3

mchoo added inline comments to D61139: ptrace: Refresh tracing state after syscall execution.
Tue, Nov 3, 5:43 PM

Mon, Nov 2

mchoo added inline comments to D61000: ptrace: Preserve debugger register writes across pending syscall returns.
Mon, Nov 2, 5:36 PM
mchoo updated the diff for D61000: ptrace: Preserve debugger register writes across pending syscall returns.

Rebase on D61139

Mon, Nov 2, 5:36 PM
mchoo requested review of D61139: ptrace: Refresh tracing state after syscall execution.
Mon, Nov 2, 5:31 PM
mchoo updated the diff for D61000: ptrace: Preserve debugger register writes across pending syscall returns.

Rebase main and update test

Mon, Nov 2, 5:14 PM
mchoo added inline comments to D61000: ptrace: Preserve debugger register writes across pending syscall returns.
Mon, Nov 2, 4:47 PM
mchoo updated the diff for D61000: ptrace: Preserve debugger register writes across pending syscall returns.

Add tests for PT_SETREGS while signal delivery

Mon, Nov 2, 4:47 PM

Sat, Oct 31

mchoo updated subscribers of D58509: arcconfig: stop amending commit message.

@jhb @olce Request for mentor approval.

Sat, Oct 31, 8:27 PM
mchoo updated subscribers of D61001: .arclint: Replace deprecated PEP8 linter with flake8.

@jhb @olce Request for mentor approval.

Sat, Oct 31, 8:26 PM
mchoo requested review of D58509: arcconfig: stop amending commit message.
Sat, Oct 31, 4:28 AM

Fri, Oct 30

mchoo updated subscribers of D61001: .arclint: Replace deprecated PEP8 linter with flake8.
Fri, Oct 30, 5:04 PM
mchoo added a comment to D61001: .arclint: Replace deprecated PEP8 linter with flake8.

pep8 was renamed to pycodestyle but it does not come with phorge's arcanist. Another alternatives to flake8 are pylint and pyflakes, but pyflakes don't check pep8 and pylint is too strict and could generate false positives for our use case.

Fri, Oct 30, 12:51 AM
mchoo retitled D61001: .arclint: Replace deprecated PEP8 linter with flake8 from .arclint: Replace deprecated PEP8 linter with pylint
Fri, Oct 30, 12:50 AM
mchoo updated the diff for D61001: .arclint: Replace deprecated PEP8 linter with flake8.

pylint->flake8

Fri, Oct 30, 12:50 AM
mchoo requested review of D61001: .arclint: Replace deprecated PEP8 linter with flake8.
Fri, Oct 30, 12:43 AM
mchoo updated subscribers of D61000: ptrace: Preserve debugger register writes across pending syscall returns.
Fri, Oct 30, 12:42 AM
mchoo requested review of D61000: ptrace: Preserve debugger register writes across pending syscall returns.
Fri, Oct 30, 12:41 AM
mchoo requested review of D60999: ptrace: Wake modified sleeping LWPs on process-wide continue.
Fri, Oct 30, 12:33 AM
mchoo updated subscribers of D60996: libkvm: Preserve kernbase when probing legacy amd64 full dumps.
Fri, Oct 30, 12:27 AM
mchoo requested review of D60996: libkvm: Preserve kernbase when probing legacy amd64 full dumps.
Fri, Oct 30, 12:26 AM

Thu, Oct 29

mchoo requested review of D60982: arm64: Only enable CPU single-stepping for the current thread.
Thu, Oct 29, 6:55 PM
mchoo committed rGa2b34aaa8d80: powerpc: Avoid deadlock when CPUs exchange threads.
Thu, Oct 29, 6:50 PM
mchoo committed rG0bc51f4b51ba: powerpc: Avoid deadlock when CPUs exchange threads.
Thu, Oct 29, 6:45 PM

Oct 21 2026

mchoo updated the summary of D60956: libunwind: Support extended amd64 registers for signal unwinding.
Oct 21 2026, 10:05 PM
mchoo updated subscribers of D60956: libunwind: Support extended amd64 registers for signal unwinding.
Oct 21 2026, 10:05 PM
mchoo updated the diff for D60956: libunwind: Support extended amd64 registers for signal unwinding.

Remove llvm tests

Oct 21 2026, 10:04 PM
mchoo requested review of D60956: libunwind: Support extended amd64 registers for signal unwinding.
Oct 21 2026, 10:01 PM

Oct 19 2026

mchoo requested review of D60866: build: Remove CVS leftovers.
Oct 19 2026, 1:23 PM
mchoo updated subscribers of D60866: build: Remove CVS leftovers.
Oct 19 2026, 1:23 PM
mchoo abandoned D60814: Remove non-git-compatible vcs leftovers.

I didn't know some use the workflow of importing git repository into a downstream svn/hg repository. I'm closing this revision and will create a new revision with cvs change only.

Oct 19 2026, 1:20 PM

Oct 17 2026

mchoo requested review of D60814: Remove non-git-compatible vcs leftovers.
Oct 17 2026, 5:14 PM

Oct 16 2026

mchoo updated the summary of D60781: acpi: avoid stale child pointers during driver-added scans.
Oct 16 2026, 5:31 PM
mchoo updated the summary of D60781: acpi: avoid stale child pointers during driver-added scans.
Oct 16 2026, 5:30 PM
mchoo updated the diff for D60781: acpi: avoid stale child pointers during driver-added scans.

revert iic change

Oct 16 2026, 5:30 PM
mchoo added a reviewer for D60781: acpi: avoid stale child pointers during driver-added scans: jrtc27.
Oct 16 2026, 4:57 PM
mchoo requested review of D60781: acpi: avoid stale child pointers during driver-added scans.
Oct 16 2026, 4:56 PM

Oct 15 2026

mchoo abandoned D54753: queue(3): add function-based API.
Oct 15 2026, 8:45 PM · Contributor Reviews (src)
mchoo accepted D60644: sched: Automatically namespace schedulers' implementation functions.

I don't use LSP for kernel development, but LSP users can try this out after merge and create bug reports if there are any issues.

Oct 15 2026, 5:09 PM
mchoo accepted D60747: lldb: Allow building on riscv.
Oct 15 2026, 5:03 PM

Oct 13 2026

mchoo updated subscribers of D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.

ping @jhb and @olce for mentor approval

Oct 13 2026, 7:51 PM
mchoo committed rG0571d8a0cc60: powerpc: Avoid deadlock when CPUs exchange threads.
Oct 13 2026, 7:51 PM
mchoo closed D59742: powerpc: Avoid deadlock when CPUs exchange threads.
Oct 13 2026, 7:50 PM
mchoo updated the diff for D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.

Add check to usb_handle_remote_wakeup()

Oct 13 2026, 7:24 PM

Oct 12 2026

mchoo added inline comments to D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.
Oct 12 2026, 7:01 PM
mchoo updated the diff for D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.

Fix indent

Oct 12 2026, 7:00 PM
mchoo updated the diff for D58004: usb_quirk: implement bad remote wakeup and add ASM1074 SS.
  • Fix indent, conditional, and typo
  • Add ASM2 vendor
Oct 12 2026, 6:56 PM
mchoo added a comment to D60671: Remove the i386 kernel and i386-only device drivers.

I opened a PR that moves i386 to EXTRA_ARCHES a while ago: https://github.com/freebsd/freebsd-src/pull/2052

Oct 12 2026, 6:39 PM
mchoo added a comment to D60644: sched: Automatically namespace schedulers' implementation functions.

If we use preprocessors instead of handwriting the scheduler-specific namespacing (e.g. sched_foo), how will it affect the following:

Oct 12 2026, 4:24 PM
mchoo committed rG9d7269c6b726: Fix build failure after 904efcc64398.
Oct 12 2026, 4:05 PM
mchoo committed rG975bdb89ecdd: Fix build failure after f02a5391295e.
Oct 12 2026, 4:01 PM
mchoo committed rGbf1a46ffa8af: libkvm: support powerpc64 radix minidumps.
Oct 12 2026, 4:01 AM
mchoo committed rG904efcc64398: powerpc/radix: include page tables in minidumps.
Oct 12 2026, 4:01 AM
mchoo committed rG344557b3796b: arm: pad minidump page table.
Oct 12 2026, 4:01 AM
mchoo committed rG951671e79a3b: ci: Remove Cirrus CI files.
Oct 12 2026, 4:01 AM
mchoo committed rG4017abda6551: powerpc/radix: synchronize temporary kernel mappings.
Oct 12 2026, 4:01 AM
mchoo committed rG382f26f264bd: libkvm: route powerpc64 minidumps to minidump backend.
Oct 12 2026, 4:01 AM
mchoo committed rG281b3c767815: ixl: fix big-endian hardware interface handling.
Oct 12 2026, 4:01 AM
mchoo committed rGea3004b24770: libkvm: support little-endian powerpc64 minidumps.
Oct 12 2026, 4:01 AM
mchoo committed rGb85a27b796c7: libkvm: support powerpc64 radix minidumps.
Oct 12 2026, 4:00 AM
mchoo committed rGf02a5391295e: powerpc/radix: include page tables in minidumps.
Oct 12 2026, 4:00 AM