alistair23-linux/arch/powerpc
Aneesh Kumar K.V 2d566537dd powerpc/mm/subpage: Initialise user psize correctly
As part of the radix support we switched Book3s64 to use a value of ~0
for MMU_NO_CONTEXT. That is because id 0 is special on radix.

However that broke the logic in init_new_context(). The code there needs
to differentiate between a newly allocated context and one inherited via
fork. Previously it worked because a newly allocated context has an id
of zero (because it was just memset() to zero), which used to match
MMU_NO_CONTEXT, and therefore slice_mm_new_context() did the right
thing.

Instead check against a context.id value of zero instead of using
slice_mm_new_context().

Without this patch we never call slice_set_user_psize(), and end up with
a slice psize value of zero and we always end up using 4K HPTE.

Fixes: 1a472c9dba ("powerpc/mm/radix: Add tlbflush routines")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-05-11 21:53:59 +10:00
..
boot powerpc/fsl/dts: Add "jedec,spi-nor" flash compatible 2016-03-11 20:06:41 -06:00
configs powerpc updates for 4.6 2016-03-19 15:38:41 -07:00
crypto powerpc updates for 4.6 2016-03-19 15:38:41 -07:00
include powerpc/mm/radix: Document software bits for radix 2016-05-11 21:53:58 +10:00
kernel powerpc/mm/radix: Fix CONFIG_PPC_MMU_STD_64 typo 2016-05-11 21:53:59 +10:00
kvm powerpc/mm/hash: Add support for Power9 Hash 2016-05-01 18:32:40 +10:00
lib powerpc: rework sparse for lib/xor_vmx.c 2016-04-27 09:33:37 +10:00
math-emu
mm powerpc/mm/subpage: Initialise user psize correctly 2016-05-11 21:53:59 +10:00
net
oprofile
perf powerpc/mm: Use pte_user() instead of open coding 2016-05-01 18:32:25 +10:00
platforms powerpc/mm/radix: Add THP support for 4K linux page size 2016-05-11 21:53:58 +10:00
scripts
sysdev powerpc/mpic: handle subsys_system_register() failure 2016-04-27 09:23:41 +10:00
xmon powerpc/mm/radix: Use STD_MMU_64 to properly isolate hash related code 2016-05-11 21:53:45 +10:00
Kconfig powerpc/perf: Add support for sampling interrupt register state 2016-04-21 23:32:59 +10:00
Kconfig.debug powerpc/mm: Always use STRICT_MM_TYPECHECKS 2016-05-01 18:32:14 +10:00
Makefile Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux into next 2016-03-14 20:05:14 +11:00
relocs_check.sh