public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Christoph Hellwig <hch@infradead.org>,
	"Salyzyn, Mark" <mark_salyzyn@adaptec.com>,
	"Darrick J. Wong" <djwong@us.ibm.com>,
	Chris McDermott <lcm@us.ibm.com>,
	Luvella McFadden <luvella@us.ibm.com>,
	AJ Johnson <blujuice@us.ibm.com>,
	Kevin Stansell <kstansel@us.ibm.com>,
	linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
	Mauelshagen@redhat.com
Subject: Re: [PATCH] aic79xx should be able to ignore HostRAID enabled adapters
Date: Thu, 1 Dec 2005 12:56:34 -0500	[thread overview]
Message-ID: <20051201175634.GA9283@havoc.gtf.org> (raw)
In-Reply-To: <20051201174411.GA13002@infradead.org>

On Thu, Dec 01, 2005 at 05:44:12PM +0000, Christoph Hellwig wrote:
> On Thu, Dec 01, 2005 at 08:44:15AM -0500, Salyzyn, Mark wrote:
> > The HostRAID driver has a specialized (ok, yes, also proprietary) CHIM
> > and sequencer where attention can be focused on techniques of
> > performance improvement and OS agnostics. In addition, the RAID code in
> > that driver understands the hardware, CHIM & sequencer and takes
> > advantage of features that just can not be performed by an abstracted dm
> > or an LLD. RAID1 is handled under some conditions, for instance, with
> > one DMA operation over the PCI bus rather than two duplicated for each
> > target, greatly increasing the performance.
> 
> If you contributed that sequencer code and sent me a card I'm pretty sure
> I'd love into adding support for this to a special DM module.  In fact we'd
> need somthing similar for Certain SATA boards aswell.
> 
> OTOH the raid flag would be useless aswell there, because we'd of course
> support this on identical cards without the raid bios aswell :)

I'd love to see a hardware-aware DM RAID module, since I want to do the
same thing for sata_sx4 (Promise SX4).

SX4 has four ATA engines, an on-card ECC-capable DIMM, and an on-card
XOR engine.  The OS driver has complete control over these facilities.
Unfortunately, driving the card in "dumb mode" means that performance
takes a major hit, since each transaction looks like:

	submit DMA memcpy to HDMA engine
	get HDMA interrupt
		# now, the data is on the card
	submit ATA write command
	get ATA interrupt

All data must be copied to/from the DIMM, before the ATA engine can do
anything.  Further, there is only one HDMA engine, but 4 ATA engines.

Ideally, RAID1 would copy the data to the card ONCE, then start 2 ATA
engines.  Ideally, RAID5 would copy the data to the card ONCE, XOR it,
then start the ATA engines.  And the rest of the DIMM should be used as
write-through cache.

I'm sure DM can do that, but I haven't researched how.

I'll supply a card (and engineering help, but no docs, alas) to anyone
interested in trying out this stuff.

	Jeff




  reply	other threads:[~2005-12-01 17:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-01 13:44 [PATCH] aic79xx should be able to ignore HostRAID enabled adapters Salyzyn, Mark
2005-12-01 14:12 ` Arjan van de Ven
2005-12-01 14:47 ` Heinz Mauelshagen
2005-12-03 11:22   ` Matthias Andree
2005-12-03 16:19     ` Jeff Garzik
2005-12-03 16:39       ` Matthias Andree
2005-12-01 17:44 ` Christoph Hellwig
2005-12-01 17:56   ` Jeff Garzik [this message]
2005-12-01 17:49 ` Jeff Garzik
2005-12-02 19:06 ` Alan Cox
  -- strict thread matches above, loose matches on Subject: below --
2005-12-01 18:46 Salyzyn, Mark
2005-12-01 19:19 ` Jeff Garzik
2005-12-05 21:06   ` Darrick J. Wong
2005-12-05 21:25     ` Jeff Garzik
2005-12-06  9:14     ` Heinz Mauelshagen
2005-12-01  5:57 Darrick J. Wong
2005-12-01  6:41 ` Jeff Garzik
2005-12-01  8:22   ` Darrick J. Wong
2005-12-01  8:08 ` Arjan van de Ven
2005-12-01 11:26 ` 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=20051201175634.GA9283@havoc.gtf.org \
    --to=jgarzik@pobox.com \
    --cc=Mauelshagen@redhat.com \
    --cc=blujuice@us.ibm.com \
    --cc=djwong@us.ibm.com \
    --cc=hch@infradead.org \
    --cc=kstansel@us.ibm.com \
    --cc=lcm@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=luvella@us.ibm.com \
    --cc=mark_salyzyn@adaptec.com \
    /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