AHCI
AHCI is a standardized register and memory-structure interface through which host software controls a SATA host bus adapter.
An AHCI host bus adapter can implement 1 to 32 ports, with a command-list capacity of up to 32 entries per port. These are specification limits, not the number of devices or commands available on every controller. The interface describes data movement between host memory and attached devices. [2]
The CAP.NCS field reports the implemented command-slot count minus one. CAP.SNCQ separately reports support for Native Command Queuing, which also needs a supporting device. Enabling AHCI does not make a SATA link into NVMe. [4]
Controller support for hot-plug operation must be used with suitable platform wiring, connectors and software. It does not establish that an arbitrary internal drive can safely be unplugged while powered. [4]
Port-multiplier support is optional. CAP.SPM describes that support; FIS-based switching additionally needs controller and port capability plus software enablement. [4]
Relations
- related
- Serial ATA (SATA), SATA Express, IDE / ATA, PATA, Host bus adapter (HBA), NVMe, Solid-state drive (SSD), PCIe lanes (storage), Native Command Queuing, SATA port multiplier, FIS-based switching (SATA)
Advantages
- A common host programming model reduces the need for controller-specific software interfaces. [2]
Limitations
- Port count, queue capability and link speed describe different constraints and should not be inferred from one another. [4]
Citations
- Serial ATA AHCI Specification, Rev. 1.3.1 (Intel)
- Intel AHCI 1.3.1, sections 3.1.1, 3.3.7, 3.3.16 and 9: capabilities and port-multiplier operation