HomeFreeBSD

ufshci: Add WriteBooster support

Description

ufshci: Add WriteBooster support

This patch enables WriteBooster to improve write performance. It
reserves SLC space from normal (TLC) storage to handle incoming
writes, reducing latency and handling bursty writes.

The buffer can be dedicated to a single LU or shared across
multiple LUs, depending on configuration. Data staged in SLC is
later flushed back to TLC automatically or on demand, without
changing data placement.

The following table shows WriteBooster performance as tested on a
Galaxy Book S + UFS 4.0(HS-GEAR 4) device.

----------------------------------------------------------------
|     Workload      |  BS  | QD | WriteBooster |   Bandwidth   |
----------------------------------------------------------------
| Sequential Write  |  1MB | 32 |    On        |    1568 MiB/s |
| Sequential Write  |  1MB | 32 |    Off       |     556 MiB/s |
----------------------------------------------------------------

Also, this function adds a power mode change quirk to the Intel
Lakefield UFS controller.

Sponsored by: Samsung Electronics
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D51893

Details

Provenance
jaeyoonAuthored on Aug 31 2025, 6:35 PM
impCommitted on Aug 31 2025, 6:35 PM
Reviewer
imp
Differential Revision
D51893: ufshci: Add WriteBooster support
Parents
rGfb37e38fbe99: Revert "patch: fix pch_context() for unified diffs with no leading context"
Branches
Unknown
Tags
Unknown