freebsd-dev/sys/dev/ahci
Alexander Motin 2d33cc7688 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
2011-07-29 20:35:23 +00:00
..
ahci.c In some cases, at least on Marvell 88SE912x controllers, Current Command 2011-07-29 20:35:23 +00:00
ahci.h In some cases, at least on Marvell 88SE912x controllers, Current Command 2011-07-29 20:35:23 +00:00