linux-stable-rt/arch/sh/mm
Paul Mundt 185aed7557 sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB.
With the PMB enabled, only P1SEG and up are covered by the PMB mappings,
meaning that situations where out-of-bounds physical addresses are read
from will lead to TLB reset after the PMB miss, allowing for use cases
like dd if=/dev/mem to reset the TLB.

Fix this up to make sure the reference is between __MEMORY_START (phys)
and __pa(high_memory). This is coherent across all variants of sh/sh64
with and without MMU, though the PMB bug itself is only applicable to
SH-4A parts.

Reported-by: Hideo Saito <saito@densan.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
2008-11-12 12:53:48 +09:00
..
Kconfig sh: Make memory hot-add and hot-remove depend on MMU. 2008-09-17 23:13:27 +09:00
Makefile
Makefile_32 sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB. 2008-11-12 12:53:48 +09:00
Makefile_64 sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB. 2008-11-12 12:53:48 +09:00
cache-debugfs.c Fix debugfs_create_file's error checking method for arch/sh/mm/ 2008-10-20 10:40:21 +09:00
cache-sh2.c SH2(A) cache update 2008-08-04 16:33:47 +09:00
cache-sh2a.c sh: fix sh2a cache entry_mask 2008-10-31 16:29:20 +09:00
cache-sh3.c
cache-sh4.c sh: uninline flush_icache_all(). 2008-09-08 10:35:06 +09:00
cache-sh5.c sh64: Fixup the nommu build. 2008-05-08 19:51:37 +09:00
cache-sh7705.c
consistent.c sh: remove consistent alloc cruft 2008-10-20 11:38:44 +09:00
extable_32.c
extable_64.c
fault_32.c sh: Trivial trace_mark() instrumentation for core events. 2008-09-21 13:56:39 +09:00
fault_64.c sh: migrate to arch/sh/include/ 2008-07-29 08:09:44 +09:00
hugetlbpage.c hugetlb: introduce pud_huge 2008-07-24 10:47:18 -07:00
init.c sh: Handle fixmap TLB eviction more coherently. 2008-11-10 20:00:45 +09:00
ioremap_32.c
ioremap_64.c sh64: export onchip_remap/unmap() too. 2008-05-08 19:51:41 +09:00
mmap.c sh: Provide a sane valid_phys_addr_range() to prevent TLB reset with PMB. 2008-11-12 12:53:48 +09:00
numa.c mm: move bootmem descriptors definition to a single place 2008-07-24 10:47:14 -07:00
pg-nommu.c sh: fixup many sparse errors. 2008-09-08 10:35:04 +09:00
pg-sh4.c sh: Handle fixmap TLB eviction more coherently. 2008-11-10 20:00:45 +09:00
pg-sh7705.c fix sh ptep_get_and_clear breakage 2008-07-28 18:10:35 +09:00
pmb.c Fix debugfs_create_file's error checking method for arch/sh/mm/ 2008-10-20 10:40:21 +09:00
tlb-nommu.c sh: fixup many sparse errors. 2008-09-08 10:35:04 +09:00
tlb-sh3.c
tlb-sh4.c
tlb-sh5.c sh: Fix up broken kerneldoc comments. 2008-08-04 12:51:06 +09:00
tlbflush_32.c
tlbflush_64.c