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

看板DFBSD_commit作者時間16年前 (2009/06/07 07:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
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
文章代碼(AID): #1AAlKt00 (DFBSD_commit)