[PATCH] acpi/nfit: queue issuing of ars when an uc error notification comes in

2018-07-27 Thread Dave Jiang
When the ACPI UC error notifier gets called and ARS_REQ bit is set with the passed in flag, we can receive -EBUSY if ARS_REQ bit is already set for the nfit_spa->ars_state. When that happens, the ARS request is dropped. That can potentially cause us to miss the unreported errors that the on going A

Re: [PATCH v4 0/2] ext4: fix DAX dma vs truncate/hole-punch

2018-07-27 Thread Ross Zwisler
+ fsdevel and the xfs list. On Wed, Jul 25, 2018 at 4:28 PM Ross Zwisler wrote: > On Wed, Jul 11, 2018 at 10:17:41AM +0200, Jan Kara wrote: > > On Tue 10-07-18 13:10:29, Ross Zwisler wrote: > > > Changes since v3: > > > * Added an ext4_break_layouts() call to ext4_insert_range() to ensure > > >

[ndctl PATCH] ndctl, documentation: document the label-version option for init-labels

2018-07-27 Thread Vishal Verma
Add the missing --label-verison option to the ndctl init-labels man page. Signed-off-by: Vishal Verma --- Documentation/ndctl/ndctl-init-labels.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/ndctl/ndctl-init-labels.txt b/Documentation/ndctl/ndctl-init-labels.txt inde

[ndctl PATCH] ndctl: deprecate undocumented short-options

2018-07-27 Thread Vishal Verma
The inject-smart and monitor man pages refrained from displaying short options for various arguments (alarms, daemon) due to a lack of a coherent letter that could be made to relate to the event name. It was expected that the user will always use the long option for these. Since the OPT_STRING help

[ndctl PATCH] ndctl, inject-smart: Fix man page to match the current behavior

2018-07-27 Thread Vishal Verma
The inject-smart man page had a -H option for health status, which was from a previous development iteration, and not how it actually works. Fix it to advertise a -f flag for setting fatal status, and remove an unnecessart '=' from the unsafe-shutdown option as it doesn't accept any additional argu

Re: [PATCH] acpi/nfit: queue issuing of ars when an uc error notification comes in

2018-07-27 Thread Verma, Vishal L
On Fri, 2018-07-27 at 09:04 -0700, Dave Jiang wrote: > When the ACPI UC error notifier gets called and ARS_REQ bit is set > with the passed in flag, we can receive -EBUSY if ARS_REQ bit is already > set for the nfit_spa->ars_state. When that happens, the ARS request is > dropped. That can potenti

Re: [PATCH v2 5/6] md/dm-writecache: Don't request pointer dummy_addr when not required

2018-07-27 Thread Mike Snitzer
On Wed, Jul 25 2018 at 12:28pm -0400, Huaisheng Ye wrote: > From: Huaisheng Ye > > Function persistent_memory_claim doesn't need to get local pointer > dummy_addr from direct_access. Using NULL instead of having to pass > in a useless local pointer that caller then just throw away. > > Suggest

[fstests PATCH v3] generic/999: test DAX DMA vs truncate/hole-punch

2018-07-27 Thread Ross Zwisler
From: Ross Zwisler This adds a regression test for the following series: https://lists.01.org/pipermail/linux-nvdimm/2018-July/016842.html which adds synchronization between DAX DMA in ext4 and truncate/hole-punch. The intention of the test is to test those specific changes, but it runs fine bo

[PATCH] ipc/shm.c add ->pagesize function to shm_vm_ops

2018-07-27 Thread Jane Chu
Commit 05ea88608d4e13 (mm, hugetlbfs: introduce ->pagesize() to vm_operations_struct) adds a new ->pagesize() function to hugetlb_vm_ops, intended to cover all hugetlbfs backed files. With System V shared memory model, if "huge page" is specified, the "shared memory" is backed by hugetlbfs files,

ndctl create-namespace region order

2018-07-27 Thread Elliott, Robert (Persistent Memory)
ndctl create-namespace doesn't walk through the regions from lowest to highest; in this example it's going 1,3,5,0,2,4,6: $ sudo ndctl create-namespace --verbose ROB: parsing bus id=0 path=ndbus0 ROB: parsing region id=1 path=region1 namespace_create:770: region1: insufficient capacity size: 0 ava

[ndctl PATCH] ndctl inject-smart: add an option to uninject smart fields

2018-07-27 Thread Vishal Verma
The smart injection command in ndctl was missing an option to uninject the different inject-able fields. The APIs in libndctl already allow for this by setting the 'enable' flag to false. Add a *-uninject argument for each of the injectable fields that sets this flag and disables injected values. A

Re: [PATCH] ipc/shm.c add ->pagesize function to shm_vm_ops

2018-07-27 Thread Mike Kravetz
On 07/27/2018 02:17 PM, Jane Chu wrote: > Commit 05ea88608d4e13 (mm, hugetlbfs: introduce ->pagesize() to > vm_operations_struct) adds a new ->pagesize() function to > hugetlb_vm_ops, intended to cover all hugetlbfs backed files. Thanks Jane! Adding Dan on Cc as he authored 05ea88608d4e13. Note t

Re: [PATCH] ipc/shm.c add ->pagesize function to shm_vm_ops

2018-07-27 Thread Andrew Morton
On Fri, 27 Jul 2018 15:17:27 -0600 Jane Chu wrote: > Commit 05ea88608d4e13 (mm, hugetlbfs: introduce ->pagesize() to > vm_operations_struct) adds a new ->pagesize() function to > hugetlb_vm_ops, intended to cover all hugetlbfs backed files. That was merged three months ago. Can you suggest why

[PATCH v2 4/6] ndctl: add support for freeze security

2018-07-27 Thread Dave Jiang
Add support for freeze security to libndctl and also command line option of "freeze-security" for ndctl. This will lock the ability to make changes to the NVDIMM security. Signed-off-by: Dave Jiang --- Documentation/ndctl/Makefile.am |1 + Documentation/ndctl/ndctl-freeze-secur

[PATCH v2 1/6] ndctl: add support for display security state

2018-07-27 Thread Dave Jiang
Adding libndctl API call for retrieving security state for a DIMM and also adding support to ndctl list for displaying security state. Signed-off-by: Dave Jiang --- Documentation/ndctl/ndctl-list.txt |8 ndctl/lib/dimm.c | 16 ndctl/lib/libndctl.

[PATCH v2 0/6] ndctl: add security support

2018-07-27 Thread Dave Jiang
The following series implements mechanisms that utilize the sysfs knobs provided by the kernel in order to support the Intel DSM v1.7 spec that provides security to NVDIMM. The following abilities are added: 1. display security state 2. update security 3. disable security 4. freeze security 5. secu

[PATCH v2 3/6] ndctl: add disable security support

2018-07-27 Thread Dave Jiang
Add support for disable security to libndctl and also command line option of "disable-security" for ndctl. This provides a way to disable security on the nvdimm. ndctl does not handle the actual processing of the passphrase. It only starts the request. Signed-off-by: Dave Jiang --- Documentation

[PATCH v2 6/6] ndctl: add request-key upcall reference app

2018-07-27 Thread Dave Jiang
Adding a reference upcall helper for request-key in order to retrieve the security passphrase from userspace to provide to the kernel. The reference app uses keyutils API to respond to the upcall from the kernel and is invoked by /sbin/request-key of the keyutils. Signed-off-by: Dave Jiang --- D

[PATCH v2 2/6] ndctl: add update to security support

2018-07-27 Thread Dave Jiang
Add API call for triggering sysfs knob to update the security for a DIMM in libndctl. Also add the ndctl "update-security" to trigger that as well. ndctl does not actually handle the passphrase file. It only initiates the update and expects all the necessary mechanisms are already in place. Signed

[PATCH v2 5/6] ndctl: add support for secure erase

2018-07-27 Thread Dave Jiang
Add support for secure erase to libndctl and also command line option of "secure-erase" for ndctl. This will initiate the request to securely erase a DIMM. ndctl does not actually handle the verification of the security. That is handled by the kernel and the key upcall mechanism. Signed-off-by: Da

Re: [PATCH] ipc/shm.c add ->pagesize function to shm_vm_ops

2018-07-27 Thread Jane Chu
Hi, Andrew, On 7/27/2018 2:50 PM, Andrew Morton wrote: On Fri, 27 Jul 2018 15:17:27 -0600 Jane Chu wrote: Commit 05ea88608d4e13 (mm, hugetlbfs: introduce ->pagesize() to vm_operations_struct) adds a new ->pagesize() function to hugetlb_vm_ops, intended to cover all hugetlbfs backed files. T

RE: [External] [PATCH v2 2/6] s390, dcssblk: kaddr and pfn can be NULL to ->direct_access()

2018-07-27 Thread Huaisheng HS1 Ye
Dear Maintainers of Linux-s390, Greetings. May I have your ack's for this patch? The whole series would be applied to libnvdimm if it could get your approval. And any suggestion is welcome. Cheers, Huaisheng Ye > From: Huaisheng Ye > Sent: Thursday, July 26, 2018 12:29 AM > > From: Huaisheng