4 Commits

Author SHA1 Message Date
Aneesh Kumar K.V
28899aa183 UPSTREAM: libnvdimm/of_pmem: Provide a unique name for bus provider
ndctl binaries, v66 and older, mistakenly require the ndbus to have
unique names. If not while enumerating the bus in userspace it drops bus
with similar names.  This results in us not listing devices beneath the
bus.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Link: https://lore.kernel.org/r/20190807040029.11344-1-aneesh.kumar@linux.ibm.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 49bddc73d15c25a68e4294d76fc74519fda984cd)
Bug: 146400078
Bug: 148297388
Change-Id: Ieda4557bbda63e554e2eda6b87d7ba2a6e149e3b
Signed-off-by: Alistair Delva <adelva@google.com>
2020-01-24 17:44:17 -08:00
YueHaibing
afab16336a UPSTREAM: libnvdimm/of_pmem: Fix platform_no_drv_owner.cocci warnings
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 316720b9c2341307b9a17103cdafa1ca9b2fb872)
Bug: 146400078
Bug: 148297388
Change-Id: I16e7543bcb786e20e96ea4250a809bb3b7f1ec32
Signed-off-by: Alistair Delva <adelva@google.com>
2020-01-24 17:44:17 -08:00
Rob Herring
9ca8939228 UPSTREAM: libnvdimm, of_pmem: use dev_to_node() instead of of_node_to_nid()
Remove the direct dependency on of_node_to_nid() by using dev_to_node()
instead. Any DT platform device will have its NUMA node id set when the
device is created.

With this, commit 291717b6fbdb ("libnvdimm, of_pmem: workaround OF_NUMA=n
build error") can be reverted.

Fixes: 717197608952 ("libnvdimm: Add device-tree based driver")
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Oliver O'Halloran <oohall@gmail.com>
Cc: linux-nvdimm@lists.01.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit df3f126482dba8e00cdbfc8fc44a05a5a35b1704)
Bug: 146400078
Bug: 148297388
Change-Id: I87aed3d23c38a10b0f25e23cd438ade4f8073f28
Signed-off-by: Alistair Delva <adelva@google.com>
2020-01-24 17:44:17 -08:00
Oliver O'Halloran
3c91fbaf6c UPSTREAM: 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.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
(cherry picked from commit 7171976089528cb3d057a6fb288e7f8f89ab7f68)
Bug: 146400078
Bug: 148297388
Change-Id: I1dc76c36adecd82c2e9a248c8012c7b31c146cd7
Signed-off-by: Alistair Delva <adelva@google.com>
2020-01-24 17:44:17 -08:00