CVSROOT: /cvs Module name: src Changes by: patr...@cvs.openbsd.org 2016/10/02 12:53:28
Modified files: sys/dev/ic : ahci.c Log message: Given that ahci_port_alloc() grabs one CCB for use during NCQ error recovery from the CCB pool sized based on the NCS capability, i. e. number of command slots reported by the controller, it is necessary to pretend at least 2 slots in sc->sc_ncmds for devices without NCQ support. That way, also at least 1 available slot is made available for atascsi(4). Otherwise, controllers having only a single command slot will trigger "no free xfers on a new port" in atascsi(4). Note that pretending 2 command slots is also fine with the abuse of the NCQ error recovery CCB in ahci_port_softreset(). >From Marius Strobl tested by awolk (amd64), bluhm (amd64, i386), myself (amd64, armv7) ok jmatthew@