[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1224357062.4384.72.camel@koto.keithp.com>
Date: Sat, 18 Oct 2008 12:11:02 -0700
From: Keith Packard <keithp@...thp.com>
To: Nick Piggin <nickpiggin@...oo.com.au>
Cc: keithp@...thp.com, Dave Airlie <airlied@...ux.ie>,
Andrew Morton <akpm@...ux-foundation.org>,
torvalds@...ux-foundation.org, linux-kernel@...r.kernel.org,
dri-devel@...ts.sf.net
Subject: Re: [git pull] drm patches for 2.6.27-rc1
On Sat, 2008-10-18 at 12:37 +1100, Nick Piggin wrote:
> OK. I was hoping that kmap_atomic_pfn thing *never* see the light of
> mainline ;) Because hopefully the vmap improvements should be OK for
> 2.6.28 as well...
Eric and I chatted with Venki Pallipadi this week and decided what we
really need is an official API for getting at pfns in our device BAR,
which is what we're (ab)using kmap_atomic_pfn for. This ties in with
some PAT issues as well, where we want to assert that all mappings of
our BAR are in WC mode. The basic plan is to have four new functions
(yes, I'm making up names here):
struct io_mapping *io_reserve_pci_resource(struct pci_dev *dev,
int bar,
int prot);
void io_mapping_free(struct io_mapping *mapping);
void *io_map_atomic(struct io_mapping *mapping, unsigned long pfn);
void io_unmap_atomic(struct io_mapping *mapping, unsigned long pfn);
This would have the additional effect of making all other mappings of
this BAR be required to match the specific prot, both providing
protection against broken drivers, and providing support for old X
servers which would directly map this BAR from user space.
> But it's already there. OK, if vmap patches go upstream, then it can
> be switched over and the export removed before the release...
I'd say we should leave things alone for .28 and work on making an
official IO mapping API available.
--
keith.packard@...el.com
Download attachment "signature.asc" of type "application/pgp-signature" (190 bytes)
Powered by blists - more mailing lists