List Info

Thread: SATA-II directions




SATA-II directions
user name
2007-07-22 13:36:49
Hi,

I've been hacking on a Silicon Image 3124, 3132, 3531
driver.  My
implementation relies on ata(4), like ahcisata(4).  But
this
may not be the best all-around solution.

Direct your attention now to OpenBSD's ahci(4), sili(4), and
atascsi(4).
They support NCQ and ATAPI already.  On the other hand, I'm
not sure if
this would allow for SMART and whatnot to be used.

Anyone think porting these would be a good idea?

Or, would writing a proper SATA framework be much better?

	Jonathan Kollasch
Re: SATA-II directions
country flaguser name
United States
2007-07-23 16:41:06
On Jul 22, 2007, at 11:36 AM, Jonathan A. Kollasch wrote:

> Hi,
>
> I've been hacking on a Silicon Image 3124, 3132, 3531
driver.  My
> implementation relies on ata(4), like ahcisata(4).  But
this
> may not be the best all-around solution.

Wasabi had a 3124 driver that supported NCQ, etc.  It used
ata(4).

> Direct your attention now to OpenBSD's ahci(4),
sili(4), and  
> atascsi(4).

It's wrong to bolt this stuff underneath SCSI.


>
> They support NCQ and ATAPI already.  On the other hand,
I'm not sure  
> if
> this would allow for SMART and whatnot to be used.
>
> Anyone think porting these would be a good idea?
>
> Or, would writing a proper SATA framework be much
better?

Well, ATA and SATA use the same command set.  Only the
transport is  
different.  You also have the problem of what to do with
SATA-I  
controllers that basically behave like a legacy WDC-type
controller.

>
>
> 	Jonathan Kollasch

-- thorpej


Re: SATA-II directions
user name
2007-07-23 21:31:25
On Mon, Jul 23, 2007 at 02:41:06PM -0700, Jason Thorpe
wrote:
> 
>  On Jul 22, 2007, at 11:36 AM, Jonathan A. Kollasch
wrote:
> 
> > Hi,
> >
> > I've been hacking on a Silicon Image 3124, 3132,
3531 driver.  My
> > implementation relies on ata(4), like ahcisata(4).
 But this
> > may not be the best all-around solution.
> 
>  Wasabi had a 3124 driver that supported NCQ, etc.  It
used ata(4).
> 
> > Direct your attention now to OpenBSD's ahci(4),
sili(4), and atascsi(4).
> 
>  It's wrong to bolt this stuff underneath SCSI.
> 

That was my initial hunch.

> 
> >
> > They support NCQ and ATAPI already.  On the other
hand, I'm not sure if
> > this would allow for SMART and whatnot to be
used.
> >
> > Anyone think porting these would be a good idea?
> >
> > Or, would writing a proper SATA framework be much
better?
> 
>  Well, ATA and SATA use the same command set.  Only the
transport is 
>  different.  You also have the problem of what to do
with SATA-I controllers 
>  That basically behave like a legacy WDC-type
controller.
>
> 

ATAPI should just be a matter of writing new glue code for
the
non-WDC-type controllers.

I guess SATA port multipliers could eventually be supported
by
wedging some sort of new piece into the ATA stack
somewhere.

Also, hot-swap could probably be fit in somehow too.

>
> >
> > 	Jonathan Kollasch
> 
>  -- thorpej

Thanks for the pointers.

	Jonathan Kollasch
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )