Niklas Cassel
e729dd9602
ata: libata-sata: Save all fields from sense data descriptor
...
[ Upstream commit 399eab7f92 ]
When filling the taskfile result for a successful NCQ command, we use
the SDB FIS from the FIS Receive Area, see e.g. ahci_qc_ncq_fill_rtf().
However, the SDB FIS only has fields STATUS and ERROR.
For a successful NCQ command that has sense data, we will have a
successful sense data descriptor, in the Sense Data for Successful NCQ
Commands log.
Since we have access to additional taskfile result fields, fill in these
additional fields in qc->result_tf.
This matches how for failing/aborted NCQ commands, we will use e.g.
ahci_qc_fill_rtf() to fill in some fields, but then for the command that
actually caused the NCQ error, we will use ata_eh_read_log_10h(), which
provides additional fields, saving additional fields/overriding the
qc->result_tf that was fetched using ahci_qc_fill_rtf().
Fixes: 18bd7718b5 ("scsi: ata: libata: Handle completion of CDL commands using policy 0xD")
Signed-off-by: Niklas Cassel <cassel@kernel.org >
Reviewed-by: Igor Pylypiv <ipylypiv@google.com >
Reviewed-by: Hannes Reinecke <hare@suse.de >
Signed-off-by: Damien Le Moal <dlemoal@kernel.org >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-04-25 10:45:42 +02:00
..
2023-10-10 14:42:22 +09:00
2023-03-24 19:19:19 -04:00
2023-05-15 06:49:39 +09:00
2024-03-01 13:35:07 +01:00
2023-05-15 06:49:39 +09:00
2023-05-15 06:49:39 +09:00
2023-08-02 17:37:05 +09:00
2023-05-15 06:49:39 +09:00
2023-08-02 17:37:05 +09:00
2023-08-02 17:37:05 +09:00
2023-08-02 17:37:06 +09:00
2023-07-03 12:56:23 -07:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:06 +09:00
2023-05-15 06:49:39 +09:00
2023-08-02 17:37:05 +09:00
2023-08-02 17:37:06 +09:00
2023-08-02 17:37:07 +09:00
2025-04-25 10:45:15 +02:00
2024-03-01 13:34:49 +01:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-23 10:29:26 +09:00
2023-08-02 17:37:05 +09:00
2025-02-01 18:37:52 +01:00
2022-10-18 13:53:27 +09:00
2025-02-01 18:37:52 +01:00
2025-04-25 10:45:15 +02:00
2020-03-26 10:28:19 -06:00
2022-01-05 19:33:01 +09:00
2025-04-25 10:45:42 +02:00
2024-10-04 16:29:48 +02:00
2025-02-17 09:40:35 +01:00
2023-01-04 13:36:26 +09:00
2023-09-28 21:23:14 +09:00
2017-11-02 11:10:55 +01:00
2019-07-29 16:00:14 -06:00
2023-09-28 21:23:14 +09:00
2023-02-22 13:35:51 -08:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:53:09 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-24 08:09:59 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-25 22:09:43 +09:00
2023-08-28 19:14:41 +09:00
2023-08-25 08:21:03 +09:00
2023-08-24 08:09:59 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-17 07:45:32 +09:00
2023-12-03 07:33:03 +01:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:37:06 +09:00
2023-03-24 19:19:19 -04:00
2024-06-16 13:47:33 +02:00
2024-09-12 11:11:39 +02:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:55:49 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-07-28 08:52:42 +09:00
2023-07-26 08:32:21 +09:00
2023-05-15 06:49:39 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-05-15 06:49:39 +09:00
2025-04-25 10:45:05 +02:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:55:52 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2024-10-10 11:57:32 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:45:42 +09:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:55:52 +09:00
2023-08-02 17:55:52 +09:00
2024-05-17 12:02:13 +02:00
2017-11-02 11:10:55 +01:00
2024-12-19 18:11:22 +01:00
2023-08-02 17:37:06 +09:00
2024-04-10 16:36:01 +02:00
2023-08-02 17:37:06 +09:00
2023-03-24 19:19:19 -04:00
2019-05-21 11:28:46 +02:00
2023-03-24 19:19:19 -04:00
2023-08-02 17:55:52 +09:00
2023-08-02 17:37:07 +09:00
2024-10-10 11:57:32 +02:00
2023-03-24 19:19:19 -04:00
2023-06-13 15:38:48 +09:00
2025-04-25 10:45:08 +02:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2023-03-24 19:19:19 -04:00
2017-11-02 11:10:55 +01:00