freebsd-dev/sbin/camcontrol
Alexander Motin 16614d3518 Supply SAT layer with valid transfer sizes.
This is a rework of r344701, that noticed that number of bytes passes to
8 bit sector count field gets truncated.  First decision was to not pass
anything, since ATA specs define the field as N/A.  But it appeared to be a
problem for some SAT devices, that require information about data transfer
to operate properly.  Some additional investigation shown that it is quite
a common practice to set unused fields of ATA commands (fortunately ATA
specs formally allow it) to supply the information to SAT layer.  I have
found SAS-SATA interposer that does not allow pass-through without it.

As side effect, reduce code duplication by removing ata_do_28bit_cmd()
function, replacing it with more universal ata_do_cmd().

MFC after:	1 week
Sponsored by:	iXsystems, Inc.
2019-09-07 15:56:00 +00:00
..
attrib.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
camcontrol.8 Make camcontrol modepage support block descriptors. 2019-08-07 14:45:10 +00:00
camcontrol.c Supply SAT layer with valid transfer sizes. 2019-09-07 15:56:00 +00:00
camcontrol.h Make camcontrol modepage support block descriptors. 2019-08-07 14:45:10 +00:00
epc.c Use the more proper term of SATL instead of ATA_BEHIND_SCSI. 2019-07-15 20:25:41 +00:00
fwdownload.c Supply SAT layer with valid transfer sizes. 2019-09-07 15:56:00 +00:00
Makefile Retire support for -DMINIMALISTIC 2019-07-12 05:35:45 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
modeedit.c Make GCC happy about math in r350676. 2019-08-07 15:05:08 +00:00
persist.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
progress.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
progress.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
timestamp.c Use present now scsi_mode_sense_subpage(). 2019-07-29 20:41:11 +00:00
util.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
zone.c Use the more proper term of SATL instead of ATA_BEHIND_SCSI. 2019-07-15 20:25:41 +00:00