Linux ATA/IDE development
 help / color / mirror / Atom feed
From: Ioannis Barkas <jnyb.de@gmail.com>
To: linux-ide@vger.kernel.org
Cc: Ioannis Barkas <jnyb.de@gmail.com>
Subject: [PATCH] ata: pata_atiixp allow maximum UDMA speed
Date: Tue, 13 Oct 2026 07:30:16 +0300	[thread overview]
Message-ID: <20261013043016.77075-1-jnyb.de@gmail.com> (raw)

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


             reply	other threads:[~2026-10-13  4:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13  4:30 Ioannis Barkas [this message]
2026-10-13  7:40 ` [PATCH] ata: pata_atiixp allow maximum UDMA speed Niklas Cassel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261013043016.77075-1-jnyb.de@gmail.com \
    --to=jnyb.de@gmail.com \
    --cc=linux-ide@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox