[PATCH v2 0/3] scsi: ufs: core: support WB buffer resize function

Lu Hongfei posted 3 patches 2 years, 3 months ago
There is a newer version of this series
Documentation/ABI/testing/sysfs-driver-ufs | 52 ++++++++++++++++
drivers/ufs/core/ufs-sysfs.c               | 71 ++++++++++++++++++++++
drivers/ufs/core/ufshcd-priv.h             |  1 +
drivers/ufs/core/ufshcd.c                  | 21 +++++++
include/ufs/ufs.h                          |  5 +-
include/ufs/ufshcd.h                       |  1 +
6 files changed, 150 insertions(+), 1 deletion(-)
[PATCH v2 0/3] scsi: ufs: core: support WB buffer resize function
Posted by Lu Hongfei 2 years, 3 months ago
Hello,

This v2 series implements the function of controlling the wb buffer resize
via sysfs that will be supported in UFS4.1.

The patch 1 add WB buffer resize related attr_idns.
The patch 2 Add ufshcd_wb_buf_resize function to enable WB buffer resize.
The patch 3 Add sysfs attributes to control WB buffer resize function.

version 2 changes
-Using sysfs to control WB buffer resize instead of exception event handler
-Removed content related to exception event
-Solved several issues that caused compilation errors

Of course, there may be better ways to implement this feature.
If necessary, please point it out and I will optimize it as soon as
possible.

As of now, there have been no UFS device releases that support this
feature, so I have not tested the code on real hardware.

------------------------------------------------------------------------

Lu Hongfei (3):
  scsi: ufs: core: add wb buffer resize related attr_idn
  scsi: ufs: core: Add ufshcd_wb_buf_resize function to enable WB buffer
    resize
  scsi: ufs: core: Add sysfs attributes to control WB buffer resize
    function

 Documentation/ABI/testing/sysfs-driver-ufs | 52 ++++++++++++++++
 drivers/ufs/core/ufs-sysfs.c               | 71 ++++++++++++++++++++++
 drivers/ufs/core/ufshcd-priv.h             |  1 +
 drivers/ufs/core/ufshcd.c                  | 21 +++++++
 include/ufs/ufs.h                          |  5 +-
 include/ufs/ufshcd.h                       |  1 +
 6 files changed, 150 insertions(+), 1 deletion(-)

-- 
2.39.0
Re: [PATCH v2 0/3] scsi: ufs: core: support WB buffer resize function
Posted by Can Guo 2 years, 3 months ago
Hi Hongfei,

On 9/8/2023 6:20 PM, Lu Hongfei wrote:
> Hello,
>
> This v2 series implements the function of controlling the wb buffer resize
> via sysfs that will be supported in UFS4.1.
>
>
UFS4.1 JEDEC standard is targeting Q3 2024, before it is finalized, 
please don't put up changes for new features (which are still in draft) 
on upstream.


Thanks,

Can Guo.