public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V5 0/2] Add CPU latency QoS support for ufs driver
@ 2023-12-13 12:43 Maramaina Naresh
  2023-12-13 12:43 ` [PATCH V5 1/2] ufs: core: " Maramaina Naresh
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Maramaina Naresh @ 2023-12-13 12:43 UTC (permalink / raw)
  To: James E.J. Bottomley, Martin K. Petersen, Peter Wang,
	Matthias Brugger, AngeloGioacchino Del Regno
  Cc: Alim Akhtar, Avri Altman, Bart Van Assche, Stanley Jhu,
	linux-scsi, linux-kernel, linux-mediatek, linux-arm-kernel,
	quic_cang, quic_nguyenb

Add CPU latency QoS support for ufs driver. This improves random io
performance by 15% for ufs.

tiotest benchmark tool io performance results on sm8550 platform:

1. Without PM QoS support
	Type (Speed in)    | Average of 18 iterations
	Random Read(IPOS)  | 37101.3
	Random Write(IPOS) | 41065.13

2. With PM QoS support
	Type (Speed in)    | Average of 18 iterations
	Random Read(IPOS)  | 42943.4
	Random Write(IPOS) | 46784.9
(Improvement with PM QoS = ~15%).

This patch is based on below patch by Stanley Chu [1]. 
Moving the PM QoS code to ufshcd.c and making it generic.

[1] https://lore.kernel.org/r/20220623035052.18802-8-stanley.chu@mediatek.com

Changes from v4:
- Addressed angelogioacchino's comments to update commit text
- Addressed angelogioacchino's comments to code alignment

Changes from v3:
- Removed UFSHCD_CAP_PM_QOS capability flag from patch#2

Changes from v2:
- Addressed bvanassche and mani comments
- Provided sysfs interface to enable/disable PM QoS feature

Changes from v1:
- Addressed bvanassche comments to have the code in core ufshcd
- Design is changed from per-device PM QoS to CPU latency QoS based support
- Reverted existing PM QoS feature from MEDIATEK UFS driver
- Added PM QoS capability for both QCOM and MEDIATEK SoCs

Maramaina Naresh (2):
  ufs: core: Add CPU latency QoS support for ufs driver
  ufs: ufs-mediatek: Migrate to UFSHCD generic CPU latency PM QoS
    support

 drivers/ufs/core/ufshcd.c       | 125 ++++++++++++++++++++++++++++++++
 drivers/ufs/host/ufs-mediatek.c |  17 -----
 drivers/ufs/host/ufs-mediatek.h |   3 -
 include/ufs/ufshcd.h            |   6 ++
 4 files changed, 131 insertions(+), 20 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-18 21:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-13 12:43 [PATCH V5 0/2] Add CPU latency QoS support for ufs driver Maramaina Naresh
2023-12-13 12:43 ` [PATCH V5 1/2] ufs: core: " Maramaina Naresh
2023-12-15  6:58   ` Peter Wang (王信友)
2023-12-18 21:55   ` Bart Van Assche
2023-12-13 12:43 ` [PATCH V5 2/2] ufs: ufs-mediatek: Migrate to UFSHCD generic CPU latency PM QoS support Maramaina Naresh
2023-12-15  6:59   ` Peter Wang (王信友)
2023-12-15  9:05 ` [PATCH V5 0/2] Add CPU latency QoS support for ufs driver Avri Altman
2023-12-17 17:03   ` Naresh Maramaina

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox