From: Bartlomiej Zolnierkiewicz Subject: Re: [PATCH] libata-core when not ata_id_use_dmadir despite yes SiliconI mage Date: Sat, 15 May 2004 18:38:15 +0200 Sender: linux-ide-owner@vger.kernel.org Message-ID: <200405151838.15898.bzolnier@elka.pw.edu.pl> References: <1084630807.5082.42.camel@patibmrh9> <200405151633.10473.bzolnier@elka.pw.edu.pl> <40A64229.7000600@pobox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from mion.elka.pw.edu.pl ([194.29.160.35]:23022 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S264683AbUEOQg2 (ORCPT ); Sat, 15 May 2004 12:36:28 -0400 In-Reply-To: <40A64229.7000600@pobox.com> Content-Disposition: inline List-Id: linux-ide@vger.kernel.org To: Jeff Garzik Cc: Pat LaVarre , linux-ide@vger.kernel.org On Saturday 15 of May 2004 18:15, Jeff Garzik wrote: > Bartlomiej Zolnierkiewicz wrote: > > On Saturday 15 of May 2004 16:20, Pat LaVarre wrote: > >>>>>Subject: Re: SATA ATAPI work in progress > >>>>>... > >>>>>I doubt I can use this patch as is. I believe, > >>>>>because I assembled my drive from components myself, > >>>>>its op xA1 Identify data has not changed, > >>>>>so I will see a misleading 0 False at: > >>>>> > >>>>>#define ata_id_use_dmadir(dev) ((dev)->id[62] & (1 << 15)) > >>> > >>>Theory confirmed! > >> > >>Consequently now: > >> > >>In t13.org since the dawn of time, I see the requirement that compliant > >>ATAPI devices tolerate hosts creatively choosing to copy > >>(cmd->sc_data_direction != SCSI_DATA_WRITE) into (ata_taskfile.feature & > >>x04 ATAPI_DMADIR). > >> > >>I see devices constructed with Silicon Image 3611CT80 1.4 require such a > >>courtesy from the host. > >> > >>Therefore I propose that Linux, as host, offer that courtesy always. > > > > Makes sense. > > > > Jeff, if you decide to do this remember to kill ata_id_use_dmadir() > > and ATA_DFLAG_DMADIR completely. [ I'm sure you will. :-) ] > > According to ATA/ATAPI7, > > A device that does not support the DMADIR feature may abort a > command if the DMADIR bit is set to 1. > > And this language makes sense, since it is unknown what all those cheap > old ATAPI devices will do. It's too risky to simply set this bit for > all ATAPI devices, without lots of testing. OK > We can do so for our development here, but a better solution based on > released parts will need to be found... Do you know of some way to detect SI 3611CT80 1.4?