linux-sg2042/arch/tile/mm
Chris Metcalf 76c567fbba arch/tile: support 4KB page size as well as 64KB
The Tilera architecture traditionally supports 64KB page sizes
to improve TLB utilization and improve performance when the
hardware is being used primarily to run a single application.

For more generic server scenarios, it can be beneficial to run
with 4KB page sizes, so this commit allows that to be specified
(by modifying the arch/tile/include/hv/pagesize.h header).

As part of this change, we also re-worked the PTE management
slightly so that PTE writes all go through a __set_pte() function
where we can do some additional validation.  The set_pte_order()
function was eliminated since the "order" argument wasn't being used.

One bug uncovered was in the PCI DMA code, which wasn't properly
flushing the specified range.  This was benign with 64KB pages,
but with 4KB pages we were getting some larger flushes wrong.

The per-cpu memory reservation code also needed updating to
conform with the newer percpu stuff; before it always chose 64KB,
and that was always correct, but with 4KB granularity we now have
to pay closer attention and reserve the amount of memory that will
be requested when the percpu code starts allocating.

Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
2011-03-10 13:17:53 -05:00
..
Makefile arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
elf.c arch/tile: Miscellaneous cleanup changes. 2010-07-06 13:41:51 -04:00
extable.c arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
fault.c arch/tile: fix some comments and whitespace 2011-03-10 13:14:03 -05:00
highmem.c arch/tile: complete migration to new kmap_atomic scheme 2010-11-01 15:30:36 -04:00
homecache.c arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
hugetlbpage.c BKL: remove extraneous #include <smp_lock.h> 2010-11-17 08:59:32 -08:00
init.c arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
migrate.h arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
migrate_32.S arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00
mmap.c arch/tile: core support for Tilera 32-bit chips. 2010-06-04 17:11:18 -04:00
pgtable.c arch/tile: support 4KB page size as well as 64KB 2011-03-10 13:17:53 -05:00