[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

[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

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

[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

[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

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

2021-05-12 Thread Santosh Sivaraj
021-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 support ACPI. >>> > > >>> > > Signed-off-by: Santosh Sivaraj >

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

2021-05-12 Thread Santosh Sivaraj
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 +- >&g

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 44

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

2021-05-12 Thread Verma, Vishal L
t; > 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

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

2021-05-01 Thread Santosh Sivaraj
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 | 30

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

2021-05-01 Thread Santosh Sivaraj
y: Santosh Sivaraj >> --- >>  test.h| 2 +- >>  test/ack-shutdown-count-set.c | 2 +- >>  test/blk_namespaces.c | 2 +- >>  test/core.c | 30 ++++-- >>  test/dpa-alloc.c | 2 +- >>

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

2021-04-30 Thread Verma, Vishal L
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 support ACPI. > > Signed-off-by: Santosh Sivaraj > --- >  test.h | 2 +- >  te

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

2021-04-06 Thread Santosh Sivaraj
"Aneesh Kumar K.V" writes: > Santosh Sivaraj writes: > >> 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

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

2021-04-05 Thread Aneesh Kumar K.V
Santosh Sivaraj writes: > 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-

[ndctl PATCH] papr: ndtest: Enable smart test cases

2021-03-30 Thread 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 --- The patche depends on the ndctl patchset https://lore.kernel.org/linux-nvdimm/87eeg010sf@santosiv.in.ibm.com/T/

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

2021-03-27 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

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

2021-03-25 Thread Santosh Sivaraj
APR; >> > > +} >> > >> > Instead of a blind default, can we perform a similar check for presence of >> > PAPR too? >> > >> >> Yes, I wanted to do that, but there is no reliable way of check that; there >> is >> no ofnode befor

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

2021-03-24 Thread Verma, Vishal L
; > Yes, I wanted to do that, but there is no reliable way of check that; there is > no ofnode before module load, and there won't be any PAPR specific DT entries > if > the platform is not Power. > > I also test the 'ndtest' module on x86 with NDCTL_TEST_FAMILY environme

Re: [ndctl PATCH v3 1/4] libndctl: test enablement for non-nfit devices

2021-03-18 Thread Santosh Sivaraj
Yes, that's right. I will fix that up in the next version. Thanks, Santosh > >> >> Signed-off-by: Santosh Sivaraj >> --- >>  ndctl/lib/libndctl.c | 103 --- >>  1 file changed, 38 insertions(+), 65 deletions(-) >> >>

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

2021-03-18 Thread Santosh Sivaraj
y: Santosh Sivaraj >> --- >>  test.h| 2 +- >>  test/ack-shutdown-count-set.c | 2 +- >>  test/blk_namespaces.c | 2 +- >>  test/core.c | 23 +++++-- >>  test/dpa-alloc.c | 2 +- >>  test/dsm-fail.c

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

2021-03-17 Thread Verma, Vishal L
On Thu, 2021-03-11 at 13:16 +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 support ACPI. > > Signed-off-by: Santosh Sivaraj > --- >  test.h | 2 +- >  te

Re: [ndctl PATCH v3 1/4] libndctl: test enablement for non-nfit devices

2021-03-17 Thread Verma, Vishal L
- >  1 file changed, 38 insertions(+), 65 deletions(-) > > v3: > * Drop patch which skips SMART tests, smart test enablement will be posted >   soon. > > v2: > * Patch 2: Fix a bug, I skip erroring out if PAPR family, but condition had >   INTEL family instead. That change

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

2021-03-10 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 PATCH v3 1/4] libndctl: test enablement for non-nfit devices

2021-03-10 Thread Santosh Sivaraj
Sivaraj --- ndctl/lib/libndctl.c | 103 --- 1 file changed, 38 insertions(+), 65 deletions(-) v3: * Drop patch which skips SMART tests, smart test enablement will be posted soon. v2: * Patch 2: Fix a bug, I skip erroring out if PAPR family, but condition

[ndctl PATCH] test/libndctl: Use ndctl_region_set_ro() to change disk read-only state

2021-03-09 Thread Dan Williams
Kernel commit 52f019d43c22 ("block: add a hard-readonly flag to struct gendisk") broke the read-only management test, by fixing the broken behavior that BLKROSET could make a block device read-write even when the disk is read-only. The fix (see Link:) propagates changes of the region

[PATCH v18 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2021-03-03 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: [ndctl PATCH 2/2] ndctl/test: add checking the presence of jq command ahead

2021-03-01 Thread Santosh Sivaraj
QI Fuli writes: > Due to the lack of jq command, the result of the test will be 'fail'. > This patch adds checking the presence of jq commmand ahead. > If there is no jq command in the system, the test will be marked as 'skip'. > > Signed-off-by: QI Fuli > Link: https://git

[ndctl PATCH 2/2] ndctl/test: add checking the presence of jq command ahead

2021-03-01 Thread QI Fuli
Due to the lack of jq command, the result of the test will be 'fail'. This patch adds checking the presence of jq commmand ahead. If there is no jq command in the system, the test will be marked as 'skip'. Signed-off-by: QI Fuli Link: https://github.com/pmem/ndctl/issues/141 --- test/daxdev

RE: [ndctl PATCH] ndctl/test: add checking the presence of jq command ahead

2021-02-26 Thread qi.f...@fujitsu.com
> > Hi QI, > > QI Fuli writes: > > > Due to the lack of jq command, the result of the test will be 'fail'. > > This patch adds checking the presence of jq commmand ahead. > > If there is no jq command in the system, the test will be marked as 'skip'. > &g

Re: [ndctl PATCH] ndctl/test: add checking the presence of jq command ahead

2021-02-25 Thread Santosh Sivaraj
Hi QI, QI Fuli writes: > Due to the lack of jq command, the result of the test will be 'fail'. > This patch adds checking the presence of jq commmand ahead. > If there is no jq command in the system, the test will be marked as 'skip'. > > Signed-off-by: QI Fuli > Link:

[PATCH v2 3/4] test/libndctl: skip SMART tests on non-nfit devices

2021-02-24 Thread Santosh Sivaraj
This is just a temporary check till the new module has SMART capabilities emulated. Signed-off-by: Santosh Sivaraj --- test/libndctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libndctl.c b/test/libndctl.c index 5043ae0..001f78a 100644 --- a/test/libndctl.c

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

2021-02-24 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

Re: [PATCH daxctl v2 5/5] daxctl/test: Add a test for daxctl-create with align

2021-02-22 Thread R Samudra arc
*In-Reply-To* ___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [PATCH daxctl v2 5/5] daxctl/test: Add a test for daxctl-create with align

2021-02-22 Thread R Samudra arc
___ Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org To unsubscribe send an email to linux-nvdimm-le...@lists.01.org

Re: [ndctl PATCH v2 07/13] test: introduce a libcxl unit test

2021-02-22 Thread Ben Widawsky
On 21-02-18 19:03:25, Vishal Verma wrote: > Add a new 'libcxl' test containing a basic harness for unit testing > libcxl APIs. Include sanity tests such as making sure the test is > running in an emulated environment, the ability to load and unload > modules. Submit an 'Identify Dev

RE: [ndctl PATCH] ndctl/test: add checking the presence of jq command ahead

2021-02-21 Thread qi.f...@fujitsu.com
Ping > -Original Message- > From: QI Fuli > Sent: Wednesday, February 3, 2021 10:21 PM > To: linux-nvdimm@lists.01.org > Cc: QI Fuli > Subject: [ndctl PATCH] ndctl/test: add checking the presence of jq command > ahead > > Due to the lack of jq comm

[ndctl PATCH v2 13/13] test/libcxl: introduce a command size fuzzing test

2021-02-18 Thread Vishal Verma
Add a new test within test/libcxl which tries different combinations of valid and invalid payload sizes, and ensures that the kernel responds as expected by either succeeding, erroring out the ioctl, adjusting the out.size in the response etc. The fuzz set is a statically defined array which

[ndctl PATCH v2 11/13] test/libcxl: add a test for {set, get}_lsa commands

2021-02-18 Thread Vishal Verma
Add a test to store a static string in the label storage area using the SET_LSA mailbox command, and retrieve it using the GET_LSA command. Compare the strings sent and received and ensure they match. Signed-off-by: Vishal Verma --- test/libcxl.c| 134

[ndctl PATCH v2 07/13] test: introduce a libcxl unit test

2021-02-18 Thread Vishal Verma
Add a new 'libcxl' test containing a basic harness for unit testing libcxl APIs. Include sanity tests such as making sure the test is running in an emulated environment, the ability to load and unload modules. Submit an 'Identify Device' command, and verify that it succeeds, and the identify data

[ndctl PATCH v2 06/13] test: rename 'ndctl_test_*' helpers to 'test_*'

2021-02-18 Thread Vishal Verma
In preparation for using the test harness for libcxl, rename ndctl_test_* helpers to make them more generic. Signed-off-by: Vishal Verma --- test.h| 16 +-- ndctl/bat.c | 6 ++-- ndctl/test.c | 6 ++-- test/ack-shutdown-count

[ndctl PATCH v2 05/13] test: rename 'ndctl_test' to 'test_ctx'

2021-02-18 Thread Vishal Verma
In preparation for using the common test core for libcxl tests, rename the 'ndctl_test' structure to 'test_ctx' Signed-off-by: Vishal Verma --- test.h| 36 +-- ndctl/bat.c | 2 +- ndctl/test.c | 2

[PATCH v17 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2021-02-08 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

[ndctl PATCH] ndctl/test: add checking the presence of jq command ahead

2021-02-03 Thread QI Fuli
Due to the lack of jq command, the result of the test will be 'fail'. This patch adds checking the presence of jq commmand ahead. If there is no jq command in the system, the test will be marked as 'skip'. Signed-off-by: QI Fuli Link: https://github.com/pmem/ndctl/issues/141 --- test/daxdev

Re: [RFC v5 1/7] testing/nvdimm: Add test module for non-nfit platforms

2021-01-27 Thread Dan Williams
On Mon, Dec 14, 2020 at 2:39 AM Santosh Sivaraj wrote: > > The current test module cannot be used for testing platforms (make check) > that do not have support for NFIT. In order to get the ndctl tests working, > we need a module which can emulate NVDIMM devices without relying on

[PATCH v16 11/11] secretmem: test: add basic selftest for memfd_secret(2)

2021-01-21 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 v15 11/11] secretmem: test: add basic selftest for memfd_secret(2)

2021-01-20 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

[ndctl PATCH 4/4] ndctl/test: Exercise soft_offline_page() corner cases

2021-01-12 Thread Dan Williams
Test soft-offline injection into PMEM namespace metadata and user mapped space. Both attempts should fail on kernels with a pfn_to_online_page() implementation that considers subsection ZONE_DEVICE ranges. Signed-off-by: Dan Williams --- test/dax-poison.c | 19 +++ test/device

[ndctl PATCH 3/4] ndctl/test: Fix device-dax mremap() test

2021-01-12 Thread Dan Williams
The test_dax_remap() test is a regression check for mishandling of mremap() in the presence of pmd_devmap(). My understanding is that it was a fuzzing condition not something an application would want to do in practice. On recent kernels with commit 73d5e0629919 ("mremap: check if it's pos

[ndctl PATCH 2/4] ndctl/test: Cleanup unnecessary out label

2021-01-12 Thread Dan Williams
There are no cleanup actions to take in test_dax_remap(), and it is already inconsistent for having a single return point, so remove the out label. Signed-off-by: Dan Williams --- test/dax-pmd.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/test/dax-pmd.c b

[ndctl PATCH 1/4] ndctl/test: Fix btt expect table compile warning

2021-01-12 Thread Dan Williams
../test/libndctl.c:989:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 989 | unsigned long long expect_table[][2] = { | ^~~~ ...just move the declaration a few lines up. Signed-off-by: Dan Williams --- test/libndctl.c | 12

[ndctl PATCH 0/4] ndctl/test: softoffline, mremap, and misc fixups

2021-01-12 Thread Dan Williams
Vishal, Here's a collection of test updates. It adds support for regression testing pfn_to_online_page() which suffered from a lack of precision in mixed zone memory-sections. Updates the mremap() regression to accept failure as an option (the behavior in v5.11-rc1+). Fixes a warning, and ditches

[ndctl 4/5] test/libndctl: skip SMART tests on non-nfit devices

2020-12-21 Thread Santosh Sivaraj
This is just a temporary check till the new module has SMART capabilities emulated. Signed-off-by: Santosh Sivaraj --- test/libndctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libndctl.c b/test/libndctl.c index 5043ae0..001f78a 100644 --- a/test/libndctl.c

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

2020-12-21 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 1/5] libndctl: test enablement for non-nfit devices

2020-12-21 Thread Santosh Sivaraj
Unify adding dimms for papr and nfit families, this will help in adding all attributes needed for the unit tests too. We don't fail adding a dimm if some of the dimm attributes are missing, so this will work fine on PAPR platforms where most dimm attributes are provided. Signed-off-by: Santosh

[PATCH 5/7] ndtest: Add regions and mappings to the test buses

2020-12-21 Thread Santosh Sivaraj
The bus config array is used to hold the regions and the respective mappings. This config based interface enables to change the dimm/region/namespace layouts easily. Signed-off-by: Santosh Sivaraj --- tools/testing/nvdimm/test/ndtest.c | 352 + tools/testing/nvdimm

[PATCH 1/7] testing/nvdimm: Add test module for non-nfit platforms

2020-12-21 Thread Santosh Sivaraj
The current test module cannot be used for testing platforms (make check) that do not have support for NFIT. In order to get the ndctl tests working, we need a module which can emulate NVDIMM devices without relying on ACPI/NFIT. The aim of this proposed module is to implement a similar

Re: [PATCH V3 10/10] x86/pks: Add PKS test code

2020-12-18 Thread Dan Williams
On Thu, Dec 17, 2020 at 8:05 PM Ira Weiny wrote: > > On Thu, Dec 17, 2020 at 12:55:39PM -0800, Dave Hansen wrote: > > On 11/6/20 3:29 PM, ira.we...@intel.com wrote: > > > + /* Arm for context switch test */ > > > + write(fd, "1", 1); >

Re: [PATCH V3 10/10] x86/pks: Add PKS test code

2020-12-17 Thread Ira Weiny
On Thu, Dec 17, 2020 at 12:55:39PM -0800, Dave Hansen wrote: > On 11/6/20 3:29 PM, ira.we...@intel.com wrote: > > + /* Arm for context switch test */ > > + write(fd, "1", 1); > > + > > + /* Context swi

[PATCH daxctl v2 5/5] daxctl/test: add a test for daxctl-create with input file

2020-12-17 Thread Joao Martins
The test creates a multi-range device (4 mappings) using the same setup as one of the tests. Afterwards we validate that the size/nr-mappings are the same as the original test. Signed-off-by: Joao Martins --- test/daxctl-create.sh | 31 ++- 1 file changed, 30

Re: [PATCH V3 10/10] x86/pks: Add PKS test code

2020-12-17 Thread Dave Hansen
On 11/6/20 3:29 PM, ira.we...@intel.com wrote: > + /* Arm for context switch test */ > + write(fd, "1", 1); > + > + /* Context switch out... */ > + sleep(4); > + > + /* Check msr restored */ &

Re: [RFC v5 1/7] testing/nvdimm: Add test module for non-nfit platforms

2020-12-16 Thread Santosh Sivaraj
Dan Williams writes: > On Mon, Dec 14, 2020 at 2:39 AM Santosh Sivaraj wrote: >> >> The current test module cannot be used for testing platforms (make check) >> that do not have support for NFIT. In order to get the ndctl tests working, >> we need a module which

[PATCH daxctl v2 5/5] daxctl/test: Add a test for daxctl-create with align

2020-12-16 Thread Joao Martins
Add a test which uses the newly added --align property which allows a device created with daxctl create-device to select its page size. If the available size is bigger than 1G then use 1G as page size, otherwise use 2M. Signed-off-by: Joao Martins --- test/daxctl-create.sh | 29

Re: [PATCH ndctl v2 10/10] daxctl/test: Add tests for dynamic dax regions

2020-12-16 Thread Joao Martins
pace allocation >>>> code paths particularly: >>>> >>>> 1) zeroing out and reconfiguring a dax device from >>>> its current size to be max available and back to initial >>>> size >>>> >>>> 2) creates devic

Re: [PATCH ndctl v2 10/10] daxctl/test: Add tests for dynamic dax regions

2020-12-16 Thread Verma, Vishal L
t; > > > > 1) zeroing out and reconfiguring a dax device from > > > its current size to be max available and back to initial > > > size > > > > > > 2) creates devices from holes in the beginning, > > > middle of the region. > > > &g

Re: [PATCH ndctl v2 10/10] daxctl/test: Add tests for dynamic dax regions

2020-12-16 Thread Verma, Vishal L
t; > > > > 1) zeroing out and reconfiguring a dax device from > > > its current size to be max available and back to initial > > > size > > > > > > 2) creates devices from holes in the beginning, > > > middle of the region. > > > &g

Re: [RFC v5 1/7] testing/nvdimm: Add test module for non-nfit platforms

2020-12-15 Thread Dan Williams
On Mon, Dec 14, 2020 at 2:39 AM Santosh Sivaraj wrote: > > The current test module cannot be used for testing platforms (make check) > that do not have support for NFIT. In order to get the ndctl tests working, > we need a module which can emulate NVDIMM devices without relying on

[ndctl RFC v5 4/5] test/libndctl: skip SMART tests on non-nfit devices

2020-12-14 Thread Santosh Sivaraj
This is just a temporary check till the new module has SMART capabilities emulated. Signed-off-by: Santosh Sivaraj --- test/libndctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/libndctl.c b/test/libndctl.c index 5043ae0..001f78a 100644 --- a/test/libndctl.c

[ndctl RFC v5 2/5] test: Don't skip tests if nfit modules are missing

2020-12-14 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 RFC v5 1/5] libndctl: test enablement for non-nfit devices

2020-12-14 Thread Santosh Sivaraj
Unify adding dimms for papr and nfit families, this will help in adding all attributes needed for the unit tests too. We don't fail adding a dimm if some of the dimm attributes are missing, so this will work fine on PAPR platforms where most dimm attributes are provided. Signed-off-by: Santosh

[RFC v5 5/7] ndtest: Add regions and mappings to the test buses

2020-12-14 Thread Santosh Sivaraj
The bus config array is used to hold the regions and the respective mappings. This config based interface enables to change the dimm/region/namespace layouts easily. Signed-off-by: Santosh Sivaraj --- tools/testing/nvdimm/test/ndtest.c | 352 + tools/testing/nvdimm

[RFC v5 1/7] testing/nvdimm: Add test module for non-nfit platforms

2020-12-14 Thread Santosh Sivaraj
The current test module cannot be used for testing platforms (make check) that do not have support for NFIT. In order to get the ndctl tests working, we need a module which can emulate NVDIMM devices without relying on ACPI/NFIT. The aim of this proposed module is to implement a similar

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

2020-12-12 Thread Mike Rapoport
es sense to me, because: > > a) secretmem.h is not in the uapi, which this selftests/vm build system >expects (it runs "make headers_install" for us, which is *not* going >to pick up items in the kernel include dirs), and > > b) There is nothing in secretmem

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

2020-12-11 Thread John Hubbard
akes sense to me, because: a) secretmem.h is not in the uapi, which this selftests/vm build system expects (it runs "make headers_install" for us, which is *not* going to pick up items in the kernel include dirs), and b) There is nothing in secretmem.h that this test uses, anywa

Re: [PATCH ndctl v2 10/10] daxctl/test: Add tests for dynamic dax regions

2020-12-10 Thread Joao Martins
ble and back to initial >> size >> >> 2) creates devices from holes in the beginning, >> middle of the region. >> >> 3) reconfigures devices in a interleaving fashion >> >> 4) test adjust of the region towards beginning and end >> >> The tests assume

Re: [PATCH RFC v3] testing/nvdimm: Add test module for non-nfit platforms

2020-12-08 Thread Dan Williams
nvdimm)); > >> + return -ENOMEM; > >> + } > >> + > >> + p->mmio = mmio; > >> + > >> + return 0; > >> +} > > > > Are there any ppc nvdimm that will use BLK mode? As far as I know > &g

Re: [PATCH RFC v3] testing/nvdimm: Add test module for non-nfit platforms

2020-12-08 Thread Aneesh Kumar K.V
far as I know BLK-mode is only an abandoned mechanism in the ACPI specification, not anything that has made it into a shipping implementation. I'd prefer to not extend it if it's not necessary. That is correct. There is no BLK mode/type usage in ppc64. But IIUC, we also had difficulty in isolating t

Re: [ndctl RFC v4 1/3] libndctl: test enablement for non-nfit devices

2020-12-08 Thread Santosh Sivaraj
Dan Williams writes: > On Sun, Nov 8, 2020 at 4:21 AM Santosh Sivaraj wrote: >> >> Don't fail is nfit module is missing, this will happen in >> platforms that don't have ACPI support. Add attributes to >> PAPR dimm family that are independent of platforms like the

Re: [ndctl RFC v4 1/3] libndctl: test enablement for non-nfit devices

2020-12-07 Thread Dan Williams
On Sun, Nov 8, 2020 at 4:21 AM Santosh Sivaraj wrote: > > Don't fail is nfit module is missing, this will happen in > platforms that don't have ACPI support. Add attributes to > PAPR dimm family that are independent of platforms like the > test dimms. > > Signed-of

Re: [PATCH RFC v3] testing/nvdimm: Add test module for non-nfit platforms

2020-12-07 Thread Dan Williams
On Mon, Oct 5, 2020 at 6:01 PM Santosh Sivaraj wrote: > > The current test module cannot be used for testing platforms (make check) > that do no have support for NFIT. In order to get the ndctl tests working, > we need a module which can emulate NVDIMM devices without relying on

[PATCH v14 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-12-02 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 v13 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-30 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 v12 10/10] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-25 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 v11 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-24 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 v10 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-23 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 v9 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-17 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 v8 9/9] secretmem: test: add basic selftest for memfd_secret(2)

2020-11-10 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

[ndctl RFC v4 1/3] libndctl: test enablement for non-nfit devices

2020-11-08 Thread Santosh Sivaraj
Don't fail is nfit module is missing, this will happen in platforms that don't have ACPI support. Add attributes to PAPR dimm family that are independent of platforms like the test dimms. Signed-off-by: Santosh Sivaraj --- ndctl/lib/libndctl.c | 52

[RFC v4 1/1] testing/nvdimm: Add test module for non-nfit platforms

2020-11-08 Thread Santosh Sivaraj
The current test module cannot be used for testing platforms (make check) that do not have support for NFIT. In order to get the ndctl tests working, we need a module which can emulate NVDIMM devices without relying on ACPI/NFIT. The aim of this proposed module is to implement a similar

Test banks online

2020-11-07 Thread kenneth Parker
TestBanksOnline is the best website to https://testbanksonline.com/ ">Buy Test Banks Online. Great study materials like https://testbanksonline.com/tbsm/solution-manual-for-accounting-and-auditing-research-tools-and-strategies-8th-edition/ ">Solution Manual For Accounting And A

[PATCH V3 10/10] x86/pks: Add PKS test code

2020-11-06 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic

[PATCH V2 10/10] x86/pks: Add PKS test code

2020-11-02 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic

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

2020-10-26 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 10/10] x86/pks: Add PKS test code

2020-10-22 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic

Re: [PATCH] x86, libnvdimm/test: Remove COPY_MC_TEST

2020-10-20 Thread Borislav Petkov
|3 - > arch/x86/include/asm/copy_mc_test.h | 75 - > arch/x86/lib/copy_mc.c |4 - > arch/x86/lib/copy_mc_64.S | 10 --- > tools/testing/nvdimm/test/nfit.c| 103 > --- > 5 files changed, 195 deletions(-)

[PATCH] x86, libnvdimm/test: Remove COPY_MC_TEST

2020-10-19 Thread Dan Williams
| 10 --- tools/testing/nvdimm/test/nfit.c| 103 --- 5 files changed, 195 deletions(-) delete mode 100644 arch/x86/include/asm/copy_mc_test.h diff --git a/arch/x86/Kconfig.debug b/arch/x86/Kconfig.debug index 27b5e2bc6a01..80b57e7f4947 100644 ---

Re: [PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-14 Thread Ira Weiny
On Tue, Oct 13, 2020 at 12:02:07PM -0700, Dave Hansen wrote: > On 10/9/20 12:42 PM, ira.we...@intel.com wrote: > > #ifdef CONFIG_X86_32 > > /* > > * We can fault-in kernel-space virtual memory on-demand. The > > diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h > > index

Re: [PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-13 Thread Dave Hansen
On 10/9/20 12:42 PM, ira.we...@intel.com wrote: > #ifdef CONFIG_X86_32 > /* >* We can fault-in kernel-space virtual memory on-demand. The > diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h > index cc3510cde64e..f9552bd9341f 100644 > --- a/include/linux/pkeys.h > +++

[PATCH RFC PKS/PMEM 02/58] x86/pks/test: Add testing for global option

2020-10-09 Thread ira . weiny
From: Ira Weiny Now that PKS can be enabled globaly (for all threads) add a test which spawns a thread and tests the same PKS functionality. The test enables/disables PKS in 1 thread while attempting to access the page in another thread. We use the same test array as in the 'local' PKS testing

[PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-09 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic

[PATCH RFC ndctl 9/9] test: Disable paths which are possibly wrong

2020-10-06 Thread Santosh Sivaraj
Signed-off-by: Santosh Sivaraj --- test/dpa-alloc.c | 9 - test/dsm-fail.c | 8 +++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/test/dpa-alloc.c b/test/dpa-alloc.c index b757b9a..a933b54 100644 --- a/test/dpa-alloc.c +++ b/test/dpa-alloc.c @@ -277,11 +277,18

  1   2   3   4   5   6   7   8   9   10   >