[PATCH 0/2] scsi: ufs: batch device-init reads with UFS 5.0 aggregated read

Hyeoncheol Jeong posted 2 patches 1 week, 4 days ago
drivers/ufs/core/ufshcd.c | 365 +++++++++++++++++++++++++++++++++++---
include/ufs/ufs.h         |  46 +++++
include/ufs/ufshcd.h      |  11 ++
3 files changed, 402 insertions(+), 20 deletions(-)
[PATCH 0/2] scsi: ufs: batch device-init reads with UFS 5.0 aggregated read
Posted by Hyeoncheol Jeong 1 week, 4 days ago
UFS 5.0 adds the AGGREGATED READ query (opcode 0x9): one QUERY RESPONSE
UPIU returns many descriptors, attributes and flags as a chain of typed
groups.

Patch 1 adds the opcode, the request mask, the group header and the reply
plumbing. Patch 2 uses it during device init: a single aggregated read
replaces the per-item queries for the attributes, flags and ID strings,
falling back to individual queries on older devices or a rejected opcode.

No functional change for pre-5.0 devices.

Hyeoncheol Jeong (2):
  scsi: ufs: Add the aggregated read query opcode and its reply format
  scsi: ufs: Serve the device init reads from one aggregated read

 drivers/ufs/core/ufshcd.c | 365 +++++++++++++++++++++++++++++++++++---
 include/ufs/ufs.h         |  46 +++++
 include/ufs/ufshcd.h      |  11 ++
 3 files changed, 402 insertions(+), 20 deletions(-)

-- 
2.25.1