git: AHCI/SILI - Send dummy SETXFER mode even though it is SATA

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Nov 3 10:06:42 PST 2009


commit 69b3741eda7a43961baaf659f4c99e8ad054a899
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Nov 3 10:00:14 2009 -0800

    AHCI/SILI - Send dummy SETXFER mode even though it is SATA
    
    * If the identify structure contains a non-zero/non-FFFF dmamode field
      we send a dummy SETXFER mode command to the device.
    
    * Most SATA DISK devices set this field to 0 or FFFF and in this case no
      SETXFER mode command is sent.  SETXFER is non-applicable to SATA in
      general.
    
      Most ATAPI devices still initialize the dmamode field and some ATAPI
      devices still require SETXFER to be sent even though they are native SATA.
    
      SATA->PATA converters may require a SETXFER to be passed through before
      the PATA devices will operate properly.  In this case the dmamode field
      will likely be initialized.

Summary of changes:
 sys/dev/disk/ahci/ahci_cam.c |   67 ++++++++++++++++++++++++++++++++++++++++++
 sys/dev/disk/ahci/atascsi.h  |    1 +
 sys/dev/disk/sili/atascsi.h  |    1 +
 sys/dev/disk/sili/sili_cam.c |   67 ++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 136 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/69b3741eda7a43961baaf659f4c99e8ad054a899


-- 
DragonFly BSD source repository





More information about the Commits mailing list