1. 13 10月, 2006 2 次提交
    • L
      Include proper header file for PFN_DOWN() · b8a3ad5b
      Linus Torvalds 提交于
      The recent commit (99a10a60) to fix up
      mmap_kmem() broke compiles because it used PFN_DOWN() without including
      <linux/pfn.h>.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b8a3ad5b
    • F
      [PATCH] Fix up mmap_kmem · 99a10a60
      Franck Bui-Huu 提交于
      vma->vm_pgoff is an pfn _offset_ relatif to the begining
      of the memory start. The previous code was doing at first:
      
      	vma->vm_pgoff << PAGE_SHIFT
      
      which results into a wrong physical address since some
      platforms have a physical mem start that can be different
      from 0. After that the previous call __pa() on this
      wrong physical address, however __pa() is used to convert
      a _virtual_ address into a physical one.
      
      This patch rewrites this convertion. It calculates the
      pfn of PAGE_OFFSET which is the pfn of the mem start
      then it adds the vma->vm_pgoff to it.
      
      It also uses virt_to_phys() instead of __pa() since the
      latter shouldn't be used by drivers.
      Signed-off-by: NFranck Bui-Huu <fbuihuu@gmail.com>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      99a10a60
  2. 30 9月, 2006 1 次提交
  3. 27 9月, 2006 1 次提交
  4. 11 7月, 2006 1 次提交
    • L
      [PATCH] make valid_mmap_phys_addr_range() take a pfn · 06c67bef
      Lennert Buytenhek 提交于
      Newer ARMs have a 40 bit physical address space, but mapping physical
      memory above 4G needs a special page table format which we (currently?) do
      not use for userspace mappings, so what happens instead is that mapping an
      address >= 4G will happily discard the upper bits and wrap.
      
      There is a valid_mmap_phys_addr_range() arch hook where we could check for
      >= 4G addresses and deny the mapping, but this hook takes an unsigned long
      address:
      
      	static inline int valid_mmap_phys_addr_range(unsigned long addr, size_t size);
      
      And drivers/char/mem.c:mmap_mem() calls it like this:
      
      	static int mmap_mem(struct file * file, struct vm_area_struct * vma)
      	{
      		size_t size = vma->vm_end - vma->vm_start;
      
      		if (!valid_mmap_phys_addr_range(vma->vm_pgoff << PAGE_SHIFT, size))
      
      So that's not much help either.
      
      This patch makes the hook take a pfn instead of a phys address.
      Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      06c67bef
  5. 04 7月, 2006 1 次提交
  6. 01 7月, 2006 1 次提交
  7. 27 6月, 2006 2 次提交
  8. 26 4月, 2006 1 次提交
  9. 29 3月, 2006 1 次提交
  10. 27 3月, 2006 1 次提交
  11. 26 3月, 2006 1 次提交
  12. 12 1月, 2006 1 次提交
  13. 10 1月, 2006 1 次提交
  14. 09 1月, 2006 3 次提交
  15. 29 11月, 2005 1 次提交
    • L
      mm: re-architect the VM_UNPAGED logic · 6aab341e
      Linus Torvalds 提交于
      This replaces the (in my opinion horrible) VM_UNMAPPED logic with very
      explicit support for a "remapped page range" aka VM_PFNMAP.  It allows a
      VM area to contain an arbitrary range of page table entries that the VM
      never touches, and never considers to be normal pages.
      
      Any user of "remap_pfn_range()" automatically gets this new
      functionality, and doesn't even have to mark the pages reserved or
      indeed mark them any other way.  It just works.  As a side effect, doing
      mmap() on /dev/mem works for arbitrary ranges.
      
      Sparc update from David in the next commit.
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      6aab341e
  16. 23 11月, 2005 1 次提交
  17. 29 10月, 2005 2 次提交
  18. 08 9月, 2005 1 次提交
  19. 14 8月, 2005 1 次提交
    • L
      Fix up mmap of /dev/kmem · 4bb82551
      Linus Torvalds 提交于
      This leaves the issue of whether we should deprecate the whole thing (or
      if we should check the whole mmap range, for that matter) open. Just do
      the minimal fix for now.
      4bb82551
  20. 26 6月, 2005 3 次提交
  21. 22 6月, 2005 1 次提交
  22. 21 6月, 2005 1 次提交
  23. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4