[ndctl PATCH] ndctl, firmware: fix kernel version check

2018-02-09 Thread Dan Williams
The firmware update passes when it should skip due to a misplaced newline. Cc: Dave Jiang Signed-off-by: Dan Williams --- test/firmware-update.sh |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/firmware-update.sh

[ndctl PATCH] ndctl, hugetlb: skip, don't fail

2018-02-09 Thread Dan Williams
The hugetlb test has x86 assumptions. Skip instead of fail to enable package build environments that run the unit tests. Signed-off-by: Dan Williams --- test/hugetlb.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/hugetlb.c

[ndctl PATCH] ndctl: fallback to sysconf for PAGE_SIZE

2018-02-09 Thread Dan Williams
On ARM and PowerPC PAGE_SIZE is not defined. Fall back to sysconf(). Signed-off-by: Dan Williams --- ndctl/ndctl.h |5 + 1 file changed, 5 insertions(+) diff --git a/ndctl/ndctl.h b/ndctl/ndctl.h index eb5a9b387b3d..ebd2a41cce46 100644 --- a/ndctl/ndctl.h +++

Re: [RFC PATCH v3 0/5] ndctl: monitor: monitor the smart events of

2018-02-09 Thread Dan Williams
On Fri, Feb 9, 2018 at 12:02 AM, QI Fuli wrote: > This is a patch set of ndctl monitor, a tiny daemon to monitor the smart > events of nvdimm dimms. When a smart event fires, monitor will output > the notification which including dimm health status to syslog or a > special

[PATCH v2 2/2] device-dax: implement ->pagesize() for smaps to report MMUPageSize

2018-02-09 Thread Dave Jiang
From: Dan Williams Given that device-dax is making similar page mapping size guarantees as hugetlbfs, emit the size in smaps and any other kernel path that requests the mapping size of a vma. Reported-by: Jane Chu Signed-off-by: Dan Williams

[PATCH v2 0/2] mm, smaps: MMUPageSize for device-dax

2018-02-09 Thread Dave Jiang
Andrew, >From Dan Williams: Here is another occasion where we want special-case hugetlbfs enabling to also apply to device-dax. I started to wonder what other hstate conversions we might do beyond ->split() and ->pagesize(), but this appears to be the last of the usages of hstate_vma() in

[PATCH v2 1/2] mm, hugetlbfs: introduce ->pagesize() to vm_operations_struct

2018-02-09 Thread Dave Jiang
From: Dan Williams When device-dax is operating in huge-page mode we want it to behave like hugetlbfs and report the MMU page mapping size that is being enforced by the vma. Similar to commit 31383c6865a5 "mm, hugetlbfs: introduce ->split() to vm_operations_struct" it

Re: [RFC PATCH v3 0/5] ndctl: monitor: monitor the smart events of

2018-02-09 Thread Verma, Vishal L
On Fri, 2018-02-09 at 17:02 +0900, QI Fuli wrote: > This is a patch set of ndctl monitor, a tiny daemon to monitor the > smart > events of nvdimm dimms. When a smart event fires, monitor will output > the notification which including dimm health status to syslog or a > special file according to

[RFC PATCH v3 1/5] ndctl: nvdimmd: add LOG_NOTICE level to

2018-02-09 Thread QI Fuli
This patch adds LOG_NOTICE level to log_priority for the notifications of nvdimm dimm over threshold event. Currently, the LOG_INFO level is too low, and the notifications are not up to LOG_ERROR level. Signed-off-by: QI Fuli --- util/log.c | 2 ++ util/log.h | 3 +++ 2

[RFC PATCH v3 4/5] ndctl: monitor: add ndclt show-monitor command

2018-02-09 Thread QI Fuli
This patch is used to add $ndctl show-monitor command, by which users can check the specific of a monitor. Example: $ndctl show-monitor --monitor m_nmem1 Signed-off-by: QI Fuli --- builtin.h | 1 + ndctl/monitor.c | 35 +++

[RfC PATCH v3 5/5] ndctl: monitor: add ndclt destroy-monitor command

2018-02-09 Thread QI Fuli
This patch is used to add $ndctl destroy-monitor command, by which users can destroy a monitor. After the monitor is destroyed, the file with same name under /var/ndctl/monitor will also be deleted. Example: #ndctl destroy-monitor --monitor m_nmem1 Signed-off-by: QI Fuli

[RFC PATCH v3 2/5] ndctl: monitor: add ndctl create-monitor command

2018-02-09 Thread QI Fuli
This patch is used to add $ndctl create-monitor command, by which users can create a new monitor. Users can select the DIMMS to be monitored by using [--dimm] [--bus] [--region] [--namespace] options. The notifications can be outputed to a special file or syslog by using [--output] option, the

[RFC PATCH v3 3/5] ndctl: monitor: add ndclt list-monitor command

2018-02-09 Thread QI Fuli
This patch adds $ndctl list-monitor command, by which users can list all currently running monitors. Example: $ndctl list-monitor --all Signed-off-by: QI Fuli --- builtin.h | 1 + ndctl/monitor.c | 32 ndctl/ndctl.c | 1 + 3

[RFC PATCH v3 0/5] ndctl: monitor: monitor the smart events of

2018-02-09 Thread QI Fuli
This is a patch set of ndctl monitor, a tiny daemon to monitor the smart events of nvdimm dimms. When a smart event fires, monitor will output the notification which including dimm health status to syslog or a special file according to users' configuration. The output notification follows json