* Possible Bug In ATA/SCSI Fixed Sense @ 2016-10-28 18:34 Charles Machalow 2016-10-31 15:58 ` Tejun Heo 0 siblings, 1 reply; 3+ messages in thread From: Charles Machalow @ 2016-10-28 18:34 UTC (permalink / raw) To: tj; +Cc: linux-ide Hi all, As of Linux commit 14970f204b1993af7459d5bd34aaff38dfee6670, In drivers/ata/libata-scsi.c in ata_gen_passthru_sense() line 1087, desc[0] is set to tf->feature. This makes sense to me however 4 lines below the same item in the array is set to 0. One of these lines must be unintended as no matter what the field will always be 0 though for a couple lines it is set to tf-feature. I think that line 1091 is at fault because if I send down a nop command, feature (error in this case) should be set to 4 in the returned current task file. Thanks! - Charlie Scott Machalow ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Possible Bug In ATA/SCSI Fixed Sense 2016-10-28 18:34 Possible Bug In ATA/SCSI Fixed Sense Charles Machalow @ 2016-10-31 15:58 ` Tejun Heo 2016-10-31 20:09 ` Hannes Reinecke 0 siblings, 1 reply; 3+ messages in thread From: Tejun Heo @ 2016-10-31 15:58 UTC (permalink / raw) To: Charles Machalow; +Cc: linux-ide, Hannes Reinecke Hello, On Fri, Oct 28, 2016 at 11:34:22AM -0700, Charles Machalow wrote: > As of Linux commit 14970f204b1993af7459d5bd34aaff38dfee6670, In > drivers/ata/libata-scsi.c in ata_gen_passthru_sense() line 1087, > desc[0] is set to tf->feature. This makes sense to me however 4 lines > below the same item in the array is set to 0. > > One of these lines must be unintended as no matter what the field will > always be 0 though for a couple lines it is set to tf-feature. > > I think that line 1091 is at fault because if I send down a nop > command, feature (error in this case) should be set to 4 in the > returned current task file. This looks to be from 11093cb1ef56 ("libata-scsi: generate correct ATA pass-through sense"). Hannes? Thanks. -- tejun ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Possible Bug In ATA/SCSI Fixed Sense 2016-10-31 15:58 ` Tejun Heo @ 2016-10-31 20:09 ` Hannes Reinecke 0 siblings, 0 replies; 3+ messages in thread From: Hannes Reinecke @ 2016-10-31 20:09 UTC (permalink / raw) To: Tejun Heo, Charles Machalow; +Cc: linux-ide On 10/31/2016 04:58 PM, Tejun Heo wrote: > Hello, > > On Fri, Oct 28, 2016 at 11:34:22AM -0700, Charles Machalow wrote: >> As of Linux commit 14970f204b1993af7459d5bd34aaff38dfee6670, In >> drivers/ata/libata-scsi.c in ata_gen_passthru_sense() line 1087, >> desc[0] is set to tf->feature. This makes sense to me however 4 lines >> below the same item in the array is set to 0. >> >> One of these lines must be unintended as no matter what the field will >> always be 0 though for a couple lines it is set to tf-feature. >> >> I think that line 1091 is at fault because if I send down a nop >> command, feature (error in this case) should be set to 4 in the >> returned current task file. > > This looks to be from 11093cb1ef56 ("libata-scsi: generate correct ATA > pass-through sense"). Hannes? > Indeed, that's an error. I wanted to set byte 7 to zero, indicating there is no additional sense data to be had. Patch has been sent. Cheers, Hannes -- Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg) ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-31 20:09 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-10-28 18:34 Possible Bug In ATA/SCSI Fixed Sense Charles Machalow 2016-10-31 15:58 ` Tejun Heo 2016-10-31 20:09 ` Hannes Reinecke
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox