]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/papr_scm: Don't enable direct map for a region by default
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 8 Jan 2020 06:46:47 +0000 (12:16 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 25 Jan 2020 13:11:32 +0000 (00:11 +1100)
commit26cfef1166d81977991479370a0f4fe93803db3f
tree3d05c31463aa42b442816fa0a448eea79624cda7
parent2179dcb1af09e31c740765f3cc9f86253ed37eac
powerpc/papr_scm: Don't enable direct map for a region by default

Setting ND_REGION_PAGEMAP flag implies namespace mode defaults to fsdax mode.
This also means kernel ends up creating struct page backing for these namspace
ranges. With large namespaces that is not the right thing to do. We
should let the user select the mode he/she wants the namespace to be created
with.

Hence disable ND_REGION_PAGEMAP for papr_scm regions. We still keep the flag for
of_pmem because it supports only small persistent memory regions.

This is similar to what is done for x86 with commit
commit: c99215c9de28 ("libnvdimm, pmem: direct map legacy pmem by default")

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200108064647.169637-1-aneesh.kumar@linux.ibm.com
arch/powerpc/platforms/pseries/papr_scm.c