From: Christoph Hellwig <hch@infradead.org>
To: Brian King <brking@us.ibm.com>
Cc: linux-scsi@vger.kernel.org
Subject: Re: [RFC] IBM Power RAID driver (ipr)
Date: Tue, 20 Jan 2004 18:01:51 +0000 [thread overview]
Message-ID: <20040120180151.A18616@infradead.org> (raw)
In-Reply-To: <400D5A28.1000301@us.ibm.com>; from brking@us.ibm.com on Tue, Jan 20, 2004 at 10:41:12AM -0600
On Tue, Jan 20, 2004 at 10:41:12AM -0600, Brian King wrote:
> > Please do. Also what about making this and the above one conditional on
> > some debugging option?
>
> How about a kernel config option for this? I don't want to make it too
> difficult for people to enable it as it is exceedingly valuable for
> failure analysis.
Yes, that's what I meant.
> > Given all the mess these invisble devices create I think they shouldn't
> > be invisble but rather exported as a second pseudo-channel on the host.
>
> Ok. That would solve a lot of problems. I will report these devices in
> as scsi disk devices. They will respond like normal SCSI disks, except
> when issued media commands (read/write) it will fail with data protect
> (07) sense data.
Now reading this again it might be better to use the "fake" as in not
registered with the device model devices I mentioned below for this.
> Yes. Should be able to. By getting rid of all this code, one problem we
> will need to solve is the following:
>
> 1. Driver is up and running with a disk array.
> 2. Adapter gets reset for some reason (could be due to an adapter error)
> 3. Disk array device now needs a START_UNIT command.
>
> The current mid-layer/sd will not handle this. Would you accept a patch
> to add this function?
I'm not against this, but I wonder how such a patch would look like
> Ok, but I will still need that interface to send commands directed to
> the adapter.
commands as in scsi commands or as in internal commands?
> >>Build a command in DMA'able host memory (struct ipr_ioarcb), write the
> >>PCI address to a register on the adapter, the adapter DMAs down the
> >>control block, executes the command, writes the
> >>ipr_ioarcb.host_response_handle in the command control block to the host
> >>request/response queue in host memory, and signals an interrupt.
> >>
> >>Does that help at all?
> >
> > What's the relation of all these command lists to that?
>
> Sorry, I guess I'm missing something here. Are you saying a LLD
> shouldn't need to maintain of queue of its command blocks (like my
> pending_q and free_q)?
Unless you allocate the blocks in ->queuecommand (like most modern drivers
do) you'll need some form of freelist of course. What you shouldn't need iß
the pendig_q as the midlayer already keeps track of pending commands.
This of course only works if you actually do send all commands via the
midlayer (which you should).
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2004-01-20 18:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-16 21:59 [RFC] IBM Power RAID driver (ipr) Brian King
2004-01-16 23:01 ` Muli Ben-Yehuda
2004-01-16 23:46 ` Brian King
2004-01-18 14:10 ` Anton Blanchard
2004-01-19 16:16 ` Brian King
2004-01-19 18:34 ` Christoph Hellwig
2004-01-19 19:33 ` Mike Anderson
2004-01-19 19:35 ` Christoph Hellwig
2004-01-20 5:57 ` Douglas Gilbert
2004-01-20 13:21 ` Christoph Hellwig
2004-01-19 20:30 ` Brian King
2004-01-20 13:38 ` Christoph Hellwig
2004-01-20 16:41 ` Brian King
2004-01-20 17:18 ` Mike Anderson
2004-01-20 18:01 ` Christoph Hellwig [this message]
2004-01-20 19:13 ` Brian King
2004-01-20 19:28 ` Christoph Hellwig
2004-01-20 20:13 ` Brian King
2004-01-21 20:49 ` Brian King
2004-01-22 14:02 ` Christoph Hellwig
2004-01-22 16:39 ` Patrick Mansfield
2004-01-22 16:56 ` Patrick Mansfield
2004-01-22 17:09 ` Brian King
2004-01-22 17:27 ` Patrick Mansfield
2004-01-22 17:33 ` Brian King
2004-01-20 20:35 ` Patrick Mansfield
2004-01-20 22:37 ` Brian King
2004-01-20 22:39 ` Christoph Hellwig
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=20040120180151.A18616@infradead.org \
--to=hch@infradead.org \
--cc=brking@us.ibm.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.