Skip to content

Commit 8c26ab7

Browse files
kvaneeshmpe
authored andcommitted
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
1 parent 436499a commit 8c26ab7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/powerpc/platforms/pseries/papr_scm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -876,6 +876,7 @@ static int papr_scm_remove(struct platform_device *pdev)
876876

877877
static const struct of_device_id papr_scm_match[] = {
878878
{ .compatible = "ibm,pmemory" },
879+
{ .compatible = "ibm,pmemory-v2" },
879880
{ },
880881
};
881882

drivers/nvdimm/of_pmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ static int of_pmem_region_remove(struct platform_device *pdev)
9090

9191
static const struct of_device_id of_pmem_region_match[] = {
9292
{ .compatible = "pmem-region" },
93+
{ .compatible = "pmem-region-v2" },
9394
{ },
9495
};
9596

0 commit comments

Comments
 (0)