RE: [PATCH] acpi/nfit: export read_only attribute of dimms

2017-11-06 Thread Elliott, Robert (Persistent Memory)
> -Original Message- > From: Linux-nvdimm [mailto:linux-nvdimm-boun...@lists.01.org] On > Behalf Of Dan Williams > Sent: Monday, November 06, 2017 5:32 PM > To: Lijun Pan > Cc: linux-nvdimm@lists.01.org > Subject: Re: [PATCH] acpi/nfit: export read_only attribute of dimms > > On Mon, Oc

Re: [PATCH] acpi/nfit: export read_only attribute of dimms

2017-11-06 Thread Dan Williams
On Mon, Oct 30, 2017 at 1:41 PM, Lijun Pan wrote: > Though flags attribute provides enough information about > the dimm, it is nice to export the read_only attribute if > bit3 of NVDIMM state flag is set. > If error is injected by BIOS, bit3 and bit1 are both set. > If DIMM is set to read-only by

[ndctl PATCH 3/3] ndctl, inject-error: remove unreachable code

2017-11-06 Thread Vishal Verma
The iteration helper ndctl_namespace_bb_foreach ensures bb cannot be NULL in the loop, so an explicit check for it is not necessary. Remove it. Cc: Dan Williams Signed-off-by: Vishal Verma --- ndctl/inject-error.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ndctl/inject-error.c b/ndct

[ndctl PATCH 1/3] libndctl: refactor returns in ndctl_bus_get_scrub_count

2017-11-06 Thread Vishal Verma
Static analysis warns about logically dead/unreachable code since all options for 'rc' are accounted for. Make this section a bit more succinct, while fixing both this warning as well as ensuring gcc doesn't warn about reaching the end of a non-void function. Cc: Dan Williams Signed-off-by: Visha

[ndctl PATCH 2/3] libndctl: add missing error handling in _wait_for_scrub_completion

2017-11-06 Thread Vishal Verma
Static analysis complains that we could be passing a negative value to close(). The root of the problem is that we neglect to error-check the return from open(). Add that to correctly fix the problem. Also fix a whitespace error in close(). Cc: Dan Williams Signed-off-by: Vishal Verma --- ndctl

Re: [Qemu-devel] KVM "fake DAX" flushing interface - discussion

2017-11-06 Thread Dan Williams
On Sun, Nov 5, 2017 at 11:57 PM, Pankaj Gupta wrote: > > >> [..] >> >> Yes, the GUID will specifically identify this range as "Virtio Shared >> >> Memory" (or whatever name survives after a bikeshed debate). The >> >> libnvdimm core then needs to grow a new region type that mostly >> >> behaves th