DragonFly commits List (threaded) for 2009-06
DragonFly BSD
DragonFly commits List (threaded) for 2009-06
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly-2.3.1.183.gcec85 master sys/dev/disk/ahci ahci.c ahci.h ahci_cam.c atascsi.h


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 6 Jun 2009 15:49:01 -0700 (PDT)

commit cec85a37534fc8449308734c4d53fe8a31c2772c
Author: Matthew Dillon <dillon@apollo.backplane.com>
Date:   Sat Jun 6 15:45:14 2009 -0700

    AHCI - Hotplug.  Increase timeout for BSY check, FIS adjusts for softreset, CAM
    
    * Wait up to 3 seconds for BSY to clear.  1 second was not enough when
      powering up an external 2.5" drive already connected to the port.
    
    * It is unclear how other fields in the FIS should be initialized when
      performing a soft reset.  Zero the fields instead of inheriting whatever
      junk was in the FIS from prior commands.  This seems to fix random
      errors from unplugging and plugging in a "My Book".
    
    * Adjust the CAM devq to ensure that one ata_xfer remains available for error
      processing.  Do not clean out the devq when reducing the number of tags to
      1 as we will not use NCQ in this case anyway and need the extra CCB for
      error processing.

Summary of changes:
 sys/dev/disk/ahci/ahci.c     |   64 ++++++++++++++++++++++++++++++++---------
 sys/dev/disk/ahci/ahci.h     |    3 +-
 sys/dev/disk/ahci/ahci_cam.c |   33 ++++++++++++++-------
 sys/dev/disk/ahci/atascsi.h  |    1 +
 4 files changed, 75 insertions(+), 26 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cec85a37534fc8449308734c4d53fe8a31c2772c


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]