>>>>> On 02 Aug 2002 18:58:53 +0100, Alan Cox <alan@lxorguk.ukuu.org.uk> said:
>> Cacheable and side-effects don't go together. Even without
>> explicit software prefetches, most modern CPUs will happily and
>> aggressively prefetch stuff from cacheable translations.
Alan> Yes we got burned on that with the latest AMD processors. They
Alan> prefetch into an area we accidentally have marked with
Alan> differing cachabilities between kernel and user space when
Alan> using the nv binary driver stuff (but its our bug not
Alan> theirs). There's a horrid hack in 2.4.19rc to deal with it
Alan> pending merging the proper patches
Yes, I'm well aware of this issue as ia64 has basically the same setup
in this regard. For ia64, it seems to be acceptable to require
that AGP DMA operates in coherent mode, so that all the memory can be
mapped cacheable. With old chipsets, coherent AGP DMA is slow, but
with more recent chipsets (including hp's zx1), there won't be a
performance penalty. I realize that this isn't a solution for x86 as
there is too much of an installed base.
--david
-
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/
This archive was generated by hypermail 2b29 : Wed Aug 07 2002 - 22:00:19 EST