All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: "Justin T. Gibbs" <gibbs@scsiguy.com>
Cc: Konstantin Kletschke <konsti@ludenkalle.de>,
	linux-kernel@vger.kernel.org
Subject: Quick aic7xxx bug hunt...
Date: Mon, 23 Sep 2002 17:27:39 -0400	[thread overview]
Message-ID: <3D8F874B.3070301@mandrakesoft.com> (raw)
In-Reply-To: 2539730816.1032808544@aslan.btc.adaptec.com

Justin T. Gibbs wrote:
> On some motherboards with some chipsets, you can get these messages if
> another busmaster (say an IDE drive or a sound card) is hogging the bus.
> Usually this is with a VIA chipset.  Its not clear why the aic7xxx_old
> driver would behave differently other than it disables memory write
> and invalidate PCI transactions on this chip.  The new driver doesn't
> need that work around.


Justin,

One thing I notice is at least one PCI posting bug.  When using MMIO 
(write[bwlq] under Linux), you _must_ use a read[bwlq] to flush the 
write to PCI, if you wish to ensure the write posts at a certain point 
in the code.

Here is the example PCI posting bug, in ahc_clear_critical_section:
>                 ahc_outb(ahc, HCNTRL, ahc->unpause);
>                 do {
>                         ahc_delay(200);
>                 } while (!ahc_is_paused(ahc));

As you can see, there is no read before the udelay(), which is very 
wrong on modern CPUs with write posting...  that's definitely a driver 
bug that will bite you on modern x86 motherboards [and is totally broken 
on ia64 and other platforms].

Please let me know if you have further questions on PCI write posting...

	Jeff




  reply	other threads:[~2002-09-23 21:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-23 18:00 2.4.20-pre7-ac3 aic7xxx broken? Konstantin Kletschke
2002-09-23 19:15 ` Justin T. Gibbs
2002-09-23 21:27   ` Jeff Garzik [this message]
2002-09-23 21:54     ` Quick aic7xxx bug hunt Justin T. Gibbs
2002-09-23 22:18       ` Jeff Garzik
2002-09-23 22:44         ` Justin T. Gibbs
2002-09-23 22:50           ` Jeff Garzik
2002-09-23 22:55             ` Justin T. Gibbs
2002-09-23 23:22               ` Jeff Garzik
2002-09-23 23:28                 ` Jeff Garzik
2002-09-23  7:44                   ` Benjamin Herrenschmidt

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=3D8F874B.3070301@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=gibbs@scsiguy.com \
    --cc=konsti@ludenkalle.de \
    --cc=linux-kernel@vger.kernel.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.