]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pmem: Initialize pmem device on newer hardware
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Wed, 1 Jul 2020 07:22:35 +0000 (12:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:00:23 +0000 (13:00 +1000)
commitf0cdda346ae478c51c78e50917bca1a89f1c33db
treed25de724c701d72d41217ffab44d739e35f86c41
parentdd1b370c9d65d8f4407edab6ac925d5ba36f0709
powerpc/pmem: Initialize pmem device on newer hardware

With kernel now supporting new pmem flush/sync instructions, we can now
enable the kernel to initialize the device. On P10 these devices would
appear with a new compatible string. For PAPR device we have

compatible       "ibm,pmemory-v2"

and for OF pmem device we have

compatible       "pmem-region-v2"

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/20200701072235.223558-8-aneesh.kumar@linux.ibm.com
arch/powerpc/platforms/pseries/papr_scm.c
drivers/nvdimm/of_pmem.c