All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ata: pata_atiixp allow maximum UDMA speed
@ 2026-10-13  4:30 Ioannis Barkas
  2026-10-13  7:40 ` Niklas Cassel
  0 siblings, 1 reply; 2+ messages in thread
From: Ioannis Barkas @ 2026-10-13  4:30 UTC (permalink / raw)
  To: linux-ide; +Cc: Ioannis Barkas

Enable UDMA 6 for compatible IDE hosts, tested on SB600 & SB700
using ATA133 HDDs & SSDs. SSDs can exceed now 100MB/s

Signed-off-by: Ioannis Barkas jnyb.de@gmail.com
Signed-off-by: Nick Barkas nickbgrk@gmail.com
---
 drivers/ata/pata_atiixp.c | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/drivers/ata/pata_atiixp.c b/drivers/ata/pata_atiixp.c
index 4c612f9543..74ef9195bd 100644
--- a/drivers/ata/pata_atiixp.c
+++ b/drivers/ata/pata_atiixp.c
@@ -279,8 +279,26 @@ static int atiixp_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
 		.udma_mask = ATA_UDMA5,
 		.port_ops = &atiixp_port_ops
 	};
+	static const struct ata_port_info info_ata133 = {
+		.flags = ATA_FLAG_SLAVE_POSS,
+		.pio_mask = ATA_PIO4,
+		.mwdma_mask = ATA_MWDMA12_ONLY,
+		.udma_mask = ATA_UDMA6,
+		.port_ops = &atiixp_port_ops
+	};
 	const struct ata_port_info *ppi[] = { &info, &info };
 
+	/* SB300 and newer: UDMA6 */
+	switch (pdev->device) {
+	case PCI_DEVICE_ID_ATI_IXP300_IDE:
+	case PCI_DEVICE_ID_ATI_IXP400_IDE:
+	case PCI_DEVICE_ID_ATI_IXP600_IDE:
+	case PCI_DEVICE_ID_ATI_IXP700_IDE:
+	case PCI_DEVICE_ID_AMD_HUDSON2_IDE:
+		ppi[0] = ppi[1] = &info_ata133;
+		break;
+	}
+
 	/* SB600 doesn't have secondary port wired */
 	if (pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE)
 		ppi[1] = &ata_dummy_port_info;
@@ -314,7 +332,7 @@ static struct pci_driver atiixp_pci_driver = {
 module_pci_driver(atiixp_pci_driver);
 
 MODULE_AUTHOR("Alan Cox");
-MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400");
+MODULE_DESCRIPTION("low-level driver for ATI IXP200/300/400, AMD SB600/700 series and Hudson-2");
 MODULE_LICENSE("GPL");
 MODULE_DEVICE_TABLE(pci, atiixp);
 MODULE_VERSION(DRV_VERSION);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-10-13  7:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-13  4:30 [PATCH] ata: pata_atiixp allow maximum UDMA speed Ioannis Barkas
2026-10-13  7:40 ` Niklas Cassel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.