linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
@ 2008-10-27 19:58 Bartlomiej Zolnierkiewicz
  2008-10-27 23:22 ` Sergei Shtylyov
  0 siblings, 1 reply; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-27 19:58 UTC (permalink / raw)
  To: linux-ide; +Cc: Sergei Shtylyov

* Set IDE_HFLAG_SERIALIZE explictly for CMD646.

* Remove no longer needed ide_cmd646 chipset type (which has
  a nice side-effect of fixing handling of unexpected IRQs).

Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 drivers/ide/cmd64x.c    |    4 ++--
 drivers/ide/ide-probe.c |    2 +-
 drivers/ide/ide-proc.c  |    1 -
 include/linux/ide.h     |    2 +-
 4 files changed, 4 insertions(+), 5 deletions(-)

Index: b/drivers/ide/cmd64x.c
===================================================================
--- a/drivers/ide/cmd64x.c
+++ b/drivers/ide/cmd64x.c
@@ -424,10 +424,10 @@ static const struct ide_port_info cmd64x
 		.name		= DRV_NAME,
 		.init_chipset	= init_chipset_cmd64x,
 		.enablebits	= {{0x51,0x04,0x04}, {0x51,0x08,0x08}},
-		.chipset	= ide_cmd646,
 		.port_ops	= &cmd64x_port_ops,
 		.dma_ops	= &cmd648_dma_ops,
-		.host_flags	= IDE_HFLAG_ABUSE_PREFETCH,
+		.host_flags	= IDE_HFLAG_SERIALIZE |
+				  IDE_HFLAG_ABUSE_PREFETCH,
 		.pio_mask	= ATA_PIO5,
 		.mwdma_mask	= ATA_MWDMA2,
 		.udma_mask	= ATA_UDMA2,
Index: b/drivers/ide/ide-probe.c
===================================================================
--- a/drivers/ide/ide-probe.c
+++ b/drivers/ide/ide-probe.c
@@ -1123,7 +1123,7 @@ static int init_irq (ide_hwif_t *hwif)
 		sa = IRQF_SHARED;
 #endif /* __mc68000__ */
 
-		if (hwif->chipset == ide_pci || hwif->chipset == ide_cmd646)
+		if (hwif->chipset == ide_pci)
 			sa = IRQF_SHARED;
 
 		if (io_ports->ctl_addr)
Index: b/drivers/ide/ide-proc.c
===================================================================
--- a/drivers/ide/ide-proc.c
+++ b/drivers/ide/ide-proc.c
@@ -48,7 +48,6 @@ static int proc_ide_read_imodel
 	case ide_ht6560b:	name = "ht6560b";	break;
 	case ide_rz1000:	name = "rz1000";	break;
 	case ide_trm290:	name = "trm290";	break;
-	case ide_cmd646:	name = "cmd646";	break;
 	case ide_cy82c693:	name = "cy82c693";	break;
 	case ide_4drives:	name = "4drives";	break;
 	case ide_pmac:		name = "mac-io";	break;
Index: b/include/linux/ide.h
===================================================================
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -164,7 +164,7 @@ enum {		ide_unknown,	ide_generic,	ide_pc
 		ide_cmd640,	ide_dtc2278,	ide_ali14xx,
 		ide_qd65xx,	ide_umc8672,	ide_ht6560b,
 		ide_rz1000,	ide_trm290,
-		ide_cmd646,	ide_cy82c693,	ide_4drives,
+		ide_cy82c693,	ide_4drives,
 		ide_pmac,	ide_acorn,
 		ide_au1xxx,	ide_palm3710
 };

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-27 19:58 [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646 Bartlomiej Zolnierkiewicz
@ 2008-10-27 23:22 ` Sergei Shtylyov
  2008-10-29 19:26   ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2008-10-27 23:22 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide

Hello.

Bartlomiej Zolnierkiewicz wrote:

> * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
>   

  Was that some kernel.org bug that this is fixing?

MBR, Sergei



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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-27 23:22 ` Sergei Shtylyov
@ 2008-10-29 19:26   ` Bartlomiej Zolnierkiewicz
  2008-10-29 20:34     ` Sergei Shtylyov
  0 siblings, 1 reply; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-29 19:26 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide

On Tuesday 28 October 2008, Sergei Shtylyov wrote:
> Hello.
> 
> Bartlomiej Zolnierkiewicz wrote:
> 
> > * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
> >   
> 
>   Was that some kernel.org bug that this is fixing?

Nope (AFAIK).

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 19:26   ` Bartlomiej Zolnierkiewicz
@ 2008-10-29 20:34     ` Sergei Shtylyov
  2008-10-29 21:42       ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2008-10-29 20:34 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide

Hello.

Bartlomiej Zolnierkiewicz wrote:

>>Hello.

>>Bartlomiej Zolnierkiewicz wrote:

>>>* Set IDE_HFLAG_SERIALIZE explictly for CMD646.

>>  Was that some kernel.org bug that this is fixing?

> Nope (AFAIK).

    User report then?

MBR, Sergei

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 20:34     ` Sergei Shtylyov
@ 2008-10-29 21:42       ` Bartlomiej Zolnierkiewicz
  2008-10-29 22:59         ` Sergei Shtylyov
  0 siblings, 1 reply; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-29 21:42 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide

On Wednesday 29 October 2008, Sergei Shtylyov wrote:
> Hello.
> 
> Bartlomiej Zolnierkiewicz wrote:
> 
> >>Hello.
> 
> >>Bartlomiej Zolnierkiewicz wrote:
> 
> >>>* Set IDE_HFLAG_SERIALIZE explictly for CMD646.
> 
> >>  Was that some kernel.org bug that this is fixing?
> 
> > Nope (AFAIK).
> 
>     User report then?

Nope as far as my inbox tells me.

However http://bugzilla.kernel.org/ may know more.

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 21:42       ` Bartlomiej Zolnierkiewicz
@ 2008-10-29 22:59         ` Sergei Shtylyov
  2008-10-29 23:10           ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2008-10-29 22:59 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide

Hello.

Bartlomiej Zolnierkiewicz wrote:

>>>>> * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
>>>>>           
>>>>  Was that some kernel.org bug that this is fixing?
>>>>         
>>> Nope (AFAIK).
>>>       
>>     User report then?
>>     
>
> Nope as far as my inbox tells me.
>   

   Then whar's the reason? :-)

> However http://bugzilla.kernel.org/ may know more.
>   

   Tried already -- to no avail.

WBR, Sergei



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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 22:59         ` Sergei Shtylyov
@ 2008-10-29 23:10           ` Bartlomiej Zolnierkiewicz
  2008-10-29 23:31             ` Sergei Shtylyov
  0 siblings, 1 reply; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-29 23:10 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide

On Wednesday 29 October 2008, Sergei Shtylyov wrote:
> Hello.
> 
> Bartlomiej Zolnierkiewicz wrote:
> 
> >>>>> * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
> >>>>>           
> >>>>  Was that some kernel.org bug that this is fixing?
> >>>>         
> >>> Nope (AFAIK).
> >>>       
> >>     User report then?
> >>     
> >
> > Nope as far as my inbox tells me.
> >   
> 
>    Then whar's the reason? :-)

From the patch description:

	* Set IDE_HFLAG_SERIALIZE explictly for CMD646.

	* Remove no longer needed ide_cmd646 chipset type (which has
	  a nice side-effect of fixing handling of unexpected IRQs).

The latter is possible because of the former
(see ide-probe.c::init_irq() for details).

Also more reasons coming in the near future...

> > However http://bugzilla.kernel.org/ may know more.
> >   
> 
>    Tried already -- to no avail.

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 23:10           ` Bartlomiej Zolnierkiewicz
@ 2008-10-29 23:31             ` Sergei Shtylyov
  2008-10-29 23:42               ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 10+ messages in thread
From: Sergei Shtylyov @ 2008-10-29 23:31 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide

Hello.

Bartlomiej Zolnierkiewicz wrote:

>>>>>>> * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
>>>>>>>           
>>>>>>>               
>>>>>>  Was that some kernel.org bug that this is fixing?
>>>>>>         
>>>>>>             
>>>>> Nope (AFAIK).
>>>>>       
>>>>>           
>>>>     User report then?
>>>>     
>>>>         
>>> Nope as far as my inbox tells me.
>>>   
>>>       
>>    Then whar's the reason? :-)
>>     
>
> From the patch description:
>
> 	* Set IDE_HFLAG_SERIALIZE explictly for CMD646.
>
> 	* Remove no longer needed ide_cmd646 chipset type (which has
> 	  a nice side-effect of fixing handling of unexpected IRQs).
>
> The latter is possible because of the former
> (see ide-probe.c::init_irq() for details).
>   

   Ah, got it at last. But I doubt that 646 *really* needs serialization...

MBR, Sergei



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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 23:31             ` Sergei Shtylyov
@ 2008-10-29 23:42               ` Bartlomiej Zolnierkiewicz
  2008-10-31 14:36                 ` Mark Lord
  0 siblings, 1 reply; 10+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2008-10-29 23:42 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide

On Thursday 30 October 2008, Sergei Shtylyov wrote:
> Hello.
> 
> Bartlomiej Zolnierkiewicz wrote:
> 
> >>>>>>> * Set IDE_HFLAG_SERIALIZE explictly for CMD646.
> >>>>>>>           
> >>>>>>>               
> >>>>>>  Was that some kernel.org bug that this is fixing?
> >>>>>>         
> >>>>>>             
> >>>>> Nope (AFAIK).
> >>>>>       
> >>>>>           
> >>>>     User report then?
> >>>>     
> >>>>         
> >>> Nope as far as my inbox tells me.
> >>>   
> >>>       
> >>    Then whar's the reason? :-)
> >>     
> >
> > From the patch description:
> >
> > 	* Set IDE_HFLAG_SERIALIZE explictly for CMD646.
> >
> > 	* Remove no longer needed ide_cmd646 chipset type (which has
> > 	  a nice side-effect of fixing handling of unexpected IRQs).
> >
> > The latter is possible because of the former
> > (see ide-probe.c::init_irq() for details).
> >   
> 
>    Ah, got it at last. But I doubt that 646 *really* needs serialization...

I remember getting bugreport which supposedly was fixed by commit
deffca117b90dadec395c0cf3ee816de27dfe2fd (but it could also be that
it was something else in reality or that it just hide some other
bug that we fixed in the meantime).

We would need somebody with the hardware to verify it.

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

* Re: [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646
  2008-10-29 23:42               ` Bartlomiej Zolnierkiewicz
@ 2008-10-31 14:36                 ` Mark Lord
  0 siblings, 0 replies; 10+ messages in thread
From: Mark Lord @ 2008-10-31 14:36 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: Sergei Shtylyov, linux-ide

Bartlomiej Zolnierkiewicz wrote:
> On Thursday 30 October 2008, Sergei Shtylyov wrote:
>> Hello.
>>
>> Bartlomiej Zolnierkiewicz wrote:
.. 
>>    Ah, got it at last. But I doubt that 646 *really* needs serialization...
> 
> I remember getting bugreport which supposedly was fixed by commit
> deffca117b90dadec395c0cf3ee816de27dfe2fd (but it could also be that
> it was something else in reality or that it just hide some other
> bug that we fixed in the meantime).
> 
> We would need somebody with the hardware to verify it.
..

Apple B&W PowerMac G3 boxes originally shipped with CMD646 chips inside,
so if anyone has one of those, then it could be used for testing this.

The early CMD646 chips have issues with UDMA modes, but later ones work fine.
I really don't remember if the old CMD640 serialization issues persist
with the "newer" CMD646 chips, though.

Cheers

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

end of thread, other threads:[~2008-10-31 14:35 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 19:58 [PATCH 2/2] cmd64x: set IDE_HFLAG_SERIALIZE explictly for CMD646 Bartlomiej Zolnierkiewicz
2008-10-27 23:22 ` Sergei Shtylyov
2008-10-29 19:26   ` Bartlomiej Zolnierkiewicz
2008-10-29 20:34     ` Sergei Shtylyov
2008-10-29 21:42       ` Bartlomiej Zolnierkiewicz
2008-10-29 22:59         ` Sergei Shtylyov
2008-10-29 23:10           ` Bartlomiej Zolnierkiewicz
2008-10-29 23:31             ` Sergei Shtylyov
2008-10-29 23:42               ` Bartlomiej Zolnierkiewicz
2008-10-31 14:36                 ` Mark Lord

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