Re: [PATCH] x86: create array based interface to change page attribute

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Arjan van de Ven
Date: Monday, March 31, 2008 - 2:33 am

Thomas Hellström wrote:

Cache attributes fundamentally work on a mapping and not on physical memory.
(MTRR's are special there, they do work on physical memory, but that's a special case and not relevant here)

So to be honest, your question doesn't make sense;  because all I can do is ask "which mapping of these pages".

Even the old interfaces prior to 2.6.24 only managed to deal with SOME of the mappings of a page.
And if/when future CPUs don't require all mappings to be in sync, clearly the kernel will only change
the mapping that is requested as well.




Actually, the interface has to make sense conceptually convey the right information,
the implementation should not have to second guess internals of AGP/DRM because that
would just be a recipe for disaster.

yes because simply put, if you pass a struct page to such a function, you're not telling it which
mapping or mappings you want changed....
(And if you say "only the 1:1 mapping, so why doesn't the other side calculate that"... there's no speed gain in doing
the calculation for that on the other side of an interface, and that makes it zero reason to misdesign the interface
to only have the "which mapping" information implicit)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Sun Mar 30, 11:54 pm)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 12:55 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 2:06 am)
Re: [PATCH] x86: create array based interface to change pa ..., Arjan van de Ven, (Mon Mar 31, 2:33 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 4:04 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 4:10 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 9:41 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Mar 31, 10:26 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Tue Apr 1, 11:30 pm)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Tue Apr 1, 11:59 pm)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Wed Apr 2, 10:57 am)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Apr 7, 12:51 pm)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Apr 7, 11:12 pm)
Re: [PATCH] x86: create array based interface to change pa ..., Thomas Hellström, (Mon Apr 7, 11:21 pm)