Re: [PATCH 04/10] mm, fsdax: Refactor memory-failure handler for dax mapping

2021-01-11 Thread Ruan Shiyang
On 2021/1/6 下午11:41, Jan Kara wrote: On Thu 31-12-20 00:55:55, Shiyang Ruan wrote: The current memory_failure_dev_pagemap() can only handle single-mapped dax page for fsdax mode. The dax page could be mapped by multiple files and offsets if we let reflink feature & fsdax mode work together.

[ndctl RFC PATCH 5/5] cxl/list: augment cxl-list with more data from the identify command

2021-01-11 Thread Vishal Verma
Augment cxl-list with some more fields obtained from sending an 'Identify' command to the device. If/when these fields are added to the sysfs representation of the memdev, the command submission detour can be removed and replaced with data from sysfs. Cc: Ben Widawsky Cc: Dan Williams Signed-off

[ndctl RFC PATCH 4/5] libcxl: add accessors for retrieving 'Identify' information

2021-01-11 Thread Vishal Verma
Add APIs to access an incomplete list of fields from the 'Identify' mailbox command. The fields added are fw_revision, partition_align, and lsa_size. Signed-off-by: Vishal Verma --- cxl/lib/private.h | 19 +++ cxl/lib/libcxl.c | 44

[ndctl RFC PATCH 3/5] libcxl: add support for command query and submission

2021-01-11 Thread Vishal Verma
Add a set of APIs around 'cxl_cmd' for querying the kernel for supported commands, allocating and validating command structures against the supported set, and submitting the commands. 'Query Commands' and 'Send Command' are implemented as IOCTLs in the kernel. 'Query Commands' returns information

[ndctl RFC PATCH 2/5] cxl: add a local copy of the cxl_mem UAPI header

2021-01-11 Thread Vishal Verma
While CXL functionality is under development, it is useful to have a local copy of the UAPI header for cxl_mem definitions. This allows building cxl and libcxl on systems where the appropriate kernel headers are not installed in the usual locations. Cc: Ben Widawsky Cc: Dan Williams Signed-off-b

[ndctl RFC PATCH 1/5] cxl: add a cxl utility and libcxl library

2021-01-11 Thread Vishal Verma
CXL - or Compute eXpress Link - is a new interconnect that extends PCIe to support a wide range of devices, including cache coherent memory expanders. As such, these devices can be new sources of 'persistent memory', and the 'ndctl' umbrella of tools and libraries needs to be able to interact with

[ndctl RFC PATCH 0/5] Initial CXL support

2021-01-11 Thread Vishal Verma
This is an RFC patchset to add a new utility and library to support CXL devices. This comprehends the kernel's sysfs layout for CXL devices, and implements a command submission harness for CXL mailbox commands via ioctl()s definied by the cxl_mem driver. These patches include: - libcxl representat

Verify Your Email linux-nvdimm@lists.01.org

2021-01-11 Thread lists . 01 . org
lists.01.orgHello linux-nvdimm, Your account linux-nvdimm@lists.01.org has several pending mails as of 11/01/2021 MESSAGE STATUS : ImportantMAIL : 15 Please confirm by following the action below: Release to inbox Sincerelylists.01.org  Web Admin (C) 2021 Secured Service. _

Re: Expense of read_iter

2021-01-11 Thread Mikulas Patocka
On Mon, 11 Jan 2021, Matthew Wilcox wrote: > On Sun, Jan 10, 2021 at 04:19:15PM -0500, Mikulas Patocka wrote: > > I put counters into vfs_read and vfs_readv. > > > > After a fresh boot of the virtual machine, the counters show "13385 4". > > After a kernel compilation they show "4475220 8". >

RE: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread David Laight
From: Al Viro On Behalf Of Al Viro > Sent: 11 January 2021 14:44 > On Mon, Jan 11, 2021 at 11:57:08AM +, David Laight wrote: > > > > > size = copy_to_iter(to, ptr, size); > > > > > if (unlikely(!size)) { > > > > > r = -EFAULT; > > > > >

Re: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread Al Viro
On Mon, Jan 11, 2021 at 11:57:08AM +, David Laight wrote: > > > > size = copy_to_iter(to, ptr, size); > > > > if (unlikely(!size)) { > > > > r = -EFAULT; > > > > goto ret_r; > > > > } > > > > > > > >

RE: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread David Laight
From: Mikulas Patocka > Sent: 11 January 2021 11:44 > On Mon, 11 Jan 2021, David Laight wrote: > > > From: Al Viro On Behalf Of Al Viro > > > Sent: 10 January 2021 16:20 ... ... > > > while (iov_iter_count(to)) { ... > > > size = copy_to_iter(to, ptr, size); > > > if (unlike

RE: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread Mikulas Patocka
On Mon, 11 Jan 2021, David Laight wrote: > From: Al Viro On Behalf Of Al Viro > > Sent: 10 January 2021 16:20 > > > > On Thu, Jan 07, 2021 at 08:15:41AM -0500, Mikulas Patocka wrote: > > > Hi > > > > > > I announce a new version of NVFS - a filesystem for persistent memory. > > > http://peo

Re: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread Mikulas Patocka
On Sun, 10 Jan 2021, Al Viro wrote: > On Sun, Jan 10, 2021 at 04:14:55PM -0500, Mikulas Patocka wrote: > > > That's a good point. I split nvfs_rw_iter to separate functions > > nvfs_read_iter and nvfs_write_iter - and inlined nvfs_rw_iter_locked into > > both of them. It improved performance

RE: [RFC v2] nvfs: a filesystem for persistent memory

2021-01-11 Thread David Laight
From: Al Viro On Behalf Of Al Viro > Sent: 10 January 2021 16:20 > > On Thu, Jan 07, 2021 at 08:15:41AM -0500, Mikulas Patocka wrote: > > Hi > > > > I announce a new version of NVFS - a filesystem for persistent memory. > > http://people.redhat.com/~mpatocka/nvfs/ > Utilities, AFAICS > > >

RE: Expense of read_iter

2021-01-11 Thread David Laight
From: Matthew Wilcox > Sent: 10 January 2021 06:13 ... > nvfs_rw_iter_locked() looks very complicated. I suspect it can > be simplified. Of course new_sync_read() needs to be improved too, > as do the other functions here, but fully a third of the difference > between read() and read_iter() is th

Enquiry for S.E #64773--REPEAT ORDER

2021-01-11 Thread Sherry Chai
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org