Page MenuHomeFreeBSD

ufshci: enable the ufshci module to load at boot time
ClosedPublic

Authored by jaeyoon on Jun 19 2025, 8:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 15, 2:35 AM
Unknown Object (File)
Wed, Oct 8, 4:28 PM
Unknown Object (File)
Fri, Oct 3, 10:56 AM
Unknown Object (File)
Sep 16 2025, 10:37 AM
Unknown Object (File)
Sep 14 2025, 7:31 PM
Unknown Object (File)
Sep 12 2025, 2:29 AM
Unknown Object (File)
Sep 10 2025, 7:37 AM
Unknown Object (File)
Sep 3 2025, 12:34 PM
Subscribers

Details

Summary

The ufshci driver tried to allocate a single 256KB segment for the UTP
command descriptor during boot, but failed due to memory fragmentation.
I fixed it to allocate the buffer in 8KB segments instead.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks good to my eye.

This revision is now accepted and ready to land.Jul 9 2025, 3:09 AM

Could you please commit this patch?

This revision was automatically updated to reflect the committed changes.

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.

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.

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

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

Thanks for letting me know. I will try to purchase the same one.
Please let me know if you have any issues after receiving the test box.