* The SX4 challenge
@ 2008-01-17 0:55 Jeff Garzik
2008-01-17 1:00 ` Mark Lord
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jeff Garzik @ 2008-01-17 0:55 UTC (permalink / raw)
To: Linux IDE mailing list; +Cc: LKML, Linux RAID list, Dan Williams
Promise just gave permission to post the docs for their PDC20621 (i.e.
SX4) hardware:
http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-1.2.pdf.bz2
joining the existing PDC20621 DIMM and PLL docs:
http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-dimm-1.6.pdf.bz2
http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-pll-ata-timing-1.2.pdf.bz2
So, the SX4 is now open. Yay :) I am hoping to talk Mikael into
becoming the sata_sx4 maintainer, and finally integrating my 'new-eh'
conversion in libata-dev.git.
But now is a good time to remind people how lame the sata_sx4 driver
software really is -- and I should know, I wrote it.
The SX4 hardware, simplified, is three pieces: XOR engine (for raid5),
host<->board memcpy engine, and several ATA engines (and some helpful
transaction sequencing features). Data for each WRITE command is first
copied to the board RAM, then the ATA engines DMA to/from the board RAM.
Data for each READ command is copied to board RAM via the ATA engines,
then DMA'd across PCI to your host memory.
Therefore, while it is not hardware RAID, the SX4 provides all the
pieces necessary to offload RAID1 and RAID5, and handle other RAID
levels optimally. RAID1 and 5 copies can be offloaded (provided all
copies go to SX4-attached devices of course). RAID5 XOR gen and
checking can be offloaded, allowing the OS to see a single request,
while the hardware processes a sequence of low-level requests sent in a
batch.
This hardware presents an interesting challenge: it does not really fit
into software RAID (i.e. no RAID) /or/ hardware RAID categories. The
sata_sx4 driver presents the no-RAID configuration, while is terribly
inefficient:
WRITE:
submit host DMA (copy to board)
host DMA completion via interrupt
submit ATA command
ATA command completion via interrupt
READ:
submit ATA command
ATA command completion via interrupt
submit host DMA (copy from board)
host DMA completion via interrupt
Thus, the "SX4 challenge" is a challenge to developers to figure out the
most optimal configuration for this hardware, given the existing MD and
DM work going on.
Now, it must be noted that the SX4 is not current-gen technology. Most
vendors have moved towards an "IOP" model, where the hw vendor puts most
of their hard work into an ARM/MIPS firmware, running on an embedded
chip specially tuned for storage purposes. (ref "hptiop" and "stex"
drivers, very very small SCSI drivers)
I know Dan Williams @ Intel is working on very similar issues on the IOP
-- async memcpy, XOR offload, etc. -- and I am hoping that, due to that
current work, some of the good ideas can be reused with the SX4.
Anyway... it's open, it's interesting, even if it's not current-gen
tech anymore. You can probably find them on Ebay or in an
out-of-the-way computer shop somewhere.
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The SX4 challenge
2008-01-17 0:55 The SX4 challenge Jeff Garzik
@ 2008-01-17 1:00 ` Mark Lord
2008-01-17 15:42 ` SX8 docs (was: The SX4 challenge) James Andrewartha
2008-01-20 15:23 ` The SX4 challenge Mikael Pettersson
2 siblings, 0 replies; 4+ messages in thread
From: Mark Lord @ 2008-01-17 1:00 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux IDE mailing list, LKML, Linux RAID list, Dan Williams
Jeff Garzik wrote:
..
> Thus, the "SX4 challenge" is a challenge to developers to figure out the
> most optimal configuration for this hardware, given the existing MD and
> DM work going on.
..
This sort of RAID optimization hardware is not unique to the SX4,
so hopefully we can work out a way to take advantage of similar/different
RAID throughput features of other chipsets too (eventually).
This could be a good topic for discussion/beer in San Jose next month..
Cheers
^ permalink raw reply [flat|nested] 4+ messages in thread
* SX8 docs (was: The SX4 challenge)
2008-01-17 0:55 The SX4 challenge Jeff Garzik
2008-01-17 1:00 ` Mark Lord
@ 2008-01-17 15:42 ` James Andrewartha
2008-01-20 15:23 ` The SX4 challenge Mikael Pettersson
2 siblings, 0 replies; 4+ messages in thread
From: James Andrewartha @ 2008-01-17 15:42 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux IDE mailing list, LKML, Linux RAID list, Dan Williams
On Wed, 2008-01-16 at 19:55 -0500, Jeff Garzik wrote:
> Promise just gave permission to post the docs for their PDC20621 (i.e.
> SX4) hardware:
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-1.2.pdf.bz2
>
> joining the existing PDC20621 DIMM and PLL docs:
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-dimm-1.6.pdf.bz2
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-pll-ata-timing-1.2.pdf.bz2
>
>
> So, the SX4 is now open. Yay :) I am hoping to talk Mikael into
> becoming the sata_sx4 maintainer, and finally integrating my 'new-eh'
> conversion in libata-dev.git.
>
> But now is a good time to remind people how lame the sata_sx4 driver
> software really is -- and I should know, I wrote it.
Hi Jeff,
What are the chances of the SX8 docs being opened? The vendor GPL driver
has bitrotted and the kernel driver offers poor performance or data
corruption. IIRC it's not part of libata but its own block device,
although you were considering porting it to get ATAPI support?
Thanks,
James Andrewartha
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: The SX4 challenge
2008-01-17 0:55 The SX4 challenge Jeff Garzik
2008-01-17 1:00 ` Mark Lord
2008-01-17 15:42 ` SX8 docs (was: The SX4 challenge) James Andrewartha
@ 2008-01-20 15:23 ` Mikael Pettersson
2 siblings, 0 replies; 4+ messages in thread
From: Mikael Pettersson @ 2008-01-20 15:23 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Linux IDE mailing list, LKML, Linux RAID list, Dan Williams
Jeff Garzik writes:
>
> Promise just gave permission to post the docs for their PDC20621 (i.e.
> SX4) hardware:
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-1.2.pdf.bz2
>
> joining the existing PDC20621 DIMM and PLL docs:
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-dimm-1.6.pdf.bz2
> http://gkernel.sourceforge.net/specs/promise/pdc20621-pguide-pll-ata-timing-1.2.pdf.bz2
>
>
> So, the SX4 is now open. Yay :) I am hoping to talk Mikael into
> becoming the sata_sx4 maintainer, and finally integrating my 'new-eh'
> conversion in libata-dev.git.
The best solution would be if some storage driver person would
take on the SX4 challenge and work towards integrating the SX4
into Linux' RAID framework.
If no-one steps forward I'll take over Jeff's SX4 card and just
maintain sata_sx4 as a plain non-RAID driver. Unfortunately I
don't have the time needed to turn it into a decent RAID or
RAID-offload driver myself.
/Mikael
>
> But now is a good time to remind people how lame the sata_sx4 driver
> software really is -- and I should know, I wrote it.
>
> The SX4 hardware, simplified, is three pieces: XOR engine (for raid5),
> host<->board memcpy engine, and several ATA engines (and some helpful
> transaction sequencing features). Data for each WRITE command is first
> copied to the board RAM, then the ATA engines DMA to/from the board RAM.
> Data for each READ command is copied to board RAM via the ATA engines,
> then DMA'd across PCI to your host memory.
>
> Therefore, while it is not hardware RAID, the SX4 provides all the
> pieces necessary to offload RAID1 and RAID5, and handle other RAID
> levels optimally. RAID1 and 5 copies can be offloaded (provided all
> copies go to SX4-attached devices of course). RAID5 XOR gen and
> checking can be offloaded, allowing the OS to see a single request,
> while the hardware processes a sequence of low-level requests sent in a
> batch.
>
> This hardware presents an interesting challenge: it does not really fit
> into software RAID (i.e. no RAID) /or/ hardware RAID categories. The
> sata_sx4 driver presents the no-RAID configuration, while is terribly
> inefficient:
>
> WRITE:
> submit host DMA (copy to board)
> host DMA completion via interrupt
> submit ATA command
> ATA command completion via interrupt
> READ:
> submit ATA command
> ATA command completion via interrupt
> submit host DMA (copy from board)
> host DMA completion via interrupt
>
> Thus, the "SX4 challenge" is a challenge to developers to figure out the
> most optimal configuration for this hardware, given the existing MD and
> DM work going on.
>
> Now, it must be noted that the SX4 is not current-gen technology. Most
> vendors have moved towards an "IOP" model, where the hw vendor puts most
> of their hard work into an ARM/MIPS firmware, running on an embedded
> chip specially tuned for storage purposes. (ref "hptiop" and "stex"
> drivers, very very small SCSI drivers)
>
> I know Dan Williams @ Intel is working on very similar issues on the IOP
> -- async memcpy, XOR offload, etc. -- and I am hoping that, due to that
> current work, some of the good ideas can be reused with the SX4.
>
> Anyway... it's open, it's interesting, even if it's not current-gen
> tech anymore. You can probably find them on Ebay or in an
> out-of-the-way computer shop somewhere.
>
> Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-20 15:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 0:55 The SX4 challenge Jeff Garzik
2008-01-17 1:00 ` Mark Lord
2008-01-17 15:42 ` SX8 docs (was: The SX4 challenge) James Andrewartha
2008-01-20 15:23 ` The SX4 challenge Mikael Pettersson
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).