]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/nvdimm: Add an informative message if we fail to allocate altmap block
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 1 Jul 2019 14:33:38 +0000 (20:03 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 4 Jul 2019 14:32:57 +0000 (00:32 +1000)
commit5ed0f130bfd7a7e2e8e60b08d9e35e60cfd17c60
tree69f203569c64c4fbefa6b90a5677a66571d7d7bf
parenta7c8ab7ce58a1355bfbe793ff8ad27a088eaf77d
powerpc/mm/nvdimm: Add an informative message if we fail to allocate altmap block

Allocation from altmap area can fail based on vmemmap page size used.
Add kernel info message to indicate the failure. That allows the user
to identify whether they are really using persistent memory reserved
space for per-page metadata.

The message looks like:
  [  136.587212] altmap block allocation failed, falling back to system memory

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/init_64.c