* [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID
@ 2026-10-27 14:12 Roman Gardzinski
2026-10-27 14:22 ` sashiko-bot
2026-10-27 15:29 ` Niklas Cassel
0 siblings, 2 replies; 3+ messages in thread
From: Roman Gardzinski @ 2026-10-27 14:12 UTC (permalink / raw)
To: dlemoal, cassel, szczepan.durawa, szymon.durawa,
romanx.gardzinski
Cc: linux-ide, linux-kernel
Add support for SATA devices in RAID mode for Nova Lake.
No functional changes.
Suggested-by: Szczepan Durawa <szczepan.durawa@intel.com>
Reviewed-by: Szymon Durawa <szymon.durawa@linux.intel.com>
Signed-off-by: Roman Gardzinski <romanx.gardzinski@linux.intel.com>
---
drivers/ata/ahci.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index 9b8c0935001c..c60e7ba24502 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -283,6 +283,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
/* Comet Lake PCH-H RAID */
PCI_VDEVICE(INTEL, 0x06d6),
.driver_data = board_ahci_pcs_quirk,
+ }, {
+ /* Nova Lake PCH-S RAID */
+ PCI_VDEVICE(INTEL, 0x6e66),
+ .driver_data = board_ahci_pcs_quirk,
}, {
/* ICH6 */
PCI_VDEVICE(INTEL, 0x2652),
--
2.53.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID
2026-10-27 14:12 [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID Roman Gardzinski
@ 2026-10-27 14:22 ` sashiko-bot
2026-10-27 15:29 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-10-27 14:22 UTC (permalink / raw)
To: Roman Gardzinski; +Cc: linux-ide, dlemoal, cassel
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] ata: ahci: Nova Lake PCH-S RAID entry uses legacy board_ahci_pcs_quirk
--
commit 2589d3b85f965fdaa155298cf5da322c956d8de2
Author: Roman Gardzinski <romanx.gardzinski@linux.intel.com>
ATA: ahci: Add Intel PCH-S RAID device ID
This commit adds the Intel Nova Lake PCH-S RAID PCI device ID (0x6e66) to
ahci_pci_tbl in drivers/ata/ahci.c.
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index 3c38ee3314ee9..f4b6235452dbd 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -274,6 +274,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
> /* Comet Lake PCH-H RAID */
> PCI_VDEVICE(INTEL, 0x06d6),
> .driver_data = board_ahci_pcs_quirk,
> + }, {
> + /* Nova Lake PCH-S RAID */
> + PCI_VDEVICE(INTEL, 0x6e66),
> + .driver_data = board_ahci_pcs_quirk,
[Severity: High]
Should this new Nova Lake PCH-S RAID entry in ahci_pci_tbl use board_ahci
instead of board_ahci_pcs_quirk?
In drivers/ata/ahci.c, enum board_ids notes that board_ahci_pcs_quirk is
only for legacy Intel platforms:
/*
* board_ahci_pcs_quirk is for legacy Intel platforms.
* Modern Intel platforms should use board_ahci instead.
* (Some modern Intel platforms might have been added with
* board_ahci_pcs_quirk, however, we cannot change them to board_ahci
* without testing that the platform actually works without the quirk.)
*/
board_ahci_pcs_quirk,
Using board_ahci_pcs_quirk sets AHCI_HFLAG_INTEL_PCS_QUIRK in
ahci_port_info[]. When the controller is probed, resumed, or reset via:
ahci_init_one() / ahci_pci_device_runtime_resume() / ahci_pci_device_resume()
-> ahci_pci_reset_controller()
-> ahci_intel_pcs_quirk()
ahci_intel_pcs_quirk() reads and writes hpriv->port_map into the legacy
6-port PCS_6 PCI configuration register (offset 0x92):
pci_read_config_word(pdev, PCS_6, &tmp16);
if ((tmp16 & hpriv->port_map) != hpriv->port_map) {
tmp16 |= hpriv->port_map;
pci_write_config_word(pdev, PCS_6, tmp16);
}
On modern Intel platforms (and PCH-S controllers where the legacy 6-port
PCS_6 layout does not apply), applying this quirk has previously caused
regressions that broke SATA drive detection, as seen in commit 7edbb6059274
and commit 9e2f46cd8747. When the same Nova Lake controller is in AHCI mode,
it matches PCI_DEVICE_CLASS(PCI_CLASS_STORAGE_SATA_AHCI, 0xffffff) and uses
board_ahci.
Also, the commit message states "No functional changes", even though adding a
new PCI device ID enables driver binding for this hardware. Could the entry
be updated to use board_ahci and the commit message adjusted accordingly?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261027141240.7850-1-romanx.gardzinski@linux.intel.com?part=1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID
2026-10-27 14:12 [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID Roman Gardzinski
2026-10-27 14:22 ` sashiko-bot
@ 2026-10-27 15:29 ` Niklas Cassel
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Cassel @ 2026-10-27 15:29 UTC (permalink / raw)
To: Roman Gardzinski
Cc: dlemoal, szczepan.durawa, szymon.durawa, linux-ide, linux-kernel
Hello Roman,
On Tue, Oct 27, 2026 at 03:12:40PM +0100, Roman Gardzinski wrote:
> Add support for SATA devices in RAID mode for Nova Lake.
> No functional changes.
>
> Suggested-by: Szczepan Durawa <szczepan.durawa@intel.com>
> Reviewed-by: Szymon Durawa <szymon.durawa@linux.intel.com>
> Signed-off-by: Roman Gardzinski <romanx.gardzinski@linux.intel.com>
> ---
> drivers/ata/ahci.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
> index 9b8c0935001c..c60e7ba24502 100644
> --- a/drivers/ata/ahci.c
> +++ b/drivers/ata/ahci.c
> @@ -283,6 +283,10 @@ static const struct pci_device_id ahci_pci_tbl[] = {
> /* Comet Lake PCH-H RAID */
> PCI_VDEVICE(INTEL, 0x06d6),
> .driver_data = board_ahci_pcs_quirk,
> + }, {
> + /* Nova Lake PCH-S RAID */
> + PCI_VDEVICE(INTEL, 0x6e66),
> + .driver_data = board_ahci_pcs_quirk,
Commit message should probably say something like:
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.
Like Sashiko also said, please also check if this entry (for RAID mode)
should use board_ahci_pcs_quirk or board_ahci.
Kind regards,
Niklas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-27 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-27 14:12 [PATCH v1] ATA: ahci: Add Intel PCH-S RAID device ID Roman Gardzinski
2026-10-27 14:22 ` sashiko-bot
2026-10-27 15:29 ` Niklas Cassel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox