Linux PARISC architecture development
 help / color / mirror / Atom feed
From: Grant Grundler <grundler@parisc-linux.org>
To: Jochen Friedrich <jochen@scram.de>
Cc: parisc <parisc-linux@lists.parisc-linux.org>
Subject: Re: [parisc-linux] 53c700.c problems with tags?
Date: Thu, 2 Sep 2004 09:45:22 -0600	[thread overview]
Message-ID: <20040902154522.GA3060@colo.lackof.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0409021240540.2373@localhost>

On Thu, Sep 02, 2004 at 12:48:01PM +0200, Jochen Friedrich wrote:
> Thanks. However, my post was not a question how to get rid of the problem
> (my servers are running fine) but just a hint that there might be a bug in
> the tag handling code of 53c700.c.

ah ok. I didn't realize you were trying share another clue as to
what the problem might be. We know there were (are?) problems
with 53c700 tag handling.

>  I didn't really look at the code hard enough, but to me it looks like

Well, I haven't looked at that driver recently...

>  if the tag queue is full, the most likely
> next free tag is searched. If it isn't free, but another tag is, the
> message is printed

The tag number is no guarantee of ordering when using unordered
queue tags (LIFO and FIFO are the other two types of tags).
The driver needs to use some sort of time stamp to determine
tag starvation and not based on which tag numbers happen to be in use.

The message shouldn't be printed unless a tag doesn't complete for a while.
e.g. 3 seconds or more after other tagged IOs (which started later) have
completed.

> and some badness happens and the kernel halts.

My guess is the "tag starvation" message implies assumptions
about how unordered tags work are wrong. Someone needs to review
the allocation/deallocation of IO requests to make sure the driver
don't assume the next/prev tag is not used.

> Setting the queue depth to 1 always fixes the problem, because the drive
> has no chance to reorder the tags.
> 
> Setting the queue depth to something as big as 128 also fixes the problem,
> because the queue never gets that full.

ok - thanks for the addional info.

grant
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

      reply	other threads:[~2004-09-02 15:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-31 10:39 [parisc-linux] 53c700.c problems with tags? Jochen Friedrich
2004-09-02  3:18 ` Grant Grundler
2004-09-02 10:48   ` Jochen Friedrich
2004-09-02 15:45     ` Grant Grundler [this message]

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=20040902154522.GA3060@colo.lackof.org \
    --to=grundler@parisc-linux.org \
    --cc=jochen@scram.de \
    --cc=parisc-linux@lists.parisc-linux.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