Skip to contentSkip to conversation

ATA: ahci: Add Intel PCH-S RAID device ID

PATCH Applied Roman Gardzinski 2 participants 3 messages Oct 29 – Nov 2 libata

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ATA: ahci: Add Intel PCH-S RAID device ID

When the Intel Nova Lake SATA controller is configured in RAID mode (rather than AHCI), the generic entry in ahci_pci_tbl which matches any device with the PCI class code for AHCI, is not sufficient, since the SATA controller in RAID mode uses a different PCI class code.

Cc Damien Le Moal <[email protected]>
Cc Niklas Cassel <[email protected]>

---
v1 -> v2:
- update RAID entry in ahci_pci_tbl to board_ahci from board_ahci_pcs_quirk
- update commit description

 drivers/ata/ahci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/ata/ahci.c +4 -0
index 9b8c0935001c..cee67c64fbea 100644
@@ -280,6 +280,10 @@ static const struct ata_port_info ahci_port_info[] = {
 static const struct pci_device_id ahci_pci_tbl[] = {
 	/* Intel */
 	{
+		/* Nova Lake PCH-S RAID */
+		PCI_VDEVICE(INTEL, 0x6e66),
+		.driver_data = board_ahci,
+	}, {
 		/* Comet Lake PCH-H RAID */
 		PCI_VDEVICE(INTEL, 0x06d6),
 		.driver_data = board_ahci_pcs_quirk,
Signature · 1 line
2.53.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 37 lines · Roman Gardzinski

When the Intel Nova Lake SATA controller is configured in RAID mode (rather than AHCI), the generic entry in ahci_pci_tbl which matches any device with the PCI class code for AHCI, is not sufficient, since the SATA controller in RAID mode uses a different PCI class code.

Cc Damien Le Moal <[email protected]>
Cc Niklas Cassel <[email protected]>

---
v1 -> v2:
- update RAID entry in ahci_pci_tbl to board_ahci from board_ahci_pcs_quirk
- update commit description

 drivers/ata/ahci.c | 4 ++++
 1 file changed, 4 insertions(+)
drivers/ata/ahci.c +4 -0
index 9b8c0935001c..cee67c64fbea 100644
@@ -280,6 +280,10 @@ static const struct ata_port_info ahci_port_info[] = {
 static const struct pci_device_id ahci_pci_tbl[] = {
 	/* Intel */
 	{
+		/* Nova Lake PCH-S RAID */
+		PCI_VDEVICE(INTEL, 0x6e66),
+		.driver_data = board_ahci,
+	}, {
 		/* Comet Lake PCH-H RAID */
 		PCI_VDEVICE(INTEL, 0x06d6),
 		.driver_data = board_ahci_pcs_quirk,
Signature · 1 line
2.53.0

Looks good to me:

maintainer Applied
#2 lore raw
In reply to Roman Gardzinski
Quoted 9 lines · Roman Gardzinski

When the Intel Nova Lake SATA controller is configured in RAID mode (rather than AHCI), the generic entry in ahci_pci_tbl which matches any device with the PCI class code for AHCI, is not sufficient, since the SATA controller in RAID mode uses a different PCI class code.

Cc Damien Le Moal <[email protected]>
Cc Niklas Cassel <[email protected]>

[...]

Changed the prefix from 'ATA:' to 'ata:'

Applied to libata/linux.git (for-7.5), thanks!

[1/1] ata: ahci: Add Intel PCH-S RAID device ID

      https://git.kernel.org/libata/linux/c/c49a14fa

Kind regards,
Niklas