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
..
2017-11-27 15:37:16 +00:00
2019-09-04 13:59:06 +00:00
2019-08-13 20:06:55 +00:00
2019-09-07 15:56:00 +00:00
2017-12-30 00:26:42 +00:00
2018-11-13 21:40:56 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2018-08-11 13:25:39 +00:00
2019-05-23 20:12:24 +00:00
2019-09-05 14:15:47 +00:00
2018-08-22 15:55:23 +00:00
2019-02-04 21:28:25 +00:00
2019-06-26 20:19:48 +00:00
2017-11-20 19:49:47 +00:00
2019-06-14 06:10:15 +00:00
2018-02-08 23:06:58 +00:00
2019-05-23 20:12:24 +00:00
2019-06-28 22:12:43 +00:00
2019-08-13 20:06:55 +00:00
2018-11-13 21:40:56 +00:00
2019-03-08 10:03:16 +00:00
2019-08-07 16:56:00 +00:00
2019-09-04 04:44:03 +00:00
2019-02-25 21:58:19 +00:00
2018-12-11 22:14:37 +00:00
2019-02-11 00:11:02 +00:00
2018-09-14 15:29:45 +00:00
2019-09-06 15:01:47 +00:00
2018-12-06 00:09:39 +00:00
2018-06-17 01:39:22 +00:00
2017-11-27 15:37:16 +00:00
2019-03-06 22:11:45 +00:00
2019-08-27 00:01:56 +00:00
2019-03-26 19:38:25 +00:00
2019-06-27 12:37:44 +00:00
2019-08-05 00:08:25 +00:00
2019-08-08 20:56:52 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2018-07-02 09:14:00 +00:00
2017-11-27 15:37:16 +00:00
2018-08-09 11:46:12 +00:00
2019-04-19 06:49:46 +00:00
2018-12-21 08:15:31 +00:00
2019-02-16 23:57:38 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2019-07-22 20:04:55 +00:00
2018-08-11 08:34:24 +00:00
2019-07-31 16:07:16 +00:00
2018-10-27 16:41:34 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-10-31 00:07:04 +00:00
2019-08-07 16:56:00 +00:00
2019-08-22 06:14:06 +00:00
2019-09-05 14:15:47 +00:00
2019-09-05 14:15:47 +00:00
2019-09-04 19:19:23 +00:00
2019-09-05 14:19:06 +00:00
2019-02-01 00:34:18 +00:00
2017-10-31 00:07:04 +00:00
2019-08-27 15:34:37 +00:00
2019-08-23 15:22:20 +00:00
2018-12-06 00:09:39 +00:00
2019-09-05 14:08:45 +00:00
2019-04-30 17:42:05 +00:00
2019-02-07 14:40:28 +00:00
2017-03-04 11:33:01 +00:00
2018-08-11 16:12:23 +00:00
2019-01-10 00:10:12 +00:00
2017-12-28 05:34:24 +00:00
2019-01-05 16:05:39 +00:00
2019-04-17 16:18:14 +00:00
2017-10-31 00:07:04 +00:00
2019-09-05 14:15:47 +00:00
2018-01-02 09:02:42 +00:00
2017-11-27 15:37:16 +00:00
2019-08-13 20:06:55 +00:00
2019-08-15 02:30:44 +00:00
2019-02-24 18:47:04 +00:00
2019-03-02 21:22:56 +00:00
2018-09-13 13:57:42 +00:00
2019-02-26 06:17:23 +00:00
2017-10-31 00:07:04 +00:00
2019-06-25 04:50:09 +00:00
2018-06-14 01:15:19 +00:00
2018-06-14 01:15:19 +00:00
2018-06-14 01:15:19 +00:00