1. 07 8月, 2014 1 次提交
  2. 03 8月, 2014 5 次提交
  3. 02 8月, 2014 9 次提交
  4. 01 8月, 2014 1 次提交
  5. 31 7月, 2014 12 次提交
  6. 30 7月, 2014 11 次提交
  7. 29 7月, 2014 1 次提交
    • K
      ARM: 8115/1: LPAE: reduce damage caused by idmap to virtual memory layout · 811a2407
      Konstantin Khlebnikov 提交于
      On LPAE, each level 1 (pgd) page table entry maps 1GiB, and the level 2
      (pmd) entries map 2MiB.
      
      When the identity mapping is created on LPAE, the pgd pointers are copied
      from the swapper_pg_dir.  If we find that we need to modify the contents
      of a pmd, we allocate a new empty pmd table and insert it into the
      appropriate 1GB slot, before then filling it with the identity mapping.
      
      However, if the 1GB slot covers the kernel lowmem mappings, we obliterate
      those mappings.
      
      When replacing a PMD, first copy the old PMD contents to the new PMD, so
      that we preserve the existing mappings, particularly the mappings of the
      kernel itself.
      
      [rewrote commit message and added code comment -- rmk]
      
      Fixes: ae2de101 ("ARM: LPAE: Add identity mapping support for the 3-level page table format")
      Signed-off-by: NKonstantin Khlebnikov <k.khlebnikov@samsung.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      811a2407