Skip to contentSkip to conversation

ata: pata_oldpiix: Add missing device ID for INTEL_82371AB

PATCH NAK Corentin Labbe 3 participants 7 messages Dec 10, 2018 – Mar 22, 2019 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: pata_oldpiix: Add missing device ID for INTEL_82371AB

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver. But with the old ide/piix, it was probed.

This is due to this PCI devid was not migrated from the old ide/piix.

---
 drivers/ata/pata_oldpiix.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ata/pata_oldpiix.c +1 -0
index b9bf78b7d48d..63a964062865 100644
@@ -249,6 +249,7 @@ static int oldpiix_init_one (struct pci_dev *pdev, const struct pci_device_id *e
 
 static const struct pci_device_id oldpiix_pci_tbl[] = {
 	{ PCI_VDEVICE(INTEL, 0x1230), },
+	{ PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_82371AB), },
 
 	{ }	/* terminate list */
 };
Signature · 1 line
2.19.2
#1 lore raw

Hello!

Quoted 2 lines · Corentin Labbe

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver.

Correctly, it should probe with ata_piix,

Quoted 2 lines

But with the old ide/piix, it was probed.>
This is due to this PCI devid was not migrated from the old ide/piix.

It wasn't on purpose -- the IDE driver supports the original PIIX
incorrectly.

Quoted 1 line

NAK.

MBR, Sergei

#2 lore raw
Quoted 7 lines · Sergei Shtylyov

Hello!

Quoted 2 lines · Corentin Labbe

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver.

Quoted 8 lines

Correctly, it should probe with ata_piix,

Quoted 2 lines

But with the old ide/piix, it was probed.>
This is due to this PCI devid was not migrated from the old ide/piix.

It wasn't on purpose -- the IDE driver supports the original PIIX
incorrectly.

Hello

What about removing this old driver totally if it dont work ?

Regards

#3 lore raw
Quoted 8 lines · LABBE Corentin
Quoted 8 lines
Quoted 2 lines

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver.

Correctly, it should probe with ata_piix,

Quoted 2 lines

But with the old ide/piix, it was probed.>
This is due to this PCI devid was not migrated from the old ide/piix.

Quoted 7 lines
Quoted 3 lines

It wasn't on purpose -- the IDE driver supports the original PIIX
incorrectly.

Hello

What about removing this old driver totally if it dont work ?

It supports the later Intrel controllers OK, just the original PIIX support
is buggy.

Quoted 1 line

Regards

MBR, Sergei

#4 lore raw
In reply to LABBE Corentin
Quoted 13 lines · On Tue, 12 Mar 2019 11:41:02 +0100 LABBE Corentin <[email protected]> wrote:
Quoted 12 lines · Sergei Shtylyov

Hello!

Quoted 2 lines · Corentin Labbe

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver.

Correctly, it should probe with ata_piix,

Quoted 2 lines

But with the old ide/piix, it was probed.>
This is due to this PCI devid was not migrated from the old ide/piix.

Quoted 7 lines
Quoted 3 lines

It wasn't on purpose -- the IDE driver supports the original PIIX
incorrectly.

Hello

What about removing this old driver totally if it dont work ?

If the virtual Sparc emulator is using it does that also mean actual Sparc hardware has it. In which case presumably it needs fixing, or at least moving to the generic driver assuming the firmware sets it up ?

Alan

#5 lore raw
Quoted 20 lines · Alan Cox
Quoted 17 lines · On Tue, 12 Mar 2019 11:41:02 +0100 LABBE Corentin <[email protected]> wrote:
Quoted 15 lines · Sergei Shtylyov

Hello!

Quoted 2 lines · Corentin Labbe

When playing with a virtual SPARC machine with qemu, I found that the IDE emulated device was not probing with the ata/pata_oldpiix driver.

Correctly, it should probe with ata_piix,

Quoted 2 lines

But with the old ide/piix, it was probed.>
This is due to this PCI devid was not migrated from the old ide/piix.

It wasn't on purpose -- the IDE driver supports the original PIIX
incorrectly.

Quoted 8 lines
Quoted 3 lines

Hello

What about removing this old driver totally if it dont work ?

If the virtual Sparc emulator is using it does that also mean actual Sparc hardware has it. In which case presumably it needs fixing, or at least moving to the generic driver assuming the firmware sets it up ?

The qemu works perfectly with the new Linux driver.

#6 lore raw
Quoted 6 lines
Quoted 4 lines

If the virtual Sparc emulator is using it does that also mean actual Sparc hardware has it. In which case presumably it needs fixing, or at least moving to the generic driver assuming the firmware sets it up ?

The qemu works perfectly with the new Linux driver.

For some configurations both drivers will work with even older chips. The question is whether your chip has separate slave timings, if not then while it'll work single device with ata_piix some combinations will fail.

Digging into the datasheet the part in question has slave timing (0x44) so should indeed be ata_piix.

Alan