Messages in this thread | | | Subject | Re: [PATCH] Define wc_wmb, a write barrier for PCI write combining | From | Bryan O'Sullivan <> | Date | Sat, 25 Feb 2006 11:01:23 -0800 |
| |
On Sat, 2006-02-25 at 14:28 +0100, Andi Kleen wrote:
> Before we can add such a macro I suspect you would first > need to provide some spec how that "portable write combining" > is supposed to work and get feedback from the other architectures.
It seems like we'd need a function that tries to enable or disable write combining on an MMIO memory range. This would be implemented by arches that support it, and would fail on others. Drivers could then try to enable write combining, and if it failed, either bail, print a warning message, or do something else appropriate.
So on i386 and x86_64, this function would fiddle with the MTRRs. On powerpc, it would either configure the northbridge appropriately or fail. On other arches, I don't know enough to say, so the default would be to fail.
Is this reasonable? I can code a strawman implementation up, if the basic idea looks sane.
<b
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |