aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/BusLogic.h
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2021-10-31 14:36:54 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-11-03 21:51:56 -0400
commit9ec5128a8b5631d652ed06b37e0166f337802f90 (patch)
tree66edc86896b3cd181005da293cc953fc3c9501db /drivers/scsi/BusLogic.h
parentMerge branch '5.15/scsi-fixes' into 5.16/scsi-queue (diff)
downloadlinux-dev-9ec5128a8b5631d652ed06b37e0166f337802f90.tar.xz
linux-dev-9ec5128a8b5631d652ed06b37e0166f337802f90.zip
scsi: ufs: ufshpb: Properly handle max-single-cmd
The spec recommends that for transfer length larger than the max-single-cmd attribute (bMAX_DATA_SIZE_FOR_HPB_SINGLE_CMD) it is possible to couple pre-requests with the HPB-READ command. Being a recommendation, using pre-requests can be perceived merely as a means of optimization. A common practice was to send pre-requests for chunks within some interval, and leave the READ10 untouched if larger. Now that the pre-request flows have been removed, all the commands are single commands. Properly handle this attribute and do not send HPB-READ for transfer lengths larger than max-single-cmd. [mkp: resolve conflict] Fixes: 09d9e4d04187 ("scsi: ufs: ufshpb: Remove HPB2.0 flows") Link: https://lore.kernel.org/r/20211031123654.17719-1-avri.altman@wdc.com Reviewed-by: Daejun Park <daejun7.park@samsung.com> Signed-off-by: Avri Altman <avri.altman@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/BusLogic.h')
0 files changed, 0 insertions, 0 deletions