DragonFly- master sys/dev/disk/ahci ahci.c

Matthew Dillon dillon at crater.dragonflybsd.org
Sun Jun 7 12:40:28 PDT 2009

commit 5f8c1efd092f1039f63ce166e87fce744882a390
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sun Jun 7 12:36:35 2009 -0700

    AHCI - properly initialize ccb_xa.flags in softreset, make poll code robust
    * The softreset code did not properly initialize ccb_xa.flags, causing
      the softreset FIS's to sometimes get queued as an NCQ command instead of
      as a non-NCQ command.
    * Make ahci_poll() a bit more robust.  Properly set ccb_xa.state on
      timeout, check for unexpected completions, and check to see if the
      ccb was put on a queue (though the latter should never happen since
      active/sactive is cleared by ahci_get_err_ccb()).

Summary of changes:
 sys/dev/disk/ahci/ahci.c |   67 ++++++++++++++++++++++++++++++++++++---------
 1 files changed, 53 insertions(+), 14 deletions(-)


DragonFly BSD source repository

More information about the Commits mailing list