From: Doug Ledford <dledford@redhat.com>
To: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: linux-scsi@vger.kernel.org
Subject: Re: Setting queue depths in the scsi mid layer, an intro
Date: Fri, 11 Oct 2002 08:49:38 -0400 [thread overview]
Message-ID: <20021011124938.GD28490@redhat.com> (raw)
In-Reply-To: <1034340422.6463.78.camel@irongate.swansea.linux.org.uk>
On Fri, Oct 11, 2002 at 01:47:02PM +0100, Alan Cox wrote:
> On Fri, 2002-10-11 at 11:39, Doug Ledford wrote:
> > <Arghhh!!! Pulling hair out>
> >
> > I wish people would decide on whether or not they want the drivers to be
> > able to control things. One week I hear everyone say "The driver should
> > be able to set feature X because only it knows what to do" and the next
> > week I get what you see above...
>
> It isnt an either/or question. I think thats the problem.
>
> Do we want drivers to be able to control things - yes
> Do we want drivers to be able to armwave generic settings - yes
And to a certain extent, both of those are true. Overall performance in
the face of odd conditions and such is pretty much driver dependant
though. Armwaving a generic setting gets you an armwaved generic error
handler at best ;-)
> > No, it's more analogous to each net driver knowing it's own transmit and
> > receive ring sizes.
>
> Believe it or not, some of them don't,
Hmmm...I think we are talking different terms. It would seem a bit
difficult for a card driver to program the DMA engine on the card
(assuming it has one, if it doesn't I don't really care about how it works
anyway) without knowing the ring of receive buffers it has (like the ring
on an e100 card where they set up 32 or so commands as empty receive buffs
and tell the card where they exist and then wait for the card to interrupt
them and say "buff X has been filled"). That's pretty analogous to the
hardware detail level required to fully handle QUEUE_FULL messages
properly. Half-assed handling of QUEUE_FULL messages is easy and can be
done with generic armwaving settings ;-) (and in fact it will be, expect
those changes when I've had some sleep and get back to work on it, the
aic7xxx_old patch I just sent to Linus disables the intelligent QF
handling in the driver so I can test mid layer handling instead).
> > Now, this is all really pointless though unless the driver is *also*
> > updated to honor the tag type the block layer requests, which is another
> > subject all together and hasn't been brought up yet ;-)
>
> Done that bit, and for things like i2o_scsi I'm happy to do the full job
> where I can, but for a lot of the older dumber devices really all they
> want is "generic_do_it_conservatively"
That's not going to be a problem. Doing things optimally and doing things
well enough are both going to be options like they almost always have
been. The goal is that the optimal version will be a good bit easier and
be able to be done with smaller drivers in the future though.
--
Doug Ledford <dledford@redhat.com> 919-754-3700 x44233
Red Hat, Inc.
1801 Varsity Dr.
Raleigh, NC 27606
next prev parent reply other threads:[~2002-10-11 12:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 2:46 Setting queue depths in the scsi mid layer, an intro Doug Ledford
2002-10-11 10:34 ` Alan Cox
2002-10-11 10:39 ` Doug Ledford
2002-10-11 12:47 ` Alan Cox
2002-10-11 12:49 ` Doug Ledford [this message]
2002-10-11 13:22 ` Alan Cox
2002-10-15 1:15 ` Patrick Mansfield
2002-10-15 1:28 ` Doug Ledford
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=20021011124938.GD28490@redhat.com \
--to=dledford@redhat.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=linux-scsi@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;
as well as URLs for NNTP newsgroup(s).