FAILED: patch "[PATCH] Revert "libata: Implement support for sense data reporting"" failed to apply to 4.1-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 4.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
84ded2f8e7dda336fc2fb3570726ceb3b3b3590fMon Sep 17 00:00:00 2001
From: Tejun Heo <[email protected]>
Date: Mon, 3 Aug 2015 11:45:34 -0400
Subject: [PATCH] Revert "libata: Implement support for sense data reporting"
This reverts commit fe7173c206de63fc28475ee6ae42ff95c05692de.
As implemented, ACS-4 sense reporting for ATA devices bypasses error diagnosis and handling in libata degrading EH behavior significantly. Revert the related changes for now.
ATA_ID_COMMAND_SET_3/4 constants are not reverted as they're used by later changes.
drivers/ata/libata-core.c +1 -19
@@ -2147,24 +2147,6 @@ static int ata_dev_config_ncq(struct ata_device *dev,return 0 ; } -static void ata_dev_config_sense_reporting (struct ata_device *dev) -{ -unsigned int err_mask; - -if (!ata_id_has_sense_reporting (dev->id)) -return ; - -if (ata_id_sense_reporting_enabled (dev->id)) -return ; - - err_mask =ata_dev_set_feature (dev,SETFEATURE_SENSE_DATA ,0x1 ); -if (err_mask) { -ata_dev_dbg (dev, -"failed to enable Sense Data Reporting, Emask 0x%x\n" , - err_mask); - } -} -/** * ata_dev_configure - Configure the specified ATA/ATAPI device * @dev: Target device to configure
@@ -2387,7 +2369,7 @@ int ata_dev_configure(struct ata_device *dev) dev->devslp_timing[i] = sata_setting[j]; } } -ata_dev_config_sense_reporting (dev); + dev->cdb_len =16 ; }
drivers/ata/libata-eh.c +3 -83
110 lines not on this page · raw message
include/linux/ata.h +0 -16
@@ -385,8 +385,6 @@ enum {SATA_SSP =0x06 ,/* Software Settings Preservation */ SATA_DEVSLP =0x09 ,/* Device Sleep */ -SETFEATURE_SENSE_DATA =0xC3 ,/* Sense Data Reporting feature */ -/* feature values for SET_MAX */ ATA_SET_MAX_ADDR =0x00 , ATA_SET_MAX_PASSWD = 0x01,
@@ -720,20 +718,6 @@ static inline bool ata_id_has_read_log_dma_ext(const u16 *id)return false; } -static inline bool ata_id_has_sense_reporting (const u16 *id) -{ -if (!(id[ATA_ID_CFS_ENABLE_2 ] & (1 <<15 ))) -return false; -return id[ATA_ID_COMMAND_SET_3 ] & (1 <<6 ); -} - -static inline bool ata_id_sense_reporting_enabled (const u16 *id) -{ -if (!(id[ATA_ID_CFS_ENABLE_2 ] & (1 <<15 ))) -return false; -return id[ATA_ID_COMMAND_SET_4 ] & (1 <<6 ); -} -/** * ata_id_major_version - get ATA level of drive * @id: Identify data
Greg KH
maintainerQuoted 5 lines · On Thu, Sep 10, 2015 at 11:17:29PM -0700, [email protected] wrote:
The patch below does not apply to the 4.1-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
Oops, nevermind, I messed up the order of these, both patches are now queued up, sorry for the noise.
greg k-h