lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231122172512.103748-1-beanhuo@iokpp.de>
Date:   Wed, 22 Nov 2023 18:25:09 +0100
From:   Bean Huo <beanhuo@...pp.de>
To:     avri.altman@....com, bvanassche@....org, alim.akhtar@...sung.com,
        jejb@...ux.ibm.com, martin.petersen@...cle.com, mani@...nel.org,
        quic_cang@...cinc.com, quic_asutoshd@...cinc.com,
        beanhuo@...ron.com, thomas@...ch.de
Cc:     linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
        mikebi@...ron.com, lporzio@...ron.com, Bean Huo <beanhuo@...pp.de>
Subject: [PATCH v2 0/3] Add UFS RTC support

Adding RTC support for embedded storage device UFS in its driver, it is important for a few key
reasons:

1. Helps with Regular Maintenance:
The RTC provides a basic way to keep track of time, making it useful for scheduling routine
maintenance tasks in the storage device. This includes things like making sure data is spread
evenly across the storage to extend its life.

2. Figuring Out How Old Data Is:
The RTC helps the device estimate how long ago certain parts of the storage were last used.
This is handy for deciding when to do maintenance tasks to keep the storage working well over time.

3. Making Devices Last Longer:
By using the RTC for regular upkeep, we can make sure the storage device lasts longer and
stays reliable. This is especially important for devices that need to work well for a long
time.

4.Fitting In with Other Devices:
The inclusion of RTC support aligns with existing UFS specifications (starting from UFS Spec 2.0)
and is consistent with the prevalent industry practice. Many UFS devices currently on the market
utilize RTC for internal timekeeping. By ensuring compatibility with this widely adopted standard,
the embedded storage device becomes seamlessly integrable with existing hardware and software
ecosystems, reducing the risk of compatibility issues.

In short, adding RTC support to embedded storage device UFS helps with regular upkeep, extends
the device's life, ensures compatibility, and keeps everything running smoothly with the rest
of the system.

Changelog:
	v1--v2:
		1. Add a new patch "scsi: ufs: core: Add ufshcd_is_ufs_dev_busy()"
		2. RTC periodic update work is disabled by default
		3. Address several issues raised by Avri, Bart, and Thomas.


Bean Huo (3):
  scsi: ufs: core: Add ufshcd_is_ufs_dev_busy()
  scsi: ufs: core: Add UFS RTC support
  scsi: ufs: core: Add sysfs node for UFS RTC update

 Documentation/ABI/testing/sysfs-driver-ufs |  7 ++
 drivers/ufs/core/ufs-sysfs.c               | 31 ++++++++
 drivers/ufs/core/ufshcd.c                  | 90 ++++++++++++++++++++--
 include/ufs/ufs.h                          | 15 ++++
 include/ufs/ufshcd.h                       | 12 ++-
 5 files changed, 149 insertions(+), 6 deletions(-)

-- 
2.34.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ