]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: highmem: ensure that we don't use more than one page for PTEs
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>
Tue, 11 Apr 2017 07:00:35 +0000 (09:00 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 8 Jun 2017 12:51:58 +0000 (14:51 +0200)
commiteebe2309197be1922c694951538c4082b05623b6
treebb94b125734012fa17524611a8e246479c44d8d9
parent7a3994ca498368632e9e3f5e1866a6c8518bbcc6
MIPS: highmem: ensure that we don't use more than one page for PTEs

All PTEs used by PKMAP should be allocated in a contiguous memory area,
but we do not currently have a mechanism to enforce that, so ensure that
we don't try to allocate more entries than would fit in a single page.

Current fixed value of 1024 would not work with XPA enabled when
sizeof(pte_t)==8 and we need two pages to store pte tables.

Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/15949/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/highmem.h