Thread (15 messages) flat view 15 messages, 5 authors, 2007-08-11

Re: [RFC/PATCH] remove gratuitous reads from maple pci config space methods

From: David Gibson <hidden>
Date: 2007-08-09 04:18:03

On Wed, Aug 08, 2007 at 11:16:32PM -0500, Nathan Lynch wrote:
David Gibson wrote:
quoted
On Wed, Aug 08, 2007 at 07:50:44PM -0500, Nathan Lynch wrote:
quoted
The maple pci configuration space write methods read the written
location immediately after the write is performed, presumably in order
to flush the write.  However, configuration space writes are not
allowed to be posted, making these reads gratuitous.
It might be worth checking that there isn't a particular reason for
these.  Just because posting writes are forbidden doesn't mean a
particular bridge won't screw it up...
Well, I had already checked with Ben, who wrote the code, and my
understanding is that the reads are intended to work around some
misbehaving Apple bridges, but that a sync after the write (implied by
releasing pci_lock in the generic pci code) should suffice for
those.
Ah, ok then.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help