Date: Fri, 29 Jul 2011 20:35:23 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/dev/ahci ahci.c ahci.h Message-ID: <201107292035.p6TKZflp091630@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
mav 2011-07-29 20:35:23 UTC FreeBSD src repository Modified files: sys/dev/ahci ahci.c ahci.h Log: SVN rev 224498 on 2011-07-29 20:35:23Z by mav In some cases, at least on Marvell 88SE912x controllers, Current Command Slot field of the PxCMD register may point to an empty command slot. That breaks command timeout detection logic, making impossible to find what command actually caused timeout, and leading to infinite wait. Workaround that by checking whether pointed command slot is really used and can timeout in its time. And if not, fallback to the dumb algorithm used with FBS -- let all commands to time out and then fail all of them. Approved by: re (kib) MFC after: 1 week Revision Changes Path 1.72 +14 -6 src/sys/dev/ahci/ahci.c 1.19 +1 -0 src/sys/dev/ahci/ahci.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107292035.p6TKZflp091630>