Commit 39b14c2
ufs: core: Inform the block layer about write ordering
From the UFSHCI 4.0 specification, about the MCQ mode:
"Command Submission
1. Host SW writes an Entry to SQ
2. Host SW updates SQ doorbell tail pointer
Command Processing
3. After fetching the Entry, Host Controller updates SQ doorbell head
pointer
4. Host controller sends COMMAND UPIU to UFS device"
In other words, in MCQ mode, UFS controllers are required to forward
commands to the UFS device in the order these commands have been
received from the host.
This patch improves performance as follows on a test setup with UFSHCI
4.0 controller:
- When not using an I/O scheduler: 2.3x more IOPS for small writes.
- With the mq-deadline scheduler: 2.0x more IOPS for small writes.
Reviewed-by: Avri Altman <[email protected]>
Cc: Bao D. Nguyen <[email protected]>
Cc: Can Guo <[email protected]>
Cc: Martin K. Petersen <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>1 parent 78ba850 commit 39b14c2
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5324 | 5324 | | |
5325 | 5325 | | |
5326 | 5326 | | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
5327 | 5334 | | |
5328 | 5335 | | |
5329 | 5336 | | |
| |||
0 commit comments