Skip to contentSkip to conversation

libnvdimm: Add of_node to region and bus descriptors

PATCH RESEND Superseded Oliver O'Halloran 8 participants 19 messages Apr 3, 2018 – Apr 6, 2018 11 messages not in the archive

Subsystems (4)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#2 lore raw

PATCH RESEND v2 3/4 doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt
Documentation/devicetree/bindings/pmem/pmem-region.txt new file +80 -0
new file mode 100644
index 000000000000..de48dc8cd562
@@ -0,0 +1,80 @@
+Device-tree bindings for persistent memory regions
+-----------------------------------------------------
+
+Persistent memory refers to a class of memory devices that are:
+
+	a) Usable as main system memory (i.e. cacheable), and
+	b) Retain their contents across power failure.
+
+Given b) it is best to think of persistent memory as a kind of memory mapped
+storage device. To ensure data integrity the operating system needs to manage
+persistent regions separately to the normal memory pool. To aid with that this
+binding provides a standardised interface for discovering where persistent
+memory regions exist inside the physical address space.
+
+Bindings for the region nodes:
+-----------------------------
+
+Required properties:
+	- compatible = "pmem-region"
+
+	- reg = <base, size>;
+		The system physical address range of this nvdimm region.
+
+		If the reg property contains multiple address ranges
+		each address range will be treated as though it was specified
+		in a separate device node. Having multiple address ranges in a
+		node implies no special relationship between the two ranges.
+
+Optional properties:
+	- Any relevant NUMA assocativity properties for the target platform.
+
+	- A "volatile" property indicating that this region is actually in
+	  normal DRAM and does not require cache flushes after each write.
+
+	  If this property is absent then the OS must assume that the region
+	  is backed by non-volatile memory.
+
+A complete example:
+--------------------
+
+Here we define three 4KB regions:
+
+	a) A volatile region at 0x5000 on numa node 0,
+	b) A non-volatile region at 0x6000, and
+	c) A non-volatile region at 0x8000.
+
+/dts-v1/;
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	platform {
+		compatible = "simple-bus";
+		#address-cells = <1>;
+		#size-cells = <1>;
+		ranges;
+
+		/*
+		 * This node specifies one non-volatile region spanning from
+		 * 0x5000 to 0x5fff.
+		 */
+		pmem@5000 {
+			compatible = "pmem-region";
+			reg = <0x00005000 0x00001000>;
+			numa-node-id = <0>;
+			volatile;
+		};
+
+		/*
+		 * This node specifies two 4KB regions that are backed by
+		 * volatile (normal) memory.
+		 */
+		pmem@6000 {
+			compatible = "pmem-region";
+			reg = <0x00006000 0x00001000 0x00008000 0x00001000>;
+		};
+	};
+};
+
MAINTAINERS +1 -0
index 6ef38be700e8..fa3c9211d6ff 100644
@@ -8041,6 +8041,7 @@ L:	[email protected]
 Q:	https://patchwork.kernel.org/project/linux-nvdimm/list/
 S:	Supported
 F:	drivers/nvdimm/of_pmem.c
+F:	Documentation/devicetree/bindings/pmem/pmem-region.txt
 
 LIBNVDIMM: NON-VOLATILE MEMORY DEVICE SUBSYSTEM
 M:	Dan Williams <[email protected]>
Signature · 1 line
2.9.5

Oliver O'Halloran

author maintainer
#0 lore raw

PATCH RESEND v2 1/4 libnvdimm: Add of_node to region and bus descriptors

We want to be able to cross reference the region and bus devices with the device tree node that they were spawned from. libNVDIMM handles creating the actual devices for these internally, so we need to pass in a pointer to the relevant node in the descriptor.

---
 drivers/nvdimm/bus.c         | 1 +
 drivers/nvdimm/region_devs.c | 1 +
 include/linux/libnvdimm.h    | 3 +++
 3 files changed, 5 insertions(+)
drivers/nvdimm/bus.c +1 -0
index 78eabc3a1ab1..c6106914f396 100644
@@ -358,6 +358,7 @@ struct nvdimm_bus *nvdimm_bus_register(struct device *parent,
 	nvdimm_bus->dev.release = nvdimm_bus_release;
 	nvdimm_bus->dev.groups = nd_desc->attr_groups;
 	nvdimm_bus->dev.bus = &nvdimm_bus_type;
+	nvdimm_bus->dev.of_node = nd_desc->of_node;
 	dev_set_name(&nvdimm_bus->dev, "ndbus%d", nvdimm_bus->id);
 	rc = device_register(&nvdimm_bus->dev);
 	if (rc) {
drivers/nvdimm/region_devs.c +1 -0
index e6d01911e092..2f1d5771100e 100644
@@ -1005,6 +1005,7 @@ static struct nd_region *nd_region_create(struct nvdimm_bus *nvdimm_bus,
 	dev->parent = &nvdimm_bus->dev;
 	dev->type = dev_type;
 	dev->groups = ndr_desc->attr_groups;
+	dev->of_node = ndr_desc->of_node;
 	nd_region->ndr_size = resource_size(ndr_desc->res);
 	nd_region->ndr_start = ndr_desc->res->start;
 	nd_device_register(dev);
include/linux/libnvdimm.h +3 -0
index ff855ed965fb..f61cb5050297 100644
@@ -76,12 +76,14 @@ typedef int (*ndctl_fn)(struct nvdimm_bus_descriptor *nd_desc,
 		struct nvdimm *nvdimm, unsigned int cmd, void *buf,
 		unsigned int buf_len, int *cmd_rc);
 
+struct device_node;
 struct nvdimm_bus_descriptor {
 	const struct attribute_group **attr_groups;
 	unsigned long bus_dsm_mask;
 	unsigned long cmd_mask;
 	struct module *module;
 	char *provider_name;
+	struct device_node *of_node;
 	ndctl_fn ndctl;
 	int (*flush_probe)(struct nvdimm_bus_descriptor *nd_desc);
 	int (*clear_to_send)(struct nvdimm_bus_descriptor *nd_desc,
@@ -123,6 +125,7 @@ struct nd_region_desc {
 	int num_lanes;
 	int numa_node;
 	unsigned long flags;
+	struct device_node *of_node;
 };
 
 struct device;
Signature · 6 lines
2.9.5

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
author maintainer
#25 lore raw

PATCH RESEND v2 2/4 libnvdimm: Add device-tree based driver

This patch adds peliminary device-tree bindings for persistent memory regions. The driver registers a libnvdimm bus for each pmem-region node and each address range under the node is converted to a region within that bus.

---
v2: Made each bus have a separate node rather having a shared bus.
Renamed to of_pmem rather than of_nvdimm.
Changed log level of happy-path messages to debug.

---
 MAINTAINERS              |   7 +++
 drivers/nvdimm/Kconfig   |  10 ++++
 drivers/nvdimm/Makefile  |   1 +
 drivers/nvdimm/of_pmem.c | 119 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 137 insertions(+)
 create mode 100644 drivers/nvdimm/of_pmem.c
MAINTAINERS +7 -0
index 4e62756936fa..6ef38be700e8 100644
@@ -8035,6 +8035,13 @@ Q:	https://patchwork.kernel.org/project/linux-nvdimm/list/
 S:	Supported
 F:	drivers/nvdimm/pmem*
 
+LIBNVDIMM: DEVICETREE BINDINGS
+M:	Oliver O'Halloran <[email protected]>
+L:	[email protected]
+Q:	https://patchwork.kernel.org/project/linux-nvdimm/list/
+S:	Supported
+F:	drivers/nvdimm/of_pmem.c
+
 LIBNVDIMM: NON-VOLATILE MEMORY DEVICE SUBSYSTEM
 M:	Dan Williams <[email protected]>
 L:	[email protected]
drivers/nvdimm/Kconfig +10 -0
index a65f2e1d9f53..2d6862bf7436 100644
@@ -102,4 +102,14 @@ config NVDIMM_DAX
 
 	  Select Y if unsure
 
+config OF_PMEM
+	tristate "Device-tree support for persistent memory regions"
+	depends on OF
+	default LIBNVDIMM
+	help
+	  Allows regions of persistent memory to be described in the
+	  device-tree.
+
+	  Select Y if unsure.
+
 endif
drivers/nvdimm/Makefile +1 -0
index 70d5f3ad9909..e8847045dac0 100644
@@ -4,6 +4,7 @@ obj-$(CONFIG_BLK_DEV_PMEM) += nd_pmem.o
 obj-$(CONFIG_ND_BTT) += nd_btt.o
 obj-$(CONFIG_ND_BLK) += nd_blk.o
 obj-$(CONFIG_X86_PMEM_LEGACY) += nd_e820.o
+obj-$(CONFIG_OF_PMEM) += of_pmem.o
 
 nd_pmem-y := pmem.o
 
drivers/nvdimm/of_pmem.c new file +119 -0

119 lines not on this page · raw message

Signature · 6 lines
2.9.5

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
author maintainer
#27 lore raw

PATCH RESEND v2 4/4 powerpc/powernv: Create platform devs for nvdimm buses

In reply to Oliver O'Halloran

Scan the devicetree for an nvdimm-bus compatible and create a platform device for them.

---
 arch/powerpc/platforms/powernv/opal.c | 3 +++
 1 file changed, 3 insertions(+)
arch/powerpc/platforms/powernv/opal.c +3 -0
index c15182765ff5..c37485a3c5c9 100644
@@ -821,6 +821,9 @@ static int __init opal_init(void)
 	/* Create i2c platform devices */
 	opal_pdev_init("ibm,opal-i2c");
 
+	/* Handle non-volatile memory devices */
+	opal_pdev_init("pmem-region");
+
 	/* Setup a heatbeat thread if requested by OPAL */
 	opal_init_heartbeat();
 
Signature · 6 lines
2.9.5

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm
#26 lore raw

Re: [RESEND v2 2/4] libnvdimm: Add device-tree based driver

In reply to Oliver O'Halloran
Quoted 11 lines · Oliver O'Halloran

This patch adds peliminary device-tree bindings for persistent memory regions. The driver registers a libnvdimm bus for each pmem-region node and each address range under the node is converted to a region within that bus.

---
v2: Made each bus have a separate node rather having a shared bus.
Renamed to of_pmem rather than of_nvdimm.
Changed log level of happy-path messages to debug.
---

[..]

drivers/nvdimm/of_pmem.c line 114

Quoted 9 lines
drivers/nvdimm/of_pmem.c new file +9 -0
+static struct platform_driver of_nd_region_driver = {
+       .probe = of_nd_region_probe,
+       .remove = of_nd_region_remove,
+       .driver = {
+               .name = "of_pmem",
+               .owner = THIS_MODULE,
+               .of_match_table = of_nd_region_match,
+       },
+};

This and the other patches look good to me. Just a nit on the naming... since you name the regions pmem-regions in the device-tree description shouldn't this be the "of_pmem_region" or "of_pmem_range" driver? Otherwise, it is confusing to me that anything named *nd_region would be creating an nvdimm_bus. In general An nd_region is always a child of a bus.

That said, with an ack/reviewed-by on the device-tree bindings I can take these through the nvdimm tree. I'll reply to patch 4 with that request for ack.
_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

#4 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 8 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

Quoted 5 lines
---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

Acked-by on v2 1/4
#29 lore raw
In reply to Oliver O'Halloran
Quoted 8 lines · On Wed, 4 Apr 2018 00:24:12 +1000 Oliver O'Halloran <[email protected]> wrote:

We want to be able to cross reference the region and bus devices with the device tree node that they were spawned from. libNVDIMM handles creating the actual devices for these internally, so we need to pass in a pointer to the relevant node in the descriptor.

---

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

#6 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 15 lines · On Tue, 3 Apr 2018 10:37:51 -0700 Dan Williams…
Quoted 8 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

Quoted 5 lines
---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt  
Quoted 6 lines

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

We would need a way to have nmem and pmem-regions find each other. Since we don't have the ACPI abstractions, the nmem region would need to add the ability for a driver to have a phandle to the interleaving and nmem properties.

I guess that would be a separate driver, that would manage the nmem devices and there would be a way to relate the pmem and nmems. Oliver?

Balbir Singh.

Acked-by on v2 4/4
#28 lore raw

Re: [RESEND v2 4/4] powerpc/powernv: Create platform devs for nvdimm buses

In reply to Oliver O'Halloran
Quoted 5 lines · On Wed, 4 Apr 2018 00:24:15 +1000 Oliver O'Halloran <[email protected]> wrote:

Scan the devicetree for an nvdimm-bus compatible and create a platform device for them.

---

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

#8 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 18 lines · Balbir Singh
Quoted 15 lines · On Tue, 3 Apr 2018 10:37:51 -0700 Dan Williams…
Quoted 13 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt
Quoted 6 lines
Quoted 6 lines

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

It's something I'm planning on implementing as soon as someone gives me some hardware that isn't hacked up lab crap. I'm posting this version with just regions since people have been asking for something in upstream even if it's not fully featured.

Grumbling aside, the plan is to have separate drivers for the DIMM type. Discovering DIMM devices happens via the normal discovery mechanisms (e.g. an NVDIMM supporting the JEDEC interface is an I2C device) and when binding to a specific DIMM device it registers a DIMM descriptor structure and a ndctl implementation for that DIMM type with of_pmem. When of_pmem binds to a region it can plug everything into the region specific bus. There's a few details to work out, but I think it's a reasonable approach.

Quoted 6 lines

We would need a way to have nmem and pmem-regions find each other. Since we don't have the ACPI abstractions, the nmem region would need to add the ability for a driver to have a phandle to the interleaving and nmem properties.

I guess that would be a separate driver, that would manage the nmem devices and there would be a way to relate the pmem and nmems. Oliver?

Yes, that's the plan.

#10 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 31 lines · Oliver
Quoted 18 lines · Balbir Singh
Quoted 15 lines · On Tue, 3 Apr 2018 10:37:51 -0700 Dan Williams…
Quoted 13 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt
Quoted 6 lines
Quoted 6 lines

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

It's something I'm planning on implementing as soon as someone gives me some hardware that isn't hacked up lab crap. I'm posting this version with just regions since people have been asking for something in upstream even if it's not fully featured.

Quoted 8 lines

Grumbling aside, the plan is to have separate drivers for the DIMM type. Discovering DIMM devices happens via the normal discovery mechanisms (e.g. an NVDIMM supporting the JEDEC interface is an I2C device) and when binding to a specific DIMM device it registers a DIMM descriptor structure and a ndctl implementation for that DIMM type with of_pmem. When of_pmem binds to a region it can plug everything into the region specific bus. There's a few details to work out, but I think it's a reasonable approach.

Yeah, that sounds reasonable. It would mean that your management interface would need to understand that nmems on different buses could potentially move to another bus after a reconfiguration, but that's not too much different than the ACPI case where nmems can join and leave regions after a reset / reconfig.

Quoted 8 lines
Quoted 6 lines

We would need a way to have nmem and pmem-regions find each other. Since we don't have the ACPI abstractions, the nmem region would need to add the ability for a driver to have a phandle to the interleaving and nmem properties.

I guess that would be a separate driver, that would manage the nmem devices and there would be a way to relate the pmem and nmems. Oliver?

Yes, that's the plan.

So Balbir, is that enough for an Acked-by for this device-tree proposal?

#12 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 51 lines · On Wed, 4 Apr 2018 07:21:32 -0700 Dan Williams…
Quoted 31 lines · Oliver
Quoted 18 lines · Balbir Singh
Quoted 15 lines · On Tue, 3 Apr 2018 10:37:51 -0700 Dan Williams…
Quoted 13 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt  
Quoted 6 lines
Quoted 6 lines

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

It's something I'm planning on implementing as soon as someone gives me some hardware that isn't hacked up lab crap. I'm posting this version with just regions since people have been asking for something in upstream even if it's not fully featured.

Quoted 8 lines

Grumbling aside, the plan is to have separate drivers for the DIMM type. Discovering DIMM devices happens via the normal discovery mechanisms (e.g. an NVDIMM supporting the JEDEC interface is an I2C device) and when binding to a specific DIMM device it registers a DIMM descriptor structure and a ndctl implementation for that DIMM type with of_pmem. When of_pmem binds to a region it can plug everything into the region specific bus. There's a few details to work out, but I think it's a reasonable approach.

Yeah, that sounds reasonable. It would mean that your management interface would need to understand that nmems on different buses could potentially move to another bus after a reconfiguration, but that's not too much different than the ACPI case where nmems can join and leave regions after a reset / reconfig.

Quoted 4 lines
Quoted 4 lines

We would need a way to have nmem and pmem-regions find each other. Since we don't have the ACPI abstractions, the nmem region would need to add the ability for a driver to have a phandle to the interleaving and nmem properties.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I guess that would be a separate driver, that would manage the nmem devices and there would be a way to relate the pmem and nmems. Oliver?

Yes, that's the plan.

So Balbir, is that enough for an Acked-by for this device-tree proposal?

I don't see any major problems with the binding, but I think Oliver wanted to send in a few clarifications based on a private discussion.

Balbir Singh.

#13 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 51 lines · Dan Williams
Quoted 31 lines · Oliver
Quoted 18 lines · Balbir Singh
Quoted 15 lines · On Tue, 3 Apr 2018 10:37:51 -0700 Dan Williams…
Quoted 13 lines · Oliver O'Halloran

Add device-tree binding documentation for the nvdimm region driver.

---
v2: Changed name from nvdimm-region to pmem-region.
Cleaned up the example binding and fixed the overlapping regions. Added support for multiple regions in a single reg.

---
 .../devicetree/bindings/pmem/pmem-region.txt       | 80 ++++++++++++++++++++++
 MAINTAINERS                                        |  1 +
 2 files changed, 81 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/pmem/pmem-region.txt
Quoted 6 lines
Quoted 6 lines

Device-tree folks, does this look, ok?

Oliver, is there any concept of a management interface to the device(s) backing these regions? libnvdimm calls these "nmem" devices and support operations like health status and namespace label management.

It's something I'm planning on implementing as soon as someone gives me some hardware that isn't hacked up lab crap. I'm posting this version with just regions since people have been asking for something in upstream even if it's not fully featured.

Quoted 8 lines

Grumbling aside, the plan is to have separate drivers for the DIMM type. Discovering DIMM devices happens via the normal discovery mechanisms (e.g. an NVDIMM supporting the JEDEC interface is an I2C device) and when binding to a specific DIMM device it registers a DIMM descriptor structure and a ndctl implementation for that DIMM type with of_pmem. When of_pmem binds to a region it can plug everything into the region specific bus. There's a few details to work out, but I think it's a reasonable approach.

Yeah, that sounds reasonable. It would mean that your management interface would need to understand that nmems on different buses could potentially move to another bus after a reconfiguration, but that's not too much different than the ACPI case where nmems can join and leave regions after a reset / reconfig.

Quoted 4 lines
Quoted 4 lines

We would need a way to have nmem and pmem-regions find each other. Since we don't have the ACPI abstractions, the nmem region would need to add the ability for a driver to have a phandle to the interleaving and nmem properties.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

I guess that would be a separate driver, that would manage the nmem devices and there would be a way to relate the pmem and nmems. Oliver?

Yes, that's the plan.

So Balbir, is that enough for an Acked-by for this device-tree proposal?

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

#15 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive

Oliver <[email protected]> writes:
...

Quoted 3 lines

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

I'll ack it if you make all the niggly nit picky trivial annoying changes I asked for :D

cheers

#17 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 8 lines · Michael Ellerman

Oliver <[email protected]> writes:
...

Quoted 3 lines

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

I'll ack it if you make all the niggly nit picky trivial annoying changes I asked for :D

*groan*

Fine, I'll respin it tomorrow. If anyone else has comments now would be the time to make them.

Quoted 2 lines

cheers

#19 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 7 lines · Oliver
Quoted 6 lines · Michael Ellerman

Oliver <[email protected]> writes:
...

Quoted 3 lines

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

Quoted 7 lines
Quoted 2 lines

I'll ack it if you make all the niggly nit picky trivial annoying changes I asked for :D

*groan*

Fine, I'll respin it tomorrow. If anyone else has comments now would be the time to make them.

Please also include my niggly nit picky trivial annoying bike shed color for the driver name to *not* use the "nd_region" suffix for a driver registering "nvdimm_bus" objects. "of_pmem_range" or "of_pmem_bus" or almost anything else would be fine.

#21 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 13 lines · Dan Williams
Quoted 12 lines · Oliver
Quoted 8 lines · Michael Ellerman

Oliver <[email protected]> writes:
...

Quoted 3 lines

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

I'll ack it if you make all the niggly nit picky trivial annoying changes I asked for :D

*groan*

Quoted 7 lines
Quoted 2 lines

Fine, I'll respin it tomorrow. If anyone else has comments now would be the time to make them.

Please also include my niggly nit picky trivial annoying bike shed color for the driver name to *not* use the "nd_region" suffix for a driver registering "nvdimm_bus" objects. "of_pmem_range" or "of_pmem_bus" or almost anything else would be fine.

Oh sure, would using of_pmem_region to match the compatible be ok?

#23 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

In reply to a message not in the archive
Quoted 18 lines · Oliver
Quoted 16 lines · Dan Williams
Quoted 14 lines · Oliver
Quoted 8 lines · Michael Ellerman

Oliver <[email protected]> writes:
...

Quoted 3 lines

For context Balbir is working with me on some of the pmem stuff. You probably want an Ack from Rob rather than one of us.

I'll ack it if you make all the niggly nit picky trivial annoying changes I asked for :D

*groan*

Fine, I'll respin it tomorrow. If anyone else has comments now would be the time to make them.

Quoted 6 lines
Quoted 4 lines

Please also include my niggly nit picky trivial annoying bike shed color for the driver name to *not* use the "nd_region" suffix for a driver registering "nvdimm_bus" objects. "of_pmem_range" or "of_pmem_bus" or almost anything else would be fine.

Oh sure, would using of_pmem_region to match the compatible be ok?

That works for me.

#24 lore raw

Re: [RESEND v2 3/4] doc/devicetree: Persistent memory region bindings

Quoted 8 lines · Dan Williams
Quoted 6 lines
Quoted 4 lines

Please also include my niggly nit picky trivial annoying bike shed color for the driver name to *not* use the "nd_region" suffix for a driver registering "nvdimm_bus" objects. "of_pmem_range" or "of_pmem_bus" or almost anything else would be fine.

Oh sure, would using of_pmem_region to match the compatible be ok?

That works for me.

The prefix "of" is not generally used in matching properties,...

my own pot of paint :)

Cheers,
Ben.