Re: io resources and cached mappings (was: [git pull] drm patchesfor 2.6.27-rc1)
From: Ingo Molnar
Date: Mon Oct 20 2008 - 07:58:46 EST
* Keith Packard <keithp@xxxxxxxxxx> wrote:
> On Sun, 2008-10-19 at 19:53 +0200, Ingo Molnar wrote:
> > Note how simple and consistent it all gets: IO resources already
> > know their physical location and their size limits. Being able to
> > cache an ioremap in a mapping [and being able to use atomic kmaps on
> > 32-bit] is a relatively simple and natural extension to the concept.
> I'm not sure I see any value in caching mappings here; we're mostly
> interested in copying lots of data onto the card and so we use a lot
> of different mappings; atomic mappings are easy to use, and efficient
yes but note that by caching the whole mapping on 64-bit we get
everything we want: trivially lockless, works from any CPU, can be
preempted at will, and there are no ugly INVLPG flushes anywhere.
you'll even get 2MB mappings automatically, if the BAR is aligned and
32-bit we should handle as well but not design for it.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/