Re: [git pull] drm patches for 2.6.27-rc1

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Keith Packard
Date: Saturday, October 18, 2008 - 12:11 pm

On Sat, 2008-10-18 at 12:37 +1100, Nick Piggin wrote:


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,=20
                                           int bar,=20
                                           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.


I'd say we should leave things alone for .28 and work on making an
official IO mapping API available.

--=20
keith.packard@intel.com
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[git pull] drm patches for 2.6.27-rc1, Dave Airlie, (Fri Oct 17, 2:29 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Linus Torvalds, (Fri Oct 17, 3:43 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Nick Piggin, (Fri Oct 17, 6:37 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Eric Anholt, (Fri Oct 17, 7:10 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Linus Torvalds, (Fri Oct 17, 7:47 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Fri Oct 17, 8:49 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Corbin Simpson, (Fri Oct 17, 11:44 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Eric Anholt, (Sat Oct 18, 12:49 am)
Re: [git pull] drm patches for 2.6.27-rc1, Dave Airlie, (Sat Oct 18, 2:11 am)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 12:11 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Linus Torvalds, (Sat Oct 18, 12:31 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Thomas Hellström, (Sat Oct 18, 1:07 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 1:20 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Ingo Molnar, (Sat Oct 18, 1:37 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 2:51 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Ingo Molnar, (Sat Oct 18, 3:32 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Jon Smirl, (Sat Oct 18, 3:47 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Linus Torvalds, (Sat Oct 18, 3:53 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 5:38 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Arjan van de Ven, (Sat Oct 18, 6:06 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 6:15 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Nick Piggin, (Sat Oct 18, 8:14 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 9:14 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Yinghai Lu, (Sat Oct 18, 9:28 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Keith Packard, (Sat Oct 18, 11:41 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Peter Zijlstra, (Sun Oct 19, 10:52 am)
Re: io resources and cached mappings (was: [git pull] drm ..., Arjan van de Ven, (Sun Oct 19, 11:00 am)
Re: [git pull] drm patches for 2.6.27-rc1, Steven J Newbury, (Sun Oct 19, 9:17 pm)
Re: [git pull] drm patches for 2.6.27-rc1, Ingo Molnar, (Mon Oct 20, 3:01 am)
Re: [git pull] drm patches for 2.6.27-rc1, Linus Torvalds, (Mon Oct 20, 9:31 am)
Re: [git pull] drm patches for 2.6.27-rc1, Jesse Barnes, (Mon Oct 20, 1:04 pm)
Re: Adding kmap_atomic_prot_pfn (was: [git pull] drm patc ..., Benjamin Herrenschmidt, (Thu Oct 23, 8:21 pm)
Re: Adding kmap_atomic_prot_pfn (was: [git pull] drm patc ..., Benjamin Herrenschmidt, (Thu Oct 23, 8:24 pm)
Re: Adding kmap_atomic_prot_pfn , Thomas Hellström, (Fri Oct 24, 12:33 am)
Re: Adding kmap_atomic_prot_pfn, Ingo Molnar, (Fri Oct 24, 1:38 am)
Re: Adding kmap_atomic_prot_pfn, Thomas Hellström, (Fri Oct 24, 2:19 am)
Re: Adding kmap_atomic_prot_pfn, Ingo Molnar, (Fri Oct 24, 2:32 am)
Re: Adding kmap_atomic_prot_pfn, Thomas Hellström, (Fri Oct 24, 3:18 am)
Re: Adding kmap_atomic_prot_pfn, Thomas Hellström, (Fri Oct 24, 4:04 am)
Re: Adding kmap_atomic_prot_pfn, Keith Packard, (Fri Oct 24, 8:48 am)
[git pull] IO mappings, #2, Ingo Molnar, (Mon Nov 3, 10:29 am)
Re: [git pull] IO mappings, #2, Jonathan Corbet, (Tue Nov 4, 3:36 pm)
Re: [git pull] IO mappings, #2, Ingo Molnar, (Wed Nov 5, 2:01 am)