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 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

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:

[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

[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 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 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 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 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 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:

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

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] 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

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

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,

[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 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 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

[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 ---

[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 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'