Improve eMMC performance for the StarFive JHB100 SoC
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest2 patches 0 repliesNew
- v22 patches 3 repliesSuperseded
- v12 patches 5 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mmc: cqhci: Add support for setting the Send Status Command Idle Timerdrivers/ drivers/ | +58 | 0 replies | |
| 2/2 | mmc: sdhci-of-dwcmshc: Set CQHCI command idle time for StarFive JHB100drivers/ | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] Improve eMMC performance for the StarFive JHB100 SoC
This series implements programmable support for CIT, allowing host drivers to set the Send Status Command Idle Timer (CIT) in CQHCI_SSC1, either in nanoseconds or directly in internal timer clock cycles.
Different platforms can improve MMC performance by configuring their respective CIT. This series has been tested on the JHB100 SoC.
before:
dd if=/dev/mmcblk0 of=/dev/null bs=1M count=800 838860800 bytes (839 MB, 800 MiB) copied, 9.38511 s, 89.4 MB/s dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=800 838860800 bytes (839 MB, 800 MiB) copied, 12.2127 s, 68.7 MB/s
after:
dd if=/dev/mmcblk0 of=/dev/null bs=1M count=800 838860800 bytes (839 MB, 800 MiB) copied, 3.19472 s, 263 MB/s dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=800 838860800 bytes (839 MB, 800 MiB) copied, 10.7587 s, 78.0 MB/s
Changes since v2:
Patch 1:
- cqhci_set_cmd_idle_time() is removed, along with its EXPORT_SYMBOL.
- A new internal helper, cqhci_init_cit(), computes the CIT during cqhci_init(), replacing cqhci_itcf_init().
- Replace itcf_hz with a driver-provided cit_ns field.
Patch 2:
- simply assigns cq_host->cit_ns = pltfm_data->cqhci_cit_ns before cqhci_init().
- dropping the post-init cqhci_set_cmd_idle_time() call and its warning path.
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
Changhuang Liang (2):
mmc: cqhci: Add support for setting the Send Status Command Idle Timer
mmc: sdhci-of-dwcmshc: Set CQHCI command idle time for StarFive JHB100
drivers/mmc/host/cqhci-core.c | 45 +++++++++++++++++++++++++++++ drivers/mmc/host/cqhci.h | 13 +++++++++ drivers/mmc/host/sdhci-of-dwcmshc.c | 7 +++++ 3 files changed, 65 insertions(+)
--
2.25.1