linux/drivers/ufs/core
Lu Hongfei e3d55626cf scsi: ufs: wb: Add explicit flush_threshold sysfs attribute
There are three flags that control Write Booster Feature:

    1. WB ON/OFF
    2. WB Hibern Flush ON/OFF (implicitly)
    3. WB Flush ON/OFF (explicit)

In the case of "Hibern Flush", one of the conditions for flush WB buffer is
that avail_wb_buff < wb_flush_threshold.

As we know, different users have different requirements for power
consumption and performance. Therefore, we need the ability to manually set
wb_flush_threshold, so that users can easily and flexibly adjust the
wb_flush_threshold value, thereby achieving a balance between power
consumption and performance.

So the sysfs attribute that controls this is necessary.

wb_flush_threshold represents the threshold for flushing WB buffer, whose
value expressed in unit of 10% granularity, such as '1' representing 10%,
'2' representing 20%, and so on.

Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Link: https://lore.kernel.org/r/20230613022240.16595-1-luhongfei@vivo.com
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2023-06-16 12:04:31 -04:00
..
Kconfig
Makefile scsi: ufs: core: mcq: Add support to allocate multiple queues 2023-01-13 21:03:36 -05:00
ufs_bsg.c scsi: ufs: core: bsg: Fix sometimes-uninitialized warnings 2023-01-11 22:16:59 -05:00
ufs_bsg.h
ufs-debugfs.c
ufs-debugfs.h
ufs-fault-injection.c scsi: ufs: Replace all non-returning strlcpy() with strscpy() 2023-05-31 18:06:54 -04:00
ufs-fault-injection.h
ufs-hwmon.c scsi: ufs: hwmon: Constify pointers to hwmon_channel_info 2023-05-16 21:29:11 -04:00
ufs-mcq.c scsi: ufs: core: Add host quirk UFSHCD_QUIRK_MCQ_BROKEN_RTC 2023-06-16 12:04:31 -04:00
ufs-sysfs.c scsi: ufs: wb: Add explicit flush_threshold sysfs attribute 2023-06-16 12:04:31 -04:00
ufs-sysfs.h
ufshcd-crypto.c scsi: ufs: Ungate the clock synchronously 2023-05-31 11:44:01 -04:00
ufshcd-crypto.h
ufshcd-priv.h scsi: ufs: core: Remove dedicated hwq for dev command 2023-06-16 12:04:30 -04:00
ufshcd.c scsi: ufs: core: Add host quirk UFSHCD_QUIRK_MCQ_BROKEN_INTR 2023-06-16 12:04:30 -04:00
ufshpb.c scsi: ufs: core: Do not open code SZ_x 2023-05-31 11:49:28 -04:00
ufshpb.h scsi: ufs: core: Do not open code SZ_x 2023-05-31 11:49:28 -04:00