Hi Rob,
Thanks a lot for looking into this and involve Nico to this thread!
On 04/09/18 at 09:49am, Rob Herring wrote:
> +Nico who has been working on tinification of the kernel.
>
> On Mon, Apr 9, 2018 at 4:08 AM, Baoquan He wrote:
> > The struct resource uses singly linked
On Tue, Apr 10, 2018 at 9:56 AM, Dave Jiang wrote:
> When daxctl_unref is releasing the context, we should make sure that the
> regions and devices are also being released.
>
> Signed-off-by: Dave Jiang
> ---
> daxctl/lib/libdaxctl.c |7 +++
>
When daxctl_unref is releasing the context, we should make sure that the
regions and devices are also being released. free_region() will free
all the devices under the region.
Signed-off-by: Dave Jiang
---
v2: Use list_for_each_safe() for region removal. (Dan)
On 04/09/2018 07:39 PM, Dan Williams wrote:
> On Mon, Apr 9, 2018 at 5:13 PM, Dave Jiang wrote:
>> daxctl list is not calling daxctl_unref() when executed succesfully. At the
>> same
>> time, daxctl_region_unref() is not being called when daxctl_unref() executes.
>>
Add on to the work started by:
commit ebb4fb605e68 ("ndctl, create-namespace: introduce "fsdax" and "devdax"
modes")
and change some more user visible places to use "fsdax" and "devdax" modes
instead of "memory" and "dax", respectively. Having multiple terms for the
same mode is confusing for
On 04/10/2018 10:01 AM, Dan Williams wrote:
> On Tue, Apr 10, 2018 at 9:56 AM, Dave Jiang wrote:
>> When daxctl_unref is releasing the context, we should make sure that the
>> regions and devices are also being released.
>>
>> Signed-off-by: Dave Jiang
On 04/10/2018 10:38 AM, Plewa, Lukasz wrote:
> On Tue, Apr 10, 2018 at 7:17 PM, Dave Jiang wrote:
>> When daxctl_unref is releasing the context, we should make sure that the
>> regions and devices are also being released. free_region() will free all the
>> devices under
On Tue, Apr 10, 2018 at 8:59 AM, Dave Jiang wrote:
>
>
> On 04/09/2018 07:39 PM, Dan Williams wrote:
>> On Mon, Apr 9, 2018 at 5:13 PM, Dave Jiang wrote:
>>> daxctl list is not calling daxctl_unref() when executed succesfully. At the
>>> same
>>>
Providing an API call in libndctl to support accessing the region deep_flush
in sysfs.
Signed-off-by: Dave Jiang
---
v2: Cover case where deep_flush doesn't exist, i.e. memmap=nn!ss. (Dan)
ndctl/lib/libndctl.c | 35 +++
Enable test cases for the kernel's fallback to label-less mode.
Signed-off-by: Dan Williams
---
tools/testing/nvdimm/test/nfit.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index
Sysfs userspace tooling generally expects the kernel to emit a newlines
when reading sysfs attributes.
Signed-off-by: Dan Williams
---
tools/testing/nvdimm/test/nfit.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
The nfit_test.1 bus provides a pmem topology without blk-aperture
enabling, so it presents different failure modes for label space
handling. Allow custom DSM command error injection.
Signed-off-by: Dan Williams
---
tools/testing/nvdimm/test/nfit.c | 43
The new ACPI _LSx methods moved the 'dimm locked' error status from the
result of ND_CMD_GET_CONFIG_SIZE to an error status result of
ND_CMD_GET_CONFIG_DATA. Error code translation prevents the proper error
code from making it back to the 'nd_dimm' driver.
Fix the error code propagation and add
Given that libnvdimm driver stack takes specific actions on DIMM command
error codes like -EACCES, provide a facility to inject custom failures.
Signed-off-by: Dan Williams
---
tools/testing/nvdimm/test/nfit.c | 38 +-
1 file
The new support for the standard _LSR and _LSW methods neglected to also
update the nvdimm_init_config_data() and nvdimm_set_config_data() to
return the translated error code from failed commands. This precision is
necessary because the locked status that was previously returned on
On Tue, Apr 10, 2018 at 3:06 PM, Dave Jiang wrote:
> Providing an API call in libndctl to support accessing the region deep_flush
> in sysfs.
>
> Signed-off-by: Dave Jiang
> ---
>
> v2: Cover case where deep_flush doesn't exist, i.e. memmap=nn!ss.
Providing an API call in libndctl to support accessing the region deep_flush
in sysfs.
Signed-off-by: Dave Jiang
---
v3:
- Add "\n" to sysfs write. (Dan)
- add O_CLOEXEC to open() call for sysfs. (Dan)
v2: Cover case where deep_flush doesn't exist, i.e. memmap=nn!ss.
When a region is disabled, there is no driver attached. Therefore
dev->driverdata is NULL. An attempt to write to regionN/deep_flush via sysfs
would cause a NULL pointer dereference. Bail when dev->driver is NULL to
protect this scenario.
Fix: ab630891ce0eb(libnvdimm, region: sysfs trigger for
On Tue, Apr 10, 2018 at 1:42 PM, Dave Jiang wrote:
> When a region is disabled, there is no driver attached. Therefore
> dev->driverdata is NULL. An attempt to write to regionN/deep_flush via sysfs
> would cause a NULL pointer dereference. Bail when dev->driver is NULL to
>
Providing an API call in libndctl to support accessing the region deep_flush
in sysfs.
Signed-off-by: Dave Jiang
---
0 files changed
diff --git a/ndctl/lib/libndctl.c b/ndctl/lib/libndctl.c
index 580a450e..fb4dca73 100644
--- a/ndctl/lib/libndctl.c
+++
When a region is disabled, there is no driver attached. Therefore
dev->driverdata is NULL. An attempt to write to regionN/deep_flush via sysfs
would cause a NULL pointer dereference. Bail when dev->driver is NULL to
protect this scenario.
Fix: ab630891ce0eb(libnvdimm, region: sysfs trigger for
On Tue, Apr 10, 2018 at 4:35 PM, Dave Jiang wrote:
> Providing an API call in libndctl to support accessing the region deep_flush
> in sysfs.
>
> Signed-off-by: Dave Jiang
> ---
>
> v3:
> - Add "\n" to sysfs write. (Dan)
> - add O_CLOEXEC to open()
The original message was received at Wed, 11 Apr 2018 11:29:58 +0800
from lists.01.org [3.200.103.101]
- The following addresses had permanent fatal errors -
___
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
On Tue, 2018-04-10 at 11:09 -0600, Ross Zwisler wrote:
> Add on to the work started by:
>
> commit ebb4fb605e68 ("ndctl, create-namespace: introduce "fsdax" and
> "devdax" modes")
>
> and change some more user visible places to use "fsdax" and "devdax"
> modes
> instead of "memory" and "dax",
Providing an API call in libndctl to support accessing the region deep_flush
in sysfs.
Signed-off-by: Dave Jiang
---
v4: Make setup of deep_flush open not interfere with add_region. (Dan)
v3:
- Add "\n" to sysfs write. (Dan)
- add O_CLOEXEC to open() call for sysfs. (Dan)
25 matches
Mail list logo