Re: [ndctl PATCH] libndctl/papr: Fix probe for papr-scm compatible nvdimms

2021-05-20 Thread Vishal Verma
On Mon, 17 May 2021 21:18:24 +0530, Vaibhav Jain wrote: > With recent changes introduced for unification of PAPR and NFIT > families the probe for papr-scm nvdimms is broken since they don't > expose 'handle' or 'phys_id' sysfs attributes. These attributes are > only exposed by NFIT and

Re: [PATCH v1 04/11] mm/memremap: add ZONE_DEVICE support for compound pages

2021-05-19 Thread Joao Martins
On 5/18/21 8:56 PM, Jane Chu wrote: > On 5/18/2021 10:27 AM, Joao Martins wrote: > >> On 5/5/21 11:36 PM, Joao Martins wrote: >>> On 5/5/21 11:20 PM, Dan Williams wrote: On Wed, May 5, 2021 at 12:50 PM Joao Martins wrote: > On 5/5/21 7:44 PM, Dan Williams wrote: >> On Thu,

Návrh pujcky ....

2021-05-19 Thread PUJCKA
Jste v nouzi o �ver pro va�e podnik�n�, potrebuj� rychl� �ver splatit sv� �cty, pro osobn� potrebu? Na�e nab�dka poskytuje �very s n�zkou �rokovou sazbou 3%.. Prem�leli jste o z�sk�n� pujcky? Pravdepodobne jste byl odm�tnut m�stn� bankou? ODPOVED PRO V�CE INFORMAC� PROSTREDNICTV�M:

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-19 Thread Mike Rapoport
On Tue, May 18, 2021 at 01:08:27PM +0200, Michal Hocko wrote: > On Tue 18-05-21 12:35:36, David Hildenbrand wrote: > > On 18.05.21 12:31, Michal Hocko wrote: > > > > > > Although I have to say openly that I am not a great fan of VM_FAULT_OOM > > > in general. It is usually a a wrong way to tell

Re: [PATCH v3] powerpc/papr_scm: Reduce error severity if nvdimm stats inaccessible

2021-05-19 Thread kajoljain
On 5/8/21 10:06 AM, Vaibhav Jain wrote: > Currently drc_pmem_qeury_stats() generates a dev_err in case > "Enable Performance Information Collection" feature is disabled from > HMC or performance stats are not available for an nvdimm. The error is > of the form below: > > papr_scm

[PATCH v6 7/7] fs/xfs: Add dax dedupe support

2021-05-19 Thread Shiyang Ruan
Introduce xfs_mmaplock_two_inodes_and_break_dax_layout() for dax files who are going to be deduped. After that, call compare range function only when files are both DAX or not. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_file.c| 2 +- fs/xfs/xfs_inode.c | 57

[PATCH v6 6/7] fs/xfs: Handle CoW for fsdax write() path

2021-05-19 Thread Shiyang Ruan
In fsdax mode, WRITE and ZERO on a shared extent need CoW performed. After CoW, new allocated extents needs to be remapped to the file. So, add an iomap_end for dax write ops to do the remapping work. Signed-off-by: Shiyang Ruan --- fs/xfs/xfs_bmap_util.c | 3 +-- fs/xfs/xfs_file.c | 9

[PATCH v6 4/7] iomap: Introduce iomap_apply2() for operations on two files

2021-05-19 Thread Shiyang Ruan
Some operations, such as comparing a range of data in two files under fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, we introduce iomap_apply2() to accept arguments from two files and iomap_actor2_t for actions on two files. Signed-off-by: Shiyang Ruan Reviewed-by:

[PATCH v6 5/7] fsdax: Dedup file range to use a compare function

2021-05-19 Thread Shiyang Ruan
With dax we cannot deal with readpage() etc. So, we create a dax comparison funciton which is similar with vfs_dedupe_file_range_compare(). And introduce dax_remap_file_range_prep() for filesystem use. Signed-off-by: Goldwyn Rodrigues Signed-off-by: Shiyang Ruan --- fs/dax.c | 66

[PATCH v6 3/7] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero

2021-05-19 Thread Shiyang Ruan
Punch hole on a reflinked file needs dax_copy_edge() too. Otherwise, data in not aligned area will be not correct. So, add the srcmap to dax_iomap_zero() and replace memset() as dax_copy_edge(). Signed-off-by: Shiyang Ruan Reviewed-by: Ritesh Harjani --- fs/dax.c | 25

[PATCH v6 2/7] fsdax: Replace mmap entry in case of CoW

2021-05-19 Thread Shiyang Ruan
We replace the existing entry to the newly allocated one in case of CoW. Also, we mark the entry as PAGECACHE_TAG_TOWRITE so writeback marks this entry as writeprotected. This helps us snapshots so new write pagefaults after snapshots trigger a CoW. Signed-off-by: Goldwyn Rodrigues

[PATCH v6 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-19 Thread Shiyang Ruan
In the case where the iomap is a write operation and iomap is not equal to srcmap after iomap_begin, we consider it is a CoW operation. The destance extent which iomap indicated is new allocated extent. So, it is needed to copy the data from srcmap to new allocated extent. In theory, it is better

[PATCH v6 0/7] fsdax,xfs: Add reflink support for fsdax

2021-05-19 Thread Shiyang Ruan
This patchset is attempt to add CoW support for fsdax, and take XFS, which has both reflink and fsdax feature, as an example. Changes from V5: - Fix the lock order of xfs_inode in xfs_mmaplock_two_inodes_and_break_dax_layout() - move dax_remap_file_range_prep() to fs/dax.c - change type of

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread James Bottomley
On Tue, 2021-05-18 at 18:49 -0700, Dan Williams wrote: > On Tue, May 18, 2021 at 6:33 PM James Bottomley > wrote: > > On Tue, 2021-05-18 at 11:24 +0100, Mark Rutland wrote: > > > On Thu, May 13, 2021 at 09:47:32PM +0300, Mike Rapoport wrote: > > > > From: Mike Rapoport > > > > > > > > It is

Re: [PATCH v20 4/7] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Mike Rapoport
On Tue, May 18, 2021 at 05:44:22PM -0700, Andrew Morton wrote: > On Tue, 18 May 2021 10:20:31 +0300 Mike Rapoport wrote: > > > From: Mike Rapoport > > > > Introduce "memfd_secret" system call with the ability to create memory > > areas visible only in the context of the owning process and not

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread Dan Williams
On Tue, May 18, 2021 at 6:33 PM James Bottomley wrote: > > On Tue, 2021-05-18 at 11:24 +0100, Mark Rutland wrote: > > On Thu, May 13, 2021 at 09:47:32PM +0300, Mike Rapoport wrote: > > > From: Mike Rapoport > > > > > > It is unsafe to allow saving of secretmem areas to the hibernation > > >

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread James Bottomley
On Tue, 2021-05-18 at 11:24 +0100, Mark Rutland wrote: > On Thu, May 13, 2021 at 09:47:32PM +0300, Mike Rapoport wrote: > > From: Mike Rapoport > > > > It is unsafe to allow saving of secretmem areas to the hibernation > > snapshot as they would be visible after the resume and this > >

Re: [PATCH v20 4/7] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Andrew Morton
On Tue, 18 May 2021 10:20:31 +0300 Mike Rapoport wrote: > From: Mike Rapoport > > Introduce "memfd_secret" system call with the ability to create memory > areas visible only in the context of the owning process and not mapped not > only to other processes but in the kernel page tables as well.

Re: [ndctl PATCH] ndctl: Update nvdimm mailing list address

2021-05-18 Thread Dan Williams
On Tue, May 18, 2021 at 3:26 PM Vishal Verma wrote: > > The 'nvdimm' mailing list has moved from lists.01.org to > lists.linux.dev. Update CONTRIBUTING.md and configure.ac to reflect > this. LGTM Reviewed-by: Dan Williams

[ndctl PATCH] ndctl: Update nvdimm mailing list address

2021-05-18 Thread Vishal Verma
The 'nvdimm' mailing list has moved from lists.01.org to lists.linux.dev. Update CONTRIBUTING.md and configure.ac to reflect this. Cc: Dan Williams Signed-off-by: Vishal Verma --- configure.ac| 2 +- CONTRIBUTING.md | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v1 04/11] mm/memremap: add ZONE_DEVICE support for compound pages

2021-05-18 Thread Jane Chu
On 5/18/2021 10:27 AM, Joao Martins wrote: On 5/5/21 11:36 PM, Joao Martins wrote: On 5/5/21 11:20 PM, Dan Williams wrote: On Wed, May 5, 2021 at 12:50 PM Joao Martins wrote: On 5/5/21 7:44 PM, Dan Williams wrote: On Thu, Mar 25, 2021 at 4:10 PM Joao Martins wrote: diff --git

Re: [PATCH v1 04/11] mm/memremap: add ZONE_DEVICE support for compound pages

2021-05-18 Thread Joao Martins
On 5/5/21 11:36 PM, Joao Martins wrote: > On 5/5/21 11:20 PM, Dan Williams wrote: >> On Wed, May 5, 2021 at 12:50 PM Joao Martins >> wrote: >>> On 5/5/21 7:44 PM, Dan Williams wrote: On Thu, Mar 25, 2021 at 4:10 PM Joao Martins wrote: > diff --git a/include/linux/memremap.h

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Michal Hocko
On Tue 18-05-21 12:35:36, David Hildenbrand wrote: > On 18.05.21 12:31, Michal Hocko wrote: > > On Tue 18-05-21 12:06:42, David Hildenbrand wrote: > > > On 18.05.21 11:59, Michal Hocko wrote: > > > > On Sun 16-05-21 10:29:24, Mike Rapoport wrote: > > > > > On Fri, May 14, 2021 at 11:25:43AM +0200,

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Michal Hocko
On Tue 18-05-21 12:06:42, David Hildenbrand wrote: > On 18.05.21 11:59, Michal Hocko wrote: > > On Sun 16-05-21 10:29:24, Mike Rapoport wrote: > > > On Fri, May 14, 2021 at 11:25:43AM +0200, David Hildenbrand wrote: > > [...] > > > > > + if (!page) > > > > > +

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Michal Hocko
On Sun 16-05-21 10:29:24, Mike Rapoport wrote: > On Fri, May 14, 2021 at 11:25:43AM +0200, David Hildenbrand wrote: [...] > > > + if (!page) > > > + return VM_FAULT_OOM; > > > + > > > + err = set_direct_map_invalid_noflush(page, 1); > > > + if (err) { > > >

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread David Hildenbrand
On 18.05.21 12:31, Michal Hocko wrote: On Tue 18-05-21 12:06:42, David Hildenbrand wrote: On 18.05.21 11:59, Michal Hocko wrote: On Sun 16-05-21 10:29:24, Mike Rapoport wrote: On Fri, May 14, 2021 at 11:25:43AM +0200, David Hildenbrand wrote: [...] + if (!page) +

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread David Hildenbrand
On 18.05.21 12:24, Mark Rutland wrote: On Thu, May 13, 2021 at 09:47:32PM +0300, Mike Rapoport wrote: From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread Mark Rutland
On Thu, May 13, 2021 at 09:47:32PM +0300, Mike Rapoport wrote: > From: Mike Rapoport > > It is unsafe to allow saving of secretmem areas to the hibernation > snapshot as they would be visible after the resume and this essentially > will defeat the purpose of secret memory mappings. > > Prevent

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread David Hildenbrand
On 18.05.21 11:59, Michal Hocko wrote: On Sun 16-05-21 10:29:24, Mike Rapoport wrote: On Fri, May 14, 2021 at 11:25:43AM +0200, David Hildenbrand wrote: [...] + if (!page) + return VM_FAULT_OOM; + + err = set_direct_map_invalid_noflush(page,

[PATCH v20 7/7] secretmem: test: add basic selftest for memfd_secret(2)

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport

[PATCH v20 6/7] arch, mm: wire up memfd_secret system call where relevant

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann Acked-by: Catalin Marinas Acked-by: David Hildenbrand Acked-by: James

[PATCH v20 5/7] PM: hibernate: disable when there are active secretmem users

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by:

[PATCH v20 4/7] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The secretmem feature is off by default and the user must

[PATCH v20 3/7] set_memory: allow querying whether set_direct_map_*() is actually enabled

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and

[PATCH v20 2/7] riscv/Kconfig: make direct map manipulation options depend on MMU

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have no meaning when CONFIG_MMU is disabled and there is no point to enable them for the nommu case. Add an explicit dependency on MMU for these options. Signed-off-by: Mike Rapoport Reported-by: kernel

[PATCH v20 1/7] mmap: make mlock_future_check() global

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Reviewed-by: David Hildenbrand Acked-by: James Bottomley Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher

[PATCH v20 0/7] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-18 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.13-rc1, I can rebase whatever way you prefer. This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated memfd_secret system call The desired

Ultima advertencia - Envio de Burofax Online

2021-05-17 Thread Notificados 465785
Notificación fehacientes - Burofax Online correo electronico :linux-nvdimm@lists.01.org Descargar todos archivos adjuntos ( 128 kb) Remitente: ABOGADOS VINAR DOGARIA VERDU CALLE LIMA Burofax n_1070667882529471650426322764055403121452195327627789662477574017598443109000933

Re: [Virtio-fs] [PATCH v3 2/3] dax: Add a wakeup mode parameter to put_unlocked_entry()

2021-05-17 Thread Dan Williams
On Wed, Apr 21, 2021 at 11:25 PM Christoph Hellwig wrote: > > On Wed, Apr 21, 2021 at 12:09:54PM -0700, Dan Williams wrote: > > Can you get in the habit of not replying inline with new patches like > > this? Collect the review feedback, take a pause, and resend the full > > series so tooling like

[ndctl PATCH] libndctl/papr: Fix probe for papr-scm compatible nvdimms

2021-05-17 Thread Vaibhav Jain
With recent changes introduced for unification of PAPR and NFIT families the probe for papr-scm nvdimms is broken since they don't expose 'handle' or 'phys_id' sysfs attributes. These attributes are only exposed by NFIT and 'nvdimm_test' nvdimms. Since 'unable to read' these sysfs attributes is a

[ndctl v2 3/4] inject-error: Remove assumptions on error injection support

2021-05-17 Thread Santosh Sivaraj
Currently the code assumes that only nfit supports error injection, remove those assumptions before error injection support for PAPR is added. Add bus operations similar to that of DIMM operations with injection operations in it. Signed-off-by: Santosh Sivaraj --- ndctl/lib/inject.c | 96

[ndctl v2 4/4] Error injection support for PAPR

2021-05-17 Thread Santosh Sivaraj
Add support for error injection on PAPR family of devices. This is particularly useful in running 'make check' on non-nfit platforms. Signed-off-by: Santosh Sivaraj --- ndctl/lib/libndctl.c | 1 + ndctl/lib/papr.c | 134 ++ ndctl/lib/private.h |

[ndctl v2 2/4] papr: ndtest: Enable smart test cases

2021-05-17 Thread Santosh Sivaraj
From: Shivaprasad G Bhat The patch implements all necessary smart APIs for the ndtest kernel driver. Both inject-smart.sh and monitor.sh tests pass with the patch. Signed-off-by: Shivaprasad G Bhat --- ndctl/lib/papr.c | 313 ++ ndctl/lib/papr.h

[ndctl v2 1/4] libndctl: Rename dimm property nfit_dsm_mask for generic use

2021-05-17 Thread Santosh Sivaraj
From: Shivaprasad G Bhat The dimm specific dsm masks can be used by different platforms. Rename it to dsm_mask to avoid confusion. Signed-off-by: Shivaprasad G Bhat --- ndctl/lib/libndctl.c | 4 ++-- ndctl/lib/private.h | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) Resending

[v2 2/2] nvdimm/ndtest: Add support for error injection tests

2021-05-17 Thread Santosh Sivaraj
Add necessary support for error injection family of tests on non-acpi platforms. Signed-off-by: Santosh Sivaraj --- tools/testing/nvdimm/test/ndtest.c | 455 - tools/testing/nvdimm/test/ndtest.h | 25 ++ 2 files changed, 477 insertions(+), 3 deletions(-) diff --git

[v2 1/2] tests/nvdimm/ndtest: Enable smart tests

2021-05-17 Thread Santosh Sivaraj
From: Shivaprasad G Bhat The patch adds necessary health related dsm command implementations for the ndctl inject-smart and monitor tests to pass. Signed-off-by: Shivaprasad G Bhat --- tools/testing/nvdimm/test/ndtest.c | 258 + tools/testing/nvdimm/test/ndtest.h |

Confirm Credit Remittance

2021-05-17 Thread HSBC Private Bank Limited
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-17 Thread Mike Rapoport
On Fri, May 14, 2021 at 10:50:55AM +0200, David Hildenbrand wrote: > On 13.05.21 20:47, Mike Rapoport wrote: > > From: Mike Rapoport > > > > Removing of the pages from the direct map may cause its fragmentation > > on architectures that use large pages to map the physical memory > > which

Re: [RFC 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-05-17 Thread kajoljain
On 5/14/21 5:17 PM, Peter Zijlstra wrote: > On Thu, May 13, 2021 at 05:56:14PM +0530, kajoljain wrote: > >> But yes the current read/add/del functions are not adding value. We >> could add an arch/platform specific function which could handle the >> capturing of the counter data and do the

Confirm Invoice Remittance

2021-05-16 Thread HSBC Private Bank Limited
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

[RFC ndctl PATCH 1/3] ndctl, ccan: import ciniparser

2021-05-16 Thread QI Fuli
From: QI Fuli Import ciniparser from ccan[1]. [1] https://ccodearchive.net/info/ciniparser.html Signed-off-by: QI Fuli --- Makefile.am | 6 +- ccan/ciniparser/ciniparser.c | 480 +++ ccan/ciniparser/ciniparser.h | 262 +++

[RFC ndctl PATCH 3/3] ndctl, rename monitor.conf to ndctl.conf

2021-05-16 Thread QI Fuli
From: QI Fuli Rename monitor.conf to ndctl.conf, and make it a ndclt global configuration file that all commands can refer to. Refactor monitor to make it work with ndctl.conf. Signed-off-by: QI Fuli --- configure.ac | 8 +- ndctl/Makefile.am | 9 +-

[RFC ndctl PATCH 2/3] ndctl, util: add parse-configs helper

2021-05-16 Thread QI Fuli
From: QI Fuli Add parse-config helper to help ndctl commands read the ndctl global configuration file. Signed-off-by: QI Fuli --- Makefile.am | 2 ++ util/parse-configs.c | 47 util/parse-configs.h | 26 3 files

[RFC ndctl PATCH 0/3] Rename monitor.conf to ndctl.conf as a ndctl global config file

2021-05-16 Thread QI Fuli
From: QI Fuli This patch set is to rename monitor.conf to ndctl.conf, and make it a global ndctl configuration file that all ndctl commands can refer to. As this patch set has been pending until now, I would like to know if current idea works or not. If yes, I will finish the documents and

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-16 Thread Mike Rapoport
On Fri, May 14, 2021 at 11:25:43AM +0200, David Hildenbrand wrote: > > #ifdef CONFIG_IA64 > > # include > > @@ -64,6 +65,9 @@ static inline int valid_mmap_phys_addr_range(unsigned > > long pfn, size_t size) > > #ifdef CONFIG_STRICT_DEVMEM > > static inline int page_is_allowed(unsigned

Re: [PATCH v19 3/8] set_memory: allow set_direct_map_*_noflush() for multiple pages

2021-05-16 Thread Mike Rapoport
On Fri, May 14, 2021 at 10:43:29AM +0200, David Hildenbrand wrote: > On 13.05.21 20:47, Mike Rapoport wrote: > > From: Mike Rapoport > > > > The underlying implementations of set_direct_map_invalid_noflush() and > > set_direct_map_default_noflush() allow updating multiple contiguous pages > > at

[GIT PULL] libnvdimm fixes for 5.13-rc2

2021-05-14 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/libnvdimm-fixes-5.13-rc2 ...to receive a regression fix for a bootup crash condition introduced in -rc1 and some other minor fixups. This has all appeared in -next with no reported issues. --- The

[GIT PULL] dax fixes for v5.13-rc2

2021-05-14 Thread Dan Williams
Hi Linus, please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm tags/dax-fixes-5.13-rc2 ...to receive a fix for a hang condition in the filesystem-dax core when exercised by virtiofs. This bug has been there from the beginning, but the condition has not triggered on

Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function

2021-05-14 Thread Darrick J. Wong
On Fri, May 14, 2021 at 08:35:44AM +, ruansy.f...@fujitsu.com wrote: > > > > -Original Message- > > From: Darrick J. Wong > > Subject: Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare > > function > > > > On Tue, May 11, 2021 at 11:09:31AM +0800, Shiyang Ruan wrote: > >

Re: [RFC 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-05-14 Thread Peter Zijlstra
On Thu, May 13, 2021 at 05:56:14PM +0530, kajoljain wrote: > But yes the current read/add/del functions are not adding value. We > could add an arch/platform specific function which could handle the > capturing of the counter data and do the rest of the operation here, > is this approach better?

RE: [PATCH v3 0/3] fsdax: Factor helper functions to simplify the code

2021-05-14 Thread ruansy.f...@fujitsu.com
> > Hi, Dan > > Do you have any comments on this? Ping > > > -- > Thanks, > Ruan Shiyang. > > > -Original Message- > > From: Shiyang Ruan > > Sent: Thursday, April 22, 2021 9:45 PM > > Subject: [PATCH v3 0/3] fsdax: Factor helper functions to simplify the > > code > > > > From:

Re: [PATCH v19 8/8] secretmem: test: add basic selftest for memfd_secret(2)

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret

Re: [PATCH v19 7/8] arch, mm: wire up memfd_secret system call where relevant

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann Acked-by: Catalin Marinas Cc:

Re: [PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-14 Thread David Hildenbrand
#ifdef CONFIG_IA64 # include @@ -64,6 +65,9 @@ static inline int valid_mmap_phys_addr_range(unsigned long pfn, size_t size) #ifdef CONFIG_STRICT_DEVMEM static inline int page_is_allowed(unsigned long pfn) { + if (pfn_valid(pfn) && page_is_secretmem(pfn_to_page(pfn))) +

Re: [PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The secretmem feature is

Re: [PATCH v19 3/8] set_memory: allow set_direct_map_*_noflush() for multiple pages

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability

RE: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function

2021-05-14 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Darrick J. Wong > Subject: Re: [PATCH v5 5/7] fsdax: Dedup file range to use a compare function > > On Tue, May 11, 2021 at 11:09:31AM +0800, Shiyang Ruan wrote: > > With dax we cannot deal with readpage() etc. So, we create a dax > > comparison funciton

Re: [PATCH v19 2/8] riscv/Kconfig: make direct map manipulation options depend on MMU

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have no meaning when CONFIG_MMU is disabled and there is no point to enable them for the nommu case. Add an explicit dependency on MMU for these options.

Re: [PATCH v19 1/8] mmap: make mlock_future_check() global

2021-05-14 Thread David Hildenbrand
On 13.05.21 20:47, Mike Rapoport wrote: From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher Lameter Cc: Dan

Re: [PATCH] MAINTAINERS: Move nvdimm mailing list

2021-05-13 Thread Dan Williams
On Wed, Apr 21, 2021 at 12:05 AM Dan Williams wrote: > > After seeing some users have subscription management trouble, more spam > than other Linux development lists, and considering some of the benefits > of kernel.org hosted lists, nvdimm and persistent memory development is > moving to

linux-nvdimm:如何让业务员业绩迅速提升53

2021-05-13 Thread 致企业的一封信
附件 亲启 ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH v19 0/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-13 Thread James Bottomley
On Thu, 2021-05-13 at 21:47 +0300, Mike Rapoport wrote: > From: Mike Rapoport > > Hi, > > @Andrew, this is based on v5.13-rc1, I can rebase whatever way you > prefer. > > This is an implementation of "secret" mappings backed by a file > descriptor. > > The file descriptor backing secret

[PATCH v19 8/8] secretmem: test: add basic selftest for memfd_secret(2)

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport Cc:

[PATCH v19 7/8] arch, mm: wire up memfd_secret system call where relevant

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann Acked-by: Catalin Marinas Cc: Alexander Viro Cc: Andy Lutomirski Cc:

[PATCH v19 5/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport Introduce "memfd_secret" system call with the ability to create memory areas visible only in the context of the owning process and not mapped not only to other processes but in the kernel page tables as well. The secretmem feature is off by default and the user must

[PATCH v19 6/8] PM: hibernate: disable when there are active secretmem users

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport It is unsafe to allow saving of secretmem areas to the hibernation snapshot as they would be visible after the resume and this essentially will defeat the purpose of secret memory mappings. Prevent hibernation whenever there are active secret memory users. Signed-off-by:

[PATCH v19 4/8] set_memory: allow querying whether set_direct_map_*() is actually enabled

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport On arm64, set_direct_map_*() functions may return 0 without actually changing the linear map. This behaviour can be controlled using kernel parameters, so we need a way to determine at runtime whether calls to set_direct_map_invalid_noflush() and

[PATCH v19 3/8] set_memory: allow set_direct_map_*_noflush() for multiple pages

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport The underlying implementations of set_direct_map_invalid_noflush() and set_direct_map_default_noflush() allow updating multiple contiguous pages at once. Add numpages parameter to set_direct_map_*_noflush() to expose this ability with these APIs. Signed-off-by: Mike

[PATCH v19 2/8] riscv/Kconfig: make direct map manipulation options depend on MMU

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport ARCH_HAS_SET_DIRECT_MAP and ARCH_HAS_SET_MEMORY configuration options have no meaning when CONFIG_MMU is disabled and there is no point to enable them for the nommu case. Add an explicit dependency on MMU for these options. Signed-off-by: Mike Rapoport Reported-by: kernel

[PATCH v19 1/8] mmap: make mlock_future_check() global

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher Lameter Cc: Dan Williams Cc: Dave Hansen Cc: David Hildenbrand

[PATCH v19 0/8] mm: introduce memfd_secret system call to create "secret" memory areas

2021-05-13 Thread Mike Rapoport
From: Mike Rapoport Hi, @Andrew, this is based on v5.13-rc1, I can rebase whatever way you prefer. This is an implementation of "secret" mappings backed by a file descriptor. The file descriptor backing secret memory mappings is created using a dedicated memfd_secret system call The desired

Re: [PATCH v1 07/11] mm/sparse-vmemmap: populate compound pagemaps

2021-05-13 Thread Joao Martins
On 5/10/21 8:19 PM, Dan Williams wrote: > On Thu, May 6, 2021 at 4:02 AM Joao Martins wrote: > [..] +static pte_t * __meminit vmemmap_lookup_address(unsigned long addr) >>> >>> I think this can be replaced with a call to follow_pte(_mm...). >>> >> >> Ah, of course! That would shorten things

Re: [ndctl V5 4/4] Use page size as alignment value

2021-05-13 Thread Verma, Vishal L
On Thu, 2021-05-13 at 11:42 +0530, Santosh Sivaraj wrote: > The alignment sizes passed to ndctl in the tests are all hardcoded to 4k, > the default page size on x86. Change those to the default page size on that > architecture (sysconf/getconf). No functional changes otherwise. > > Signed-off-by:

Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-13 Thread Darrick J. Wong
On Thu, May 13, 2021 at 07:57:47AM +, ruansy.f...@fujitsu.com wrote: > > -Original Message- > > From: Darrick J. Wong > > Subject: Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy() > > > > On Tue, May 11, 2021 at 11:09:27AM +0800, Shiyang Ruan wrote: > > > In the case where

RFQ / New order

2021-05-13 Thread Ibrahim Umori
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [RFC 1/4] drivers/nvdimm: Add perf interface to expose nvdimm performance stats

2021-05-13 Thread kajoljain
On 5/12/21 10:57 PM, Peter Zijlstra wrote: > On Wed, May 12, 2021 at 10:08:21PM +0530, Kajol Jain wrote: >> +static void nvdimm_pmu_read(struct perf_event *event) >> +{ >> +struct nvdimm_pmu *nd_pmu = to_nvdimm_pmu(event->pmu); >> + >> +/* jump to arch/platform specific callbacks if any

Re: [PATCH v2] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable

2021-05-13 Thread Vaibhav Jain
Thanks for looking into this patch Dan, Dan Williams writes: > On Fri, May 7, 2021 at 4:40 AM Vaibhav Jain wrote: >> >> In case performance stats for an nvdimm are not available, reading the >> 'perf_stats' sysfs file returns an -ENOENT error. A better approach is >> to make the 'perf_stats'

[PATCH v3] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable

2021-05-13 Thread Vaibhav Jain
In case performance stats for an nvdimm are not available, reading the 'perf_stats' sysfs file returns an -ENOENT error. A better approach is to make the 'perf_stats' file entirely invisible to indicate that performance stats for an nvdimm are unavailable. So this patch updates

RE: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy()

2021-05-13 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Darrick J. Wong > Subject: Re: [PATCH v5 1/7] fsdax: Introduce dax_iomap_cow_copy() > > On Tue, May 11, 2021 at 11:09:27AM +0800, Shiyang Ruan wrote: > > In the case where the iomap is a write operation and iomap is not > > equal to srcmap after iomap_begin,

RE: [PATCH v5 3/7] fsdax: Add dax_iomap_cow_copy() for dax_iomap_zero

2021-05-13 Thread ruansy.f...@fujitsu.com
> -Original Message- > From: Mika Penttilä > Subject: Re: [PATCH v5 3/7] fsdax: Add dax_iomap_cow_copy() for > dax_iomap_zero > > Hi, > > On 11.5.2021 6.09, Shiyang Ruan wrote: > > Punch hole on a reflinked file needs dax_copy_edge() too. Otherwise, > > data in not aligned area will be

[ndctl V5 4/4] Use page size as alignment value

2021-05-13 Thread Santosh Sivaraj
The alignment sizes passed to ndctl in the tests are all hardcoded to 4k, the default page size on x86. Change those to the default page size on that architecture (sysconf/getconf). No functional changes otherwise. Signed-off-by: Santosh Sivaraj --- test/dpa-alloc.c| 15 ---

[ndctl V5 3/4] papr: Add support to parse save_fail flag for dimm

2021-05-13 Thread Santosh Sivaraj
This will help in getting the dimm fail tests to run on papr family too. Also add nvdimm_test compatibility string for recognizing the test module. Signed-off-by: Santosh Sivaraj --- ndctl/lib/libndctl.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git

[ndctl V5 2/4] test: Don't skip tests if nfit modules are missing

2021-05-13 Thread Santosh Sivaraj
For NFIT to be available ACPI is a must, so don't fail when nfit modules are missing on a platform that doesn't support ACPI. Signed-off-by: Santosh Sivaraj --- test.h| 2 +- test/ack-shutdown-count-set.c | 2 +- test/blk_namespaces.c | 2 +- test/core.c

[ndctl V5 1/4] libndctl: Unify adding dimms for papr and nfit families

2021-05-13 Thread Santosh Sivaraj
In preparation for enabling tests on non-nfit devices, unify both, already very similar, functions into one. This will help in adding all attributes needed for the unit tests. Since the function doesn't fail if some of the dimm attributes are missing, this will work fine on PAPR platforms though

Re: [PATCH 2/4] test: Don't skip tests if nfit modules are missing

2021-05-12 Thread Santosh Sivaraj
Santosh Sivaraj writes: > "Verma, Vishal L" writes: > > Hi Vishal, > >> On Sat, 2021-05-01 at 11:57 +0530, Santosh Sivaraj wrote: >>> "Verma, Vishal L" writes: >>> >>> Hi Vishal, >>> >>> > On Sun, 2021-03-28 at 07:39 +0530, Santosh Sivaraj wrote: >>> > > For NFIT to be available ACPI is a

Re: [PATCH 2/4] test: Don't skip tests if nfit modules are missing

2021-05-12 Thread Santosh Sivaraj
"Verma, Vishal L" writes: Hi Vishal, > On Sat, 2021-05-01 at 11:57 +0530, Santosh Sivaraj wrote: >> "Verma, Vishal L" writes: >> >> Hi Vishal, >> >> > On Sun, 2021-03-28 at 07:39 +0530, Santosh Sivaraj wrote: >> > > For NFIT to be available ACPI is a must, so don't fail when nfit modules >>

Re: [PATCH 2/4] test: Don't skip tests if nfit modules are missing

2021-05-12 Thread Verma, Vishal L
On Wed, 2021-05-12 at 21:00 +, Verma, Vishal L wrote: > > Did you mean for the errno check to be if (errno != ENOENT) ? > This is what was causing the unit test failure for me. This patch on > top fixes it for me: > > diff --git a/test/core.c b/test/core.c > index 44cb277..698bb66 100644 >

Re: [PATCH 2/4] test: Don't skip tests if nfit modules are missing

2021-05-12 Thread Verma, Vishal L
On Sat, 2021-05-01 at 11:57 +0530, Santosh Sivaraj wrote: > "Verma, Vishal L" writes: > > Hi Vishal, > > > On Sun, 2021-03-28 at 07:39 +0530, Santosh Sivaraj wrote: > > > For NFIT to be available ACPI is a must, so don't fail when nfit modules > > > are missing on a platform that doesn't

Re: [PATCH v2] powerpc/papr_scm: Make 'perf_stats' invisible if perf-stats unavailable

2021-05-12 Thread Dan Williams
On Fri, May 7, 2021 at 4:40 AM Vaibhav Jain wrote: > > In case performance stats for an nvdimm are not available, reading the > 'perf_stats' sysfs file returns an -ENOENT error. A better approach is > to make the 'perf_stats' file entirely invisible to indicate that > performance stats for an

  1   2   3   4   5   6   7   8   9   10   >