mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Balazic <david.balazic@uni-mb.si>
To: axboe@suse.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] IDE TCQ
Date: Thu, 18 Jul 2002 14:14:26 +0200	[thread overview]
Message-ID: <3D36B122.E9D8A9C1@uni-mb.si> (raw)

On Mon, Apr 15 2002, Jens Axboe wrote: 
> On Mon, Apr 15 2002, Jens Axboe wrote: 
> > On Mon, Apr 15 2002, Aaron Tiensivu wrote: 
> > > Simple question but hopefully it has a simple answer.. is there a command 
> > > you can issue or flag you can look for from the output of hdparm to tell if 
> > > your hard drive is capable of TCQ before installing the patch? I have a few 
> > > IBM drives that I'm sure have TCQ abilities but I don't trust them as far as 
> > > I can throw them (being Hungarian and cursed) but I'd like to give TCQ a 
> > > whirl on my WD 120GB drives that should work OK, if they support TCQ.. 
> > > 
> > > Sorry if it's already been asked.. :) 
> > 
> > It has not been asked :-) 
> > 
> > You can run a IDENTIFY_DEVICE from user space with the task ioctls and 
> > look at word 83 -- bit 1 and 14 must be set for TCQ to be supported. If 
> > you give me the model identifier from the IBM drive, I can tell you if 
> > it has tcq or not... 
> > 
> > I'll write a small util to detect this tomorrow and send it to you + the 
> > list. 
> 
> Duh, you can of course just look at /proc/ide/ideX/hdY/identify and 
> parse that. The info above is still valid for that, of course :-) 

Recent versions of hdparm ( 4.x like shipped with recent redhat linux )
give a nice report about this :

hdparm -I /dev/hda  ( or maybe it is the -i option )

Interestingly , on my system it also says that both my ATAPI CD-ROMs
( one is a CD-RW :  Acer 1208A , the other is a CD-ROM : Teac CDR-532E-B
)
support ATA command overlap ( maybe queuing too, I don't recall right
now ).

Is overlapping supported in current TCQ code ? If not, will it be ?

It would be cool to access one drive in the seconds while the other
tries to
read a sector ( time from sending the read command, disc spinning up,
reading and delivering the sector can be up to 2 seconds ! )


Best regards,
david balazic

                 reply	other threads:[~2002-07-18 12:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D36B122.E9D8A9C1@uni-mb.si \
    --to=david.balazic@uni-mb.si \
    --cc=axboe@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®