ATA APM and NCQ support in FreeBSD atacontrol

Bruce Cran bruce at cran.org.uk
Wed May 14 06:37:54 UTC 2008


Ian Smith wrote:
> I take Jonathan's point that it would be nice to have this functionality
> in atacontrol, though perhaps the BUGS section in ataidle(8) precludes
> merging that?  cc'ing Bruce Cran in case he wants to add something ..

ataidle is at the moment quite dumb about sending commands: it doesn't 
check that the drive actually supports APM/AAM before sending the 
commands, and that's an easy check to do.  If this was being added to 
atacontrol I think I'd want to do quite a bit of work first to make it 
more robust.  However I don't think the code from ataidle could ever 
just be merged in to atacontrol because the code styles are quite 
different; however since the interface to the ATA driver is quite 
straightforward it should be trivial to re-implement or copy the bits 
needed.

-- 
Bruce


More information about the freebsd-stable mailing list