diff options
author | Avri Altman <[email protected]> | 2021-10-31 14:36:54 +0200 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-11-03 21:51:56 -0400 |
commit | 9ec5128a8b5631d652ed06b37e0166f337802f90 (patch) | |
tree | 66edc86896b3cd181005da293cc953fc3c9501db /tools/perf/util/trace-event-scripting.c | |
parent | 6266f7df38e167a2386ee2747965c4816f32b449 (diff) |
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/[email protected]
Reviewed-by: Daejun Park <[email protected]>
Signed-off-by: Avri Altman <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions