aha/arch
Suresh Siddha 5a3ae27605 x86, PAT: Remove duplicate memtype reserve in pci mmap
pci mmap code was doing memtype reserve for a while now. Recently we
added memtype tracking in remap_pfn_range, and pci code indirectly calls
remap_pfn_range. So, we don't need seperate tracking in pci code
anymore. Which means a patch that removes ~50 lines of code :-).

Also, recently we found out that the pci tracking is not working as we expect
it to work in some cases. Specifically, userlevel X mmap of pci, with some
recent version of X, is having a problem with vm_page_prot getting reset.
The pci tracking uses vm_page_prot to pass on the protection type from parent
to child during fork.
a) Parent does a pci mmap
b) We look at PAT and get either UC_MINUS or WC mapping for parent
c) Store that mapping type in vma vm_page_prot for future use
d) This thread does a fork
e) Fork results in mmap_ops ->open for the child process
f) We get the vm_page_prot from vma and reserve that type for the child process

But, between c) and e) above, the vma vm_page_prot is getting reset to zero.
This results in PAT reserve failing at the time of fork as in here.
http://marc.info/?l=linux-kernel&m=123858163103240&w=2

This cleanup makes the above problem go away as we do not depend on
vm_page_prot in our PAT code anymore.

Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-04-03 14:43:29 -07:00
..
alpha Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
arm Merge master.kernel.org:/home/rmk/linux-2.6-arm 2009-04-03 09:05:40 -07:00
avr32 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
blackfin Simplify copy_thread() 2009-04-02 19:04:51 -07:00
cris Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs-2.6 2009-04-02 21:09:10 -07:00
frv Simplify copy_thread() 2009-04-02 19:04:51 -07:00
h8300 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
ia64 ia64: implement interrupt-enabling rwlocks 2009-04-02 19:05:11 -07:00
m32r Simplify copy_thread() 2009-04-02 19:04:51 -07:00
m68k Merge git://git.kernel.org/pub/scm/linux/kernel/git/kyle/rtc-parisc 2009-04-03 09:51:35 -07:00
m68knommu Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu 2009-04-03 09:44:58 -07:00
mips Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
mn10300 Simplify copy_thread() 2009-04-02 19:04:51 -07:00
parisc Merge git://git.kernel.org/pub/scm/linux/kernel/git/kyle/parisc-2.6 2009-04-03 09:52:04 -07:00
powerpc Merge git://git.kernel.org/pub/scm/linux/kernel/git/kyle/rtc-parisc 2009-04-03 09:51:35 -07:00
s390 Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
sh Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
sparc Allow rwlocks to re-enable interrupts 2009-04-02 19:05:11 -07:00
um Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/linux-hdreg-h-cleanup 2009-04-03 09:02:32 -07:00
x86 x86, PAT: Remove duplicate memtype reserve in pci mmap 2009-04-03 14:43:29 -07:00
xtensa Simplify copy_thread() 2009-04-02 19:04:51 -07:00
.gitignore
Kconfig dma-debug: add Kconfig entry 2009-03-05 14:36:50 +01:00