Re: [PATCH] [1/1] CPA: Flush the caches when setting pages not present v2

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Thomas Gleixner <tglx@...>
Cc: <mingo@...>, <linux-kernel@...>
Date: Monday, February 11, 2008 - 1:36 pm

> This is suboptimal though, as it will trigger a wbinvd() everytime

Do you think that's common? I considered this while writing the code,
but figured it was just a oddball case not worth caring about.

DEBUG_PAGEALLOC does not call this normally anyways and people
should not call this for unallocated mappings anyways. 


That will work for pci-gart, but not for some future users of set_memory_np()
I plan to submit (they run potentially with multiple CPUs online and doing callbacks
there would be quite ugly). So I would prefer  if you kept some variant of my original patch.

-Andi

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

Messages in current thread:
Re: [PATCH] [1/1] CPA: Flush the caches when setting pages n..., Andi Kleen, (Mon Feb 11, 1:36 pm)