Re: Memory barriers and spin_unlock safety

From: Alan Cox
Date: Sun Mar 12 2006 - 13:00:32 EST


On Gwe, 2006-03-10 at 19:19 -0600, Robert Hancock wrote:
> PCI I/O writes are allowed to be posted by the host bus bridge (not
> other bridges) according to the PCI 2.2 spec. Maybe no x86 platform
> actually does this, but it's allowed, so technically a device would need
> to do a read in order to ensure that I/O writes have arrived at the
> device as well.

Existing Linux drivers largely believe that PCI I/O cycles as opposed to
MMIO cycles are not posted. At least one MIPS platform that did post
them ended up ensuring PCI I/O cycle posting didn't occur to get a
running Linux system - so its quite a deep assumption.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/