Skip to contentSkip to conversation

Marvell PATA IDE Controller

DISCUSSION Lukas Hejtmanek 2 participants 5 messages Aug 9, 2006 – Aug 12, 2006 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello,

is there a chance to get working Marvell PATA IDE Controller?

According to lspci it has 11ab:6101 ID.

If I add this ID into ahci.c, it finds one SATA port with no drive attached.

Actually, it has one PATA connector with DVD+RW attached to it.

In Windows XP, it is recognized as generic PCI IDE device.

Signature · 1 line
Lukáš Hejtmánek
#1 lore raw

Ar Mer, 2006-08-09 am 13:36 +0200, ysgrifennodd Lukas Hejtmanek:

Quoted 4 lines

Hello,

is there a chance to get working Marvell PATA IDE Controller? According to lspci it has 11ab:6101 ID.

If Marvell docs/hw access land on my desk then yes. If not then no. Thats why we now have jmicron support 8)

Alan

#2 lore raw
Quoted 8 lines · Alan Cox

Ar Mer, 2006-08-09 am 13:36 +0200, ysgrifennodd Lukas Hejtmanek:

Quoted 4 lines

Hello,

is there a chance to get working Marvell PATA IDE Controller? According to lspci it has 11ab:6101 ID.

If Marvell docs/hw access land on my desk then yes. If not then no. Thats why we now have jmicron support 8)

And is there something I could do? At least make it working as generic PCI IDE like windows?

Signature · 1 line
Lukáš Hejtmánek
#3 lore raw

Ar Mer, 2006-08-09 am 15:42 +0200, ysgrifennodd Lukas Hejtmanek:

Quoted 2 lines

And is there something I could do? At least make it working as generic PCI IDE like windows?

You can try booting with the option all-generic-ide. Should get you minimal functionality with luck.

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#8 lore raw
Quoted 1 line · Alan Cox

ide-generic probes all IDE class devices if all-generic-ide is passed.

I managed to get Marvell 614x PATA controller to be recognized by generic driver. It works pretty well. Marvell 614x (PCI ID 6101) is present in Intel DP965LT main board and probably also in other Dx965xx boards (as the only legacy PATA interface).

Signature · 1 line
Lukáš Hejtmánek
generic.c renamed from usr/src/linux-2.6.18-rc4/drivers/ide/pci/generic.c +13 -6
@@ -180,7 +180,13 @@
 		.channels	= 2,
 		.autodma	= AUTODMA,
 		.bootable	= OFF_BOARD,
-	}
+	},{     /* 15 */
+		.name           = "Marvell-PATA",
+		.init_hwif      = init_hwif_generic,
+		.channels       = 1,
+		.autodma        = AUTODMA,
+		.bootable       = ON_BOARD,
+        }
 };
 
 /**
@@ -242,11 +248,12 @@
 	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_1,   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 12},
 	{ PCI_VENDOR_ID_TOSHIBA,PCI_DEVICE_ID_TOSHIBA_PICCOLO_2,   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 13},
 	{ PCI_VENDOR_ID_NETCELL,PCI_DEVICE_ID_REVOLUTION,          PCI_ANY_ID, PCI_ANY_ID, 0, 0, 14},
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 15},
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 16},
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 17},
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 18},
-	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 19},
+        { PCI_VENDOR_ID_MARVELL, 0x6101, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 15},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB361,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 16},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB363,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 17},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB365,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 18},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB366,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 19},
+	{ PCI_VENDOR_ID_JMICRON, PCI_DEVICE_ID_JMICRON_JMB368,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 20},
 	/* Must come last. If you add entries adjust this table appropriately and the init_one code */
 	{ PCI_ANY_ID,		PCI_ANY_ID,			   PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_STORAGE_IDE << 8, 0xFFFFFF00UL, 0},
 	{ 0, },