linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* 2.6.24-rc1 IDE regression on PMAC?
@ 2007-10-27 17:56 Mikael Pettersson
  2007-10-27 19:19 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Mikael Pettersson @ 2007-10-27 17:56 UTC (permalink / raw)
  To: bzolnier; +Cc: linux-ide

As shown by this dmesg diff between 2.6.23 and 2.6.24-rc1,
IDE's PMAC driver now decides to downgrade itself to PIO2
on this box. Is this intensional or a bug?

--- dmesg-2.6.23
+++ dmesg-2.6.24-rc1
@@ -84,8 +89,9 @@
 ide0: Found Apple Heathrow ATA controller, bus ID 0, irq 28
 Probing IDE interface ide0...
 hda: MATSHITA CR-585, ATAPI CD/DVD-ROM drive
+hda: applying conservative PIO "downgrade"
+hda: host max PIO4 wanted PIO255(auto-tune) selected PIO2
 hda: selected mode 0x21
-hda: Enabling MultiWord DMA 1
 ide0 at 0xf1008000-0xf1008007,0xf1008160 on irq 28
 ide1: Found Apple Heathrow ATA controller, bus ID 1, irq 30
 Probing IDE interface ide1...

/Mikael

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

* Re: 2.6.24-rc1 IDE regression on PMAC?
  2007-10-27 17:56 2.6.24-rc1 IDE regression on PMAC? Mikael Pettersson
@ 2007-10-27 19:19 ` Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; 2+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-10-27 19:19 UTC (permalink / raw)
  To: Mikael Pettersson; +Cc: linux-ide

On Saturday 27 October 2007, Mikael Pettersson wrote:
> As shown by this dmesg diff between 2.6.23 and 2.6.24-rc1,
> IDE's PMAC driver now decides to downgrade itself to PIO2
> on this box. Is this intensional or a bug?

This drive still uses MWDMA1 according to the dmesg diff
(only the debug message from IDE PMAC is gone) but since we
have enabled PIO autotuning PIO is also tuned.

PIO downgrade is kind of expected for drives that doesn't
support PIO4 (this drive's max is PIO3).

The guilty code is in ide_get_best_pio_mode():

		/*
		 * Conservative "downgrade" for all pre-ATA2 drives
		 */
		if ((drive->hwif->host_flags & IDE_HFLAG_PIO_NO_DOWNGRADE) == 0 &&
			pio_mode && pio_mode < 4) {
			pio_mode--;
			printk(KERN_INFO "%s: applying conservative "
					 "PIO \"downgrade\"\n", drive->name);
		}

and is/was? probably needed only for CMD640 host driver so you
may try adding IDE_HFLAG_PIO_NO_DOWNGRADE to IDE PMAC driver
and see what happens. :)

> --- dmesg-2.6.23
> +++ dmesg-2.6.24-rc1
> @@ -84,8 +89,9 @@
>  ide0: Found Apple Heathrow ATA controller, bus ID 0, irq 28
>  Probing IDE interface ide0...
>  hda: MATSHITA CR-585, ATAPI CD/DVD-ROM drive
> +hda: applying conservative PIO "downgrade"
> +hda: host max PIO4 wanted PIO255(auto-tune) selected PIO2
>  hda: selected mode 0x21

0x21 == MWDMA1

Yeah, needs fixing to call ide_xfer_verbose() which prints something
human-readable.  I'll look into this, unless somebody beats me to it.

> -hda: Enabling MultiWord DMA 1
>  ide0 at 0xf1008000-0xf1008007,0xf1008160 on irq 28
>  ide1: Found Apple Heathrow ATA controller, bus ID 1, irq 30
>  Probing IDE interface ide1...

Thanks,
Bart

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

end of thread, other threads:[~2007-10-27 19:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-27 17:56 2.6.24-rc1 IDE regression on PMAC? Mikael Pettersson
2007-10-27 19:19 ` Bartlomiej Zolnierkiewicz

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