[lkml]   [2008]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: io resources and cached mappings (was: [git pull] drm patches for 2.6.27-rc1)

* Ingo Molnar <> wrote:

> that gets ugly very fast. I think we should not use atomic kmaps but
> NR_CPUS _fixmaps_ with a per CPU array of mutexes (this is basically
> atomic kmaps but without the preemption restrictions). We could
> take/drop the mutex and statistically you'll stay on the same CPU and
> wont ever contend on that lock in practice.

peterz pointed it out that we need to be careful with the TLBs in that

I think it's solvable: a small non-default special-case in switch_to()
would invlpg any pending such page. (and no two such mappings could be
held at the same time)

So as long as we dont leave the CPU we wont ever do TLB flushes, and the
flush will be local even if we do.


 \ /
  Last update: 2008-10-20 14:23    [W:0.108 / U:1.400 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site