]> git.baikalelectronics.ru Git - kernel.git/commit
ahci: Add support for Cavium's ThunderX host controller
authorRobert Richter <rrichter@cavium.com>
Fri, 5 Jun 2015 17:49:26 +0000 (19:49 +0200)
committerTejun Heo <tj@kernel.org>
Tue, 16 Jun 2015 20:12:14 +0000 (16:12 -0400)
commit36a88c7593a8197ca3e135f215be4ff51e072bea
tree494118f03defc72ac408613bfc13ddefd6463605
parent42d3318fd21c7c23498fee57257879cd78f04d2c
ahci: Add support for Cavium's ThunderX host controller

This patch adds support for Cavium's ThunderX host controller. The
controller resides on the SoC and is a AHCI compatible SATA controller
with one port, compliant with Serial ATA 3.1 and AHCI Revision 1.31.
There can exists multiple SATA controllers on the SoC.

The controller depends on MSI-X support since the PCI ECAM controller
on the SoC does not implement MSI nor lagacy intx interrupt support.
Thus, during device initialization, if MSI fails MSI-X will be used to
enable the device's interrupts.

The controller uses non-standard BAR0 for its register range. The
already existing device lookup (vendor and device id) that is already
implemented for other host controllers is used to change the PCI BAR.

Signed-off-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c