[8063] in linux-scsi channel archive
Re: Kernel v2.2.15pre5 SCSI 2940U2W with AIC7895 boot still broke
daemon@ATHENA.MIT.EDU (M Sweger)
Tue Feb 8 14:23:34 2000
Date: Tue, 8 Feb 2000 13:29:47 -0500 (EST)
From: M Sweger <mikesw@whiterose.net>
To: Benjamin Herrenschmidt <bh40@calva.net>
Cc: alan@redhat.com, dledford@redhat.com,
linux-scsi@vger.rutgers.edu, linux-kernel@vger.rutgers.edu
In-Reply-To: <20000208191647.007586@mailhost.mipsys.com>
Message-ID: <Pine.LNX.4.21.0002081327510.8423-100000@whiterose.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Ben,
Ok!
So what do I add to the aic7xxx.c driver to confirm this idea?
Mike
On Tue, 8 Feb 2000, Benjamin Herrenschmidt wrote:
> On Mon, Feb 7, 2000, M Sweger <mikesw@whiterose.net> wrote:
>
> > aic_outb(p, sxfrctl12, SXFRCTL1);
> > write_brdctl(p,brddat);
> > printk(KERN_INFO "works when this message is here");
> > release_seeprom(p);
>
> I'm wondering if this could be a problem with PCI write posting.
> Basically, when you write to PCI, you have no guarantee that the write
> actually ended up to the card unless you do a read from the same bus
> path. It's perfectly legal for PCI bridges to do write posting (keep the
> value in a buffer and terminate the write cycle on the CPU side) while
> asynchronously writing to the card.
> If for any reason there's some bus activity going on at this point, the
> write can be delayed, or simply the bridge may wait for another data to
> do store gathering until an internal timeout expires.
>
> I've been biten by this on another driver, where the udelay after the
> write was almost useless because of that. If you have some timing
> critical constraints between two writes to the card, just make sure you
> do a read _before_ doing the delay & the second write.
>
> I've seen the Adapted driver doing weird things at bus probe time on a
> powermac here when enabling store gathering on the PCI controller. I've
> disabled this feature of the controller on PowerMac kernels for this
> reason (and another problem that I'm currently fixing) but this could be
> the exact same problem you are facing. This powermac has 2 cascaded
> bridges, so when Store Gathering is enabled, the latency before the write
> is actually done on the card can be quite high.
>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu