linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
@ 2018-12-10 13:46 Corentin Labbe
  2018-12-10 14:52 ` Sergei Shtylyov
  0 siblings, 1 reply; 7+ messages in thread
From: Corentin Labbe @ 2018-12-10 13:46 UTC (permalink / raw)
  To: axboe, b.zolnierkie; +Cc: linux-ide, linux-kernel, 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.
But with the old ide/piix, it was probed.

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

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/ata/pata_oldpiix.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/pata_oldpiix.c b/drivers/ata/pata_oldpiix.c
index b9bf78b7d48d..63a964062865 100644
--- a/drivers/ata/pata_oldpiix.c
+++ b/drivers/ata/pata_oldpiix.c
@@ -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 */
 };
-- 
2.19.2


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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2018-12-10 13:46 [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB Corentin Labbe
@ 2018-12-10 14:52 ` Sergei Shtylyov
  2019-03-12 10:41   ` LABBE Corentin
  0 siblings, 1 reply; 7+ messages in thread
From: Sergei Shtylyov @ 2018-12-10 14:52 UTC (permalink / raw)
  To: Corentin Labbe, axboe, b.zolnierkie; +Cc: linux-ide, linux-kernel

Hello!

On 12/10/2018 04:46 PM, Corentin Labbe wrote:

> 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,

> 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.

> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>

   NAK.

MBR, Sergei

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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2018-12-10 14:52 ` Sergei Shtylyov
@ 2019-03-12 10:41   ` LABBE Corentin
  2019-03-12 10:44     ` Sergei Shtylyov
  2019-03-12 12:06     ` Alan Cox
  0 siblings, 2 replies; 7+ messages in thread
From: LABBE Corentin @ 2019-03-12 10:41 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: axboe, b.zolnierkie, linux-ide, linux-kernel

On Mon, Dec 10, 2018 at 05:52:35PM +0300, Sergei Shtylyov wrote:
> Hello!
> 
> On 12/10/2018 04:46 PM, Corentin Labbe wrote:
> 
> > 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,
> 
> > 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

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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2019-03-12 10:41   ` LABBE Corentin
@ 2019-03-12 10:44     ` Sergei Shtylyov
  2019-03-12 12:06     ` Alan Cox
  1 sibling, 0 replies; 7+ messages in thread
From: Sergei Shtylyov @ 2019-03-12 10:44 UTC (permalink / raw)
  To: LABBE Corentin; +Cc: axboe, b.zolnierkie, linux-ide, linux-kernel

On 03/12/2019 01:41 PM, LABBE Corentin wrote:

>>> 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,
>>
>>> 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 ?

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

> Regards

MBR, Sergei

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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2019-03-12 10:41   ` LABBE Corentin
  2019-03-12 10:44     ` Sergei Shtylyov
@ 2019-03-12 12:06     ` Alan Cox
  2019-03-12 13:38       ` LABBE Corentin
  1 sibling, 1 reply; 7+ messages in thread
From: Alan Cox @ 2019-03-12 12:06 UTC (permalink / raw)
  To: LABBE Corentin
  Cc: Sergei Shtylyov, axboe, b.zolnierkie, linux-ide, linux-kernel

On Tue, 12 Mar 2019 11:41:02 +0100
LABBE Corentin <clabbe@baylibre.com> wrote:

> On Mon, Dec 10, 2018 at 05:52:35PM +0300, Sergei Shtylyov wrote:
> > Hello!
> > 
> > On 12/10/2018 04:46 PM, Corentin Labbe wrote:
> >   
> > > 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,
> >   
> > > 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 ?

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

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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2019-03-12 12:06     ` Alan Cox
@ 2019-03-12 13:38       ` LABBE Corentin
  2019-03-22 17:36         ` Alan Cox
  0 siblings, 1 reply; 7+ messages in thread
From: LABBE Corentin @ 2019-03-12 13:38 UTC (permalink / raw)
  To: Alan Cox; +Cc: Sergei Shtylyov, axboe, b.zolnierkie, linux-ide, linux-kernel

On Tue, Mar 12, 2019 at 12:06:23PM +0000, Alan Cox wrote:
> On Tue, 12 Mar 2019 11:41:02 +0100
> LABBE Corentin <clabbe@baylibre.com> wrote:
> 
> > On Mon, Dec 10, 2018 at 05:52:35PM +0300, Sergei Shtylyov wrote:
> > > Hello!
> > > 
> > > On 12/10/2018 04:46 PM, Corentin Labbe wrote:
> > >   
> > > > 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,
> > >   
> > > > 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 ?
> 
> 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.

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

* Re: [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB
  2019-03-12 13:38       ` LABBE Corentin
@ 2019-03-22 17:36         ` Alan Cox
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Cox @ 2019-03-22 17:36 UTC (permalink / raw)
  To: LABBE Corentin
  Cc: Sergei Shtylyov, axboe, b.zolnierkie, linux-ide, linux-kernel

> > 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


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

end of thread, other threads:[~2019-03-22 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-10 13:46 [PATCH] ata: pata_oldpiix: Add missing device ID for INTEL_82371AB Corentin Labbe
2018-12-10 14:52 ` Sergei Shtylyov
2019-03-12 10:41   ` LABBE Corentin
2019-03-12 10:44     ` Sergei Shtylyov
2019-03-12 12:06     ` Alan Cox
2019-03-12 13:38       ` LABBE Corentin
2019-03-22 17:36         ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).