On Mon, 28 Jan 2008 15:56:21 +0100 Andi Kleen <andi@firstfloor.org> wrote:1) that didn't used to be the case upto and including 2.6.24 2) even for the various arch/x86 pieces there were.. interesting issues there The new API is a lot simpler, and it is INTENT driven. This means that PAT (for 2.6.26) no longer has to second guess various things and capabilities, it just gets a set_memory_uc() or set_memory_wc() call and it can do the right thing for the hw/sw combination at hand. c_p_a() doesn't give you intent, it gives you a whole range of bits, and it's not clear which ones the caller cares about. I looked carefully at all the cases, and there are basically 2 classes 1) Drivers needed memory to be uncached (or in 2.6.26, wc) 2) Core x86 code needing to change 1 attribute only for various reasons The new API caters to both in a very natural way, while allowing the implementation to deal with things like PAT etc in a much more natural way because the intent is given, and only the intent is changed in behavior. yeah the selftest was quite buggy; it would look at the first page of a range, and then mark the entire range with that attribute. This explodes nicely if the first page is in the read only .rodata section, but the range extends well beyond that... it made the .data section and more read only. That works great... for about 100 nanoseconds. Given the amount of issues in this area of code (now and in the future with PAT), including int the cpa-selftest that you wrote and was buggy in using cpa, I would have to disagree with you. -- If you want to reach me at my work email, use arjan@linux.intel.com For development, discussion and tips for power savings, visit http://www.lesswatts.org --
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| David Woodhouse | [PATCHv2 00/28] Allow built-in firmware to be accessed by request_firmware() |
| Tarkan Erimer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Mike Travis | [RFC 00/15] x86_64: Optimize percpu accesses |
git: | |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| David Miller | [GIT]: Networking |
