Page MenuHomeFreeBSD

jaeyoon (Jaeyoon Choi)
User

Projects

User Details

User Since
Jan 3 2025, 1:07 AM (40 w, 3 d)

Recent Activity

Thu, Sep 18

jaeyoon committed rG6b841d70960a: ufshci: revisit controller reset path and add I/O timeout handling (authored by jaeyoon).
ufshci: revisit controller reset path and add I/O timeout handling
Thu, Sep 18, 2:42 PM
jaeyoon closed D52440: ufshci: revisit controller reset path and add I/O timeout handling.
Thu, Sep 18, 2:42 PM
jaeyoon committed rG380e4a8233c8: committers-src: add myself (jaeyoon@) (authored by jaeyoon).
committers-src: add myself (jaeyoon@)
Thu, Sep 18, 2:36 PM
jaeyoon closed D52570: committers-src: add myself (jaeyoon@).
Thu, Sep 18, 2:35 PM
jaeyoon closed D52569: new committer (src): Jaeyoon Choi (jaeyoon).
Thu, Sep 18, 1:44 PM
jaeyoon committed R9:8a349c977b40: new committer (src): Jaeyoon Choi (jaeyoon) (authored by jaeyoon).
new committer (src): Jaeyoon Choi (jaeyoon)
Thu, Sep 18, 1:44 PM

Tue, Sep 16

jaeyoon added a reviewer for D52570: committers-src: add myself (jaeyoon@): imp.
Tue, Sep 16, 9:43 AM
jaeyoon requested review of D52570: committers-src: add myself (jaeyoon@).
Tue, Sep 16, 9:43 AM
jaeyoon added a reviewer for D52569: new committer (src): Jaeyoon Choi (jaeyoon): imp.
Tue, Sep 16, 9:25 AM
jaeyoon requested review of D52569: new committer (src): Jaeyoon Choi (jaeyoon).
Tue, Sep 16, 9:24 AM

Sep 13 2025

bofh renamed jaeyoon from j_yoon.choi_samsung.com to jaeyoon.
Sep 13 2025, 10:38 AM

Sep 12 2025

jaeyoon added a comment to D52440: ufshci: revisit controller reset path and add I/O timeout handling.
In D52440#1198791, @imp wrote:

So this change is a bit larger than I like to review. But the moved code was simple (and I know I have comment about the moved code, and that maybe the NVMe driver isn't good about doing it true). In the future, though it would make it easiest if you had the 'move it' commits separate from the rest. The place I want a comment could get one later too, if that's easier to do.

Looking at the recovery algorithm, it does seem quite similar to the NVMe one. The only concern I have here is that we'll need to track it in two places. I've been tweaking it from time to time in the nvme driver, but I don't know how applicable future tweaks will be. I guess this is more of a "be aware" in the future comment.

Sep 12 2025, 1:33 AM
jaeyoon updated the diff for D52440: ufshci: revisit controller reset path and add I/O timeout handling.

Add a comment

Sep 12 2025, 1:13 AM

Sep 11 2025

jaeyoon updated the diff for D52440: ufshci: revisit controller reset path and add I/O timeout handling.

update commit log

Sep 11 2025, 5:48 AM
jaeyoon updated the diff for D52440: ufshci: revisit controller reset path and add I/O timeout handling.

Fix queue contruct sequence

Sep 11 2025, 4:53 AM

Sep 9 2025

jaeyoon added reviewers for D52440: ufshci: revisit controller reset path and add I/O timeout handling: imp, julian.
Sep 9 2025, 4:50 AM
jaeyoon added a comment to D52440: ufshci: revisit controller reset path and add I/O timeout handling.

I expected the timeout handling to be in the CAM, but it seems the CAM only performs a retry and does not execute cmd abort and controller reset. Therefore, I implemented the cmd abort and controller reset within the ufshci driver. Is my understanding correct?

Sep 9 2025, 4:49 AM
jaeyoon added a comment to D52440: ufshci: revisit controller reset path and add I/O timeout handling.

Added some comments for reviewers.

Sep 9 2025, 4:45 AM
jaeyoon updated the diff for D52440: ufshci: revisit controller reset path and add I/O timeout handling.

fix indent

Sep 9 2025, 4:43 AM
jaeyoon requested review of D52440: ufshci: revisit controller reset path and add I/O timeout handling.
Sep 9 2025, 3:58 AM

Aug 29 2025

jaeyoon updated the diff for D51893: ufshci: Add WriteBooster support.

add a newline at end of file

Aug 29 2025, 12:11 PM
jaeyoon added inline comments to D51893: ufshci: Add WriteBooster support.
Aug 29 2025, 12:09 PM
jaeyoon added a comment to D51893: ufshci: Add WriteBooster support.
In D51893#1193102, @imp wrote:

One question, and one minor problem... Otherwise, I think this is fine. It's a feature that's enable on attach and then everything about it happens automatically, right?

Aug 29 2025, 12:09 PM
jaeyoon updated the diff for D51894: ufshci: reserve one queue entry for an admin request.

rebase to the head

Aug 29 2025, 11:45 AM

Aug 21 2025

jaeyoon added inline comments to D51506: ufshci: Add functions for UTP Task Management.
Aug 21 2025, 1:40 AM

Aug 14 2025

jaeyoon updated the diff for D51893: ufshci: Add WriteBooster support.

Add error return

Aug 14 2025, 7:28 AM
jaeyoon added reviewers for D51894: ufshci: reserve one queue entry for an admin request: imp, julian.
Aug 14 2025, 7:13 AM
jaeyoon updated the summary of D51893: ufshci: Add WriteBooster support.
Aug 14 2025, 7:11 AM
jaeyoon added reviewers for D51893: ufshci: Add WriteBooster support: imp, julian.
Aug 14 2025, 7:11 AM
jaeyoon requested review of D51894: ufshci: reserve one queue entry for an admin request.
Aug 14 2025, 7:08 AM
jaeyoon updated the diff for D51893: ufshci: Add WriteBooster support.

Add error log

Aug 14 2025, 7:05 AM
jaeyoon requested review of D51893: ufshci: Add WriteBooster support.
Aug 14 2025, 7:00 AM

Aug 12 2025

jaeyoon added a comment to D51506: ufshci: Add functions for UTP Task Management.

Could you please submit this patch? Thanks!

Aug 12 2025, 12:07 PM

Aug 2 2025

jaeyoon added a comment to D51507: amd64 GENERIC: Add ufshci.

Could you please submit this patch? Thanks!

Aug 2 2025, 10:59 AM

Jul 25 2025

jaeyoon added reviewers for D51507: amd64 GENERIC: Add ufshci: imp, julian.
Jul 25 2025, 5:30 AM
jaeyoon requested review of D51507: amd64 GENERIC: Add ufshci.
Jul 25 2025, 5:29 AM
jaeyoon added reviewers for D51506: ufshci: Add functions for UTP Task Management: imp, julian.
Jul 25 2025, 4:43 AM
jaeyoon requested review of D51506: ufshci: Add functions for UTP Task Management.
Jul 25 2025, 3:45 AM

Jul 18 2025

jaeyoon accepted D51382: RELNOTES: Add ufshci(4).

Thank you!

Jul 18 2025, 7:34 AM

Jul 16 2025

jaeyoon added a comment to D50933: ufshci: enable the ufshci module to load at boot time.
In D50933#1172976, @imp wrote:
In D50933#1172975, @j_yoon.choi_samsung.com wrote:
In D50933#1172970, @imp wrote:

committeed

I had hoped the test box I ordered to test the UFS stuff would have arrived by now since I wanted to test boot this first... but it's held up in customs, it seems, so after yet another delay I'll push this an the man page in.

Would you mind sharing which test box you ordered?
I think it would be easier to troubleshoot if we have the same device.

Minisforum S100-US Intel® N100 / 8GB RAM+256GB SSD / US is what I ordered.
https://store.minisforum.com/products/minisforum-s100?_pos=1&_psq=Minisforum+S100-US&_ss=e&_v=1.0
though it's showing out of stock at the moment... I ordered mine about a month and a half ago now and had to wait until now to get it (now the tracking is telling me it will be here any day... Monday the tracking info made it sound like it was weeks away).

Jul 16 2025, 11:58 PM
jaeyoon added a comment to D50933: ufshci: enable the ufshci module to load at boot time.
In D50933#1172970, @imp wrote:

committeed

I had hoped the test box I ordered to test the UFS stuff would have arrived by now since I wanted to test boot this first... but it's held up in customs, it seems, so after yet another delay I'll push this an the man page in.

Jul 16 2025, 11:31 PM
jaeyoon added a comment to D51029: ufshci: add man page.
In D51029#1172968, @imp wrote:

Committed...

Jul 16 2025, 11:23 PM
jaeyoon added a comment to D50933: ufshci: enable the ufshci module to load at boot time.

Could you please commit this patch?

Jul 16 2025, 11:11 PM
jaeyoon added a comment to D51029: ufshci: add man page.

Could you please commit this patch?

Jul 16 2025, 11:10 PM

Jul 10 2025

jaeyoon added a reviewer for D51029: ufshci: add man page: rpokala.
Jul 10 2025, 11:58 PM
jaeyoon added inline comments to D51029: ufshci: add man page.
Jul 10 2025, 11:57 PM
jaeyoon updated the diff for D51029: ufshci: add man page.

Apply review comment

Jul 10 2025, 11:56 PM
jaeyoon added inline comments to D51029: ufshci: add man page.
Jul 10 2025, 4:28 AM
jaeyoon updated the diff for D51029: ufshci: add man page.

Apply review comment

Jul 10 2025, 4:24 AM

Jul 2 2025

jaeyoon added a reviewer for D50933: ufshci: enable the ufshci module to load at boot time: julian.
Jul 2 2025, 12:33 AM
jaeyoon added a reviewer for D51029: ufshci: add man page: julian.
Jul 2 2025, 12:33 AM

Jun 25 2025

jaeyoon updated the diff for D51029: ufshci: add man page.

initialisation -> initialization

Jun 25 2025, 4:48 AM
jaeyoon added a reviewer for D51029: ufshci: add man page: manpages.
Jun 25 2025, 4:30 AM
jaeyoon updated the diff for D51029: ufshci: add man page.

Add ufshci to Makefile

Jun 25 2025, 3:14 AM
jaeyoon added a reviewer for D51029: ufshci: add man page: imp.
Jun 25 2025, 1:48 AM
jaeyoon requested review of D51029: ufshci: add man page.
Jun 25 2025, 1:47 AM

Jun 24 2025

jaeyoon updated the diff for D50933: ufshci: enable the ufshci module to load at boot time.

Use full name of driver

Jun 24 2025, 3:12 AM

Jun 19 2025

jaeyoon added a reviewer for D50933: ufshci: enable the ufshci module to load at boot time: imp.
Jun 19 2025, 8:45 AM
jaeyoon requested review of D50933: ufshci: enable the ufshci module to load at boot time.
Jun 19 2025, 8:41 AM

Jun 13 2025

jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.
In D50370#1160086, @imp wrote:
In D50370#1160085, @j_yoon.choi_samsung.com wrote:
In D50370#1159626, @j_yoon.choi_samsung.com wrote:
In D50370#1159535, @imp wrote:

I think this is ready to commit (or at least to start to try)... What do you think?

Yes, I think this is ready to commit!

I don't understand the commit process. Is there anything I need to do to commit?

Since you don't yet have commit permissions, I'll need to do that. I'll download it to my tree, make sure it compiles everywhere (or is disabled) and then push it into the repo. I just wanted to make sure that you didn't have anything else planned before I started that process...

Jun 13 2025, 3:51 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.
In D50370#1159626, @j_yoon.choi_samsung.com wrote:
In D50370#1159535, @imp wrote:

I think this is ready to commit (or at least to start to try)... What do you think?

Yes, I think this is ready to commit!

Jun 13 2025, 3:15 AM

Jun 12 2025

jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.
In D50370#1159535, @imp wrote:

I think this is ready to commit (or at least to start to try)... What do you think?

Jun 12 2025, 2:35 PM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Change UIC power mode ready time from 500ms to 2000ms

Jun 12 2025, 3:51 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

Apply review comments.

Jun 12 2025, 3:18 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Apply review comments

Jun 12 2025, 3:15 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

Thank you for the kind review.
Your advice was a great help in preparing the patch. :)

Jun 12 2025, 2:59 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Apply review comment, Remove unnecessary functions

Jun 12 2025, 1:10 AM

Jun 11 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Rename functions

Jun 11 2025, 11:47 PM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Fix a uic command bug

Jun 11 2025, 9:51 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

I measured the key performance metrics on the real device and confirmed that the results meet my goals.
For Write, if WriteBooster is applied, the bandwitch will increase.
Here are the results I measured on each device.

Jun 11 2025, 9:49 AM

Jun 9 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Fix a memory leak bug

Jun 9 2025, 2:23 AM

Jun 5 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Remove debug code

Jun 5 2025, 8:22 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

This patch is now ready for full review.
Thank you for your patience.

Jun 5 2025, 7:22 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Apply clang-format

Jun 5 2025, 6:55 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

The UFSHCI driver now works on the Samsung Galaxy Book S and Lenovo Duet3.

Jun 5 2025, 2:47 AM

Jun 4 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Check the completion notification register when processing request completion

Jun 4 2025, 7:34 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Number of bugs found during testing on Lenovo duet3

Jun 4 2025, 7:23 AM

Jun 2 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Fix a bug in interrupt enable register, Add Lenovo Duet3 11ian device id

Jun 2 2025, 8:44 AM

May 29 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Refactoring quirks

May 29 2025, 5:54 AM

May 28 2025

jaeyoon added inline comments to D50370: ufshci: Introduce the ufshci(4) driver.
May 28 2025, 9:40 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Move the quirk check routine to PCI attach.

May 28 2025, 9:37 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

The latest version of the UFS spec is paid, but you can download version 2.1 for free. Except for the MCQs, 4.1 and 2.1 are almost identical.
Please refer to them in your review.

May 28 2025, 12:40 AM

May 27 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Apply review comments

May 27 2025, 10:16 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

Thanks for the kind review! Most comments have been applied.
I'll mark the remaining ones as done after applying the review.
Thanks again!

May 27 2025, 10:14 AM
jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Apply clang-format

May 27 2025, 1:14 AM

May 23 2025

jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

We've updated style(9) to permit // comments but don't want styles mixed within a file/component. The //s here look like mostly temporary/debug code that won't be committed.

Comments starting with // may be used in both C and C++.  Styles should
not be mixed within a file or component.

There's also a file for clang-format which should produce acceptable results.

We can focus on architectural / high level approach review initially and do a style(9) pass once ready to commit.

May 23 2025, 2:33 AM
jaeyoon added inline comments to D50370: ufshci: Introduce the ufshci(4) driver.
May 23 2025, 2:09 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

Obligatory style review:

  • I see commented out code; either delete it or use #if(def) to gate it with an internal debug define
  • FreeBSD uses /* C-style comments */ not // C++-style comments but I see a few instances of the latter
  • Continuation lines aren't being consistently indented (I'm struggling to figure out what rule you've followed, even); they should be indented by four spaces relative to the block-level indent
  • For combinations of bitwise operations etc where the operator precedence can be unintuitive we generally include redundant parentheses to avoid the need to think about whether it's correct without them (both for reading and writing)

You may find tools/build/checkstyle9.pl helpful, it can probably tell you about some of these, and maybe more I've not spotted. As an adaptation of QEMU's style checker it's not perfect though, so if it looks to be producing unexpected output then feel free to ignore those suggestions.

May 23 2025, 1:58 AM
jaeyoon added inline comments to D50370: ufshci: Introduce the ufshci(4) driver.
May 23 2025, 1:53 AM
jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

first pass - this on the surface looks like a well formatted / written driver. no magic numbers, consistent indenting, commented code, handling errors, thanks!

May 23 2025, 1:29 AM

May 22 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Add manual completion, Add comments to req_queue

May 22 2025, 5:43 AM

May 21 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Update UFS/UFSHCI version to 4.1, Add a Intel Lakefield quirk

May 21 2025, 8:45 AM

May 20 2025

jaeyoon updated the diff for D50370: ufshci: Introduce the ufshci(4) driver.

Fix typo, update data_direction in UTRD, Add delay for HCE enable

May 20 2025, 2:21 AM

May 16 2025

jaeyoon added a comment to D50370: ufshci: Introduce the ufshci(4) driver.

I’d like to request an early review.
The items listed below are still incomplete, but I plan to finish them and update the patch while the review is in progress.

May 16 2025, 12:54 AM
jaeyoon added reviewers for D50370: ufshci: Introduce the ufshci(4) driver: imp, julian.
May 16 2025, 12:43 AM
jaeyoon requested review of D50370: ufshci: Introduce the ufshci(4) driver.
May 16 2025, 12:37 AM