* [PATCH 0/2] libata: MODE SELECT
@ 2005-10-23 6:23 Douglas Gilbert
2005-10-28 19:59 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Douglas Gilbert @ 2005-10-23 6:23 UTC (permalink / raw)
To: Jeff Garzik; +Cc: linux-ide, linux-scsi, htejun
Jeff,
Here is another shot at adding MODE SELECT to
libata. I have used sat-r06, sbc-3 and spc-4 as
a guide. Compliance on the ATA side has some issues:
- no mechanism to issue 2 or more ATA commands
when translating a single SCSI command [in the
upstream branch, there have been patches ...]
- relies on the dev->id array (IDENTIFY DEVICE response)
always being up to date. Despite assurances I cannot
see how that is the case when multiple hosts
(initiators) can access a SATA disk.
This patch is broken into two parts and is against
libata-dev's upstream branch:
1) strengthen MODE SENSE processing and make
default mode pages visible within libata-scsi.c
2) add MODE SELECT SCSI command support.
Two attributes can be changed with these patches:
- WCE: write cache enable [cache mode page]
- DRA: disable read ahead [cache mode page]
Testing: upstream branch seems to be broken wrt SG_IO
as the largest amount of data that can be sent per
command is 4 KB. A 50 MB write (segmented to 4 KB per
command) slowed down from 14 seconds with WCE=1 to
107 seconds with WCE=0. sg_dd was used for the transfer
and sdparm to change WCE. ST380013AS disk and
sata_sil LLD.
The attachments are mime text because I wasn't able
to do otherwise.
Signed-off-by: Douglas Gilbert <dougg@torque.net>
Doug Gilbert
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH 0/2] libata: MODE SELECT
2005-10-23 6:23 [PATCH 0/2] libata: MODE SELECT Douglas Gilbert
@ 2005-10-28 19:59 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2005-10-28 19:59 UTC (permalink / raw)
To: dougg; +Cc: linux-ide, linux-scsi, htejun
Douglas Gilbert wrote:
> Jeff,
> Here is another shot at adding MODE SELECT to
> libata. I have used sat-r06, sbc-3 and spc-4 as
> a guide. Compliance on the ATA side has some issues:
> - no mechanism to issue 2 or more ATA commands
> when translating a single SCSI command [in the
> upstream branch, there have been patches ...]
> - relies on the dev->id array (IDENTIFY DEVICE response)
> always being up to date. Despite assurances I cannot
> see how that is the case when multiple hosts
> (initiators) can access a SATA disk.
>
> This patch is broken into two parts and is against
> libata-dev's upstream branch:
> 1) strengthen MODE SENSE processing and make
> default mode pages visible within libata-scsi.c
> 2) add MODE SELECT SCSI command support.
Thanks for splitting it up. I'm going to mess around with the best way
to issue multiple commands, and hold on to your patch #2 until that happens.
Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-10-28 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-23 6:23 [PATCH 0/2] libata: MODE SELECT Douglas Gilbert
2005-10-28 19:59 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).