All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: Tejun Heo <htejun@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Jeff Garzik <jeff@garzik.org>
Subject: Re: Linux v2.6.18-rc5
Date: Fri, 15 Sep 2006 17:40:19 +1000	[thread overview]
Message-ID: <869.1158306019@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Sun, 03 Sep 2006 15:10:44 +0900." <44FA71E4.70408@gmail.com>

Tejun Heo (on Sun, 03 Sep 2006 15:10:44 +0900) wrote:
>Keith Owens wrote:
>>>> (2) I have seen the same intermittent bug on ICH7 SATA but
>>>>     PIIX_FLAG_IGNORE_PCS is only set for ich5 and i6300esb_sata.  It
>>>>     probably needs to be set for ich7 as well.
>>> No, ICH7 up to this point has been believed to have well-behaving PCS.
>>> If you report PCS problem, you'll be the first.
>
>Hmm... Can you try the attached patch and see what happens?  ATM, I'm on
>the road and can't test the patch, so it's only compile-tested.  This
>patch basically reverts some of the effects of the following commit and
>makes PCS update a little bit more aggressive iff necessary.
>
>ea35d29e2fa8b3d766a2ce8fbcce599dce8d2734
>[libata] ata_piix: Consolidate PCS register writing
>
>If this works for you ich7m, can you please test this on your formerly
>problematic ich5 with force_pcs=2 specified?  I initially thought that
>the ich5 problem was caused by exact PCS map change and thus added
>IGNORE_PCS as workaround but if the same problem occurs on ich7 and is
>fixed by the attached patch, it's due to conservative PCS update change
>and thus the original IGNORE_PCS fix on ich5 might not be necessary.
>just doesn't work quite as ata_piix developers expect.

Tested the patch on my ich7 (actually ich6m) laptop, on top of
2.6.18-rc7.  It failed after about 6 reboots.  Hand copied portion of
the boot log (no serial port on this laptop).

  ata_piix 0000:00:1f.2: MA{ [ P0 P2 IDE IDE ]
  ACPI: PCI Interrupt 0000:00:1f.2[B] -> GSI 19 (level, low) -> IRQ 18
  ata: 0x170 IDE port busy
  ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0x18B0 irq 14
  scsi0: ata_piix
  ata1: failed to update PCS after 10 tries, old=0x0 cur=0x0 new=0x5

I also booted my problem ich5 system with this patch on 2.6.18-rc7 with
ata_piix.force_pcs=2.  It gets the 'force honoring PCS' message and so
far it has not failed.  95 reboots later, and every single one detected
the disk in 0 tries.  Go figure.

Remember that adding the kdb patch and turning on kdb debugging makes
this problem more likely to occur.  I can reproduce the problem on both
machines using 2.6.18-rc5 without kdb, so kdb is not the cause.

Also remember that the ich5 box is actually a 64 bit system.  I have
only ever seen this problem when running in i386 mode, in x86_64 mode
pcs always just works.

Maybe we are looking at a timing race or a memory mapping problem?


  parent reply	other threads:[~2006-09-15  7:41 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28  4:30 Linux v2.6.18-rc5 Linus Torvalds
2006-08-28  5:17 ` Marc Perkel
2006-08-28  5:52   ` Linus Torvalds
2006-08-28  6:13     ` Andi Kleen
2006-08-28  7:24       ` Prakash Punnoor
2006-08-28 12:05         ` Andi Kleen
2006-08-28 12:15           ` Prakash Punnoor
2006-08-28 16:02             ` Andi Kleen
2006-08-28  6:14 ` Andrew Morton
2006-08-28  6:19   ` Olaf Hering
2006-08-28  6:24     ` Andrew Morton
2006-08-28 14:41       ` Shailabh Nagar
2006-08-28 22:01         ` Shailabh Nagar
2006-08-28  6:29   ` Jeff Garzik
2006-08-28  7:25   ` Andi Kleen
2006-08-28  8:08     ` Thomas Gleixner
2006-08-28 17:20       ` Andrew Morton
2006-08-28 17:45         ` Thomas Gleixner
2006-08-28  8:05   ` Catalin Marinas
2006-08-28  8:25   ` Catalin Marinas
2006-08-28  8:34   ` Keith Owens
2006-08-28  8:42     ` Tejun Heo
2006-08-28 15:24       ` Keith Owens
2006-09-03  6:10         ` Tejun Heo
2006-09-06  6:42           ` Keith Owens
2006-09-13 14:41             ` Tejun Heo
2006-09-15  7:40           ` Keith Owens [this message]
2006-08-28  8:53   ` Beschorner Daniel
2006-08-28 15:26   ` Dmitry Torokhov
2006-08-29  2:01   ` Greg KH
2006-08-29  2:01   ` Greg KH
2006-08-29 14:50   ` Andreas Barth
2006-08-29 15:57   ` Brice Goglin
2006-08-30 15:54   ` Andrew Benton
2006-08-30 16:15     ` Takashi Iwai
2006-08-31  8:22       ` Takashi Iwai
2006-08-31  5:14   ` Len Brown
2006-09-02  1:40   ` Elias Holman
2006-09-02  1:50     ` Jeff Garzik
2006-08-28 10:10 ` Jesper Juhl
2006-08-28 10:27   ` Kasper Sandberg
2006-08-28 10:35     ` Jesper Juhl
2006-08-28 22:36       ` Nathan Scott
2006-08-28 23:30         ` Jesper Juhl
2006-08-30  8:14           ` Kasper Sandberg
2006-08-30  9:19             ` Jesper Juhl
2006-08-30 13:43               ` Jesper Juhl
2006-09-06 12:21             ` Paul Slootman
2006-08-28 13:04 ` Roger Luethi
2006-08-29 11:55 ` Olaf Hering
2006-08-29 13:06   ` Nathan Lynch
2006-08-29 13:06     ` Nathan Lynch
2006-08-29 15:26     ` Yves-Alexis Perez
2006-08-29 15:52     ` Olaf Hering
2006-08-29 15:52       ` Olaf Hering
2006-08-30  6:13       ` Paul Mackerras
2006-08-30  6:13         ` Paul Mackerras
2006-08-30  8:05         ` Olaf Hering
2006-08-30  8:05           ` Olaf Hering
2006-08-30  9:00         ` Mikael Pettersson
2006-08-30  9:00           ` Mikael Pettersson
  -- strict thread matches above, loose matches on Subject: below --
2006-08-28  9:50 Chuck Ebbert
2006-08-28 18:40 ` Andrew Morton
2006-08-28 18:43   ` Arjan van de Ven
2006-08-29  5:36 Chuck Ebbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=869.1158306019@kao2.melbourne.sgi.com \
    --to=kaos@ocs.com.au \
    --cc=akpm@osdl.org \
    --cc=htejun@gmail.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.