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 be

[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

[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

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

2021-05-08 Thread Ira Weiny
On Sat, May 08, 2021 at 10:06:42AM +0530, 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

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

2021-05-07 Thread Vaibhav Jain
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 ibm,persistent-memory:ibm,pmemory@44104001: Faile

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

2021-05-05 Thread Ira Weiny
On Thu, May 06, 2021 at 12:46:06AM +0530, 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

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

2021-05-05 Thread Vaibhav Jain
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 ibm,persistent-memory:ibm,pmemory@44104001: Faile

[ndctl PATCH 2/2] Error injection support for PAPR

2021-04-19 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 PATCH 1/2] inject-error: Remove assumptions on error injection support

2021-04-19 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 --- This patch series is on top

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

2021-04-18 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(-) This patch

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

2021-04-18 Thread kajoljain
021 at 06:10:26PM +0530, Vaibhav Jain wrote: >>>>> Currently drc_pmem_qeury_stats() generates a dev_err in case >>>>> "Enable Performance Information Collection" feature is disabled from >>>>> HMC. The error is of the form below: >>>>> >

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

2021-04-15 Thread Dan Williams
;> "Enable Performance Information Collection" feature is disabled from > >> HMC. The error is of the form below: > >> > >> papr_scm ibm,persistent-memory:ibm,pmemory@44104001: Failed to query > >> performance stats, Err:-10 > >> >

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

2021-04-15 Thread Vaibhav Jain
c_pmem_qeury_stats() generates a dev_err in case >> >> "Enable Performance Information Collection" feature is disabled from >> >> HMC. The error is of the form below: >> >> >> >> papr_scm ibm,persistent-memory:ibm,pmemory@44104001: Failed to query &

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

2021-04-15 Thread Vaibhav Jain
Thanks for looking into this Dan, Dan Williams writes: > On Wed, Apr 14, 2021 at 5:40 AM Vaibhav Jain wrote: >> >> Currently drc_pmem_qeury_stats() generates a dev_err in case >> "Enable Performance Information Collection" feature is disabled from >>

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

2021-04-14 Thread Dan Williams
On Wed, Apr 14, 2021 at 5:40 AM Vaibhav Jain wrote: > > Currently drc_pmem_qeury_stats() generates a dev_err in case > "Enable Performance Information Collection" feature is disabled from > HMC. The error is of the form below: > > papr_scm ibm,persistent-memory:

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

2021-04-14 Thread Ira Weiny
se > >> "Enable Performance Information Collection" feature is disabled from > >> HMC. The error is of the form below: > >> > >> papr_scm ibm,persistent-memory:ibm,pmemory@44104001: Failed to query > >> performance stats, Err:-10 > >> > &

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

2021-04-14 Thread Vaibhav Jain
Thanks for looking into this patch Ira, Ira Weiny writes: > On Wed, Apr 14, 2021 at 06:10:26PM +0530, Vaibhav Jain wrote: >> Currently drc_pmem_qeury_stats() generates a dev_err in case >> "Enable Performance Information Collection" feature is disabled from >>

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

2021-04-14 Thread Ira Weiny
On Wed, Apr 14, 2021 at 06:10:26PM +0530, Vaibhav Jain wrote: > Currently drc_pmem_qeury_stats() generates a dev_err in case > "Enable Performance Information Collection" feature is disabled from > HMC. The error is of the form below: > > papr_scm ibm,persistent-me

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

2021-04-14 Thread Vaibhav Jain
Currently drc_pmem_qeury_stats() generates a dev_err in case "Enable Performance Information Collection" feature is disabled from HMC. The error is of the form below: papr_scm ibm,persistent-memory:ibm,pmemory@44104001: Failed to query performance stats, Err:-10 This err

[PATCH v7 16/16] bcache: more fix for compiling error when BCACHE_NVM_PAGES disabled

2021-04-09 Thread Coly Li
This patch fixes the compiling error when BCACHE_NVM_PAGES is disabled. The change could be added into previous nvm-pages patches, so that this patch can be dropped in next nvm-pages series. Signed-off-by: Coly Li Cc: Jianpeng Ma Cc: Qiaowei Ren --- drivers/md/bcache/nvm-pages.c | 4

**Delivery Address Error [Please confirm]**

2021-04-04 Thread DHL EXPRESS
  Dear linux-nvdimm,   Your package that was sent through our channel has arrived but we are unable to deliver it to you due to incomplete delivery details.   Please  Click Here   to view and provide us with the required details

[PATCH v2 3/5] dax-device: Fix error path in dax_driver_register

2021-02-05 Thread Uwe Kleine-König
The static variable match_always_count is supposed to track if there is a driver registered that has .match_always set. If driver_register() fails, the previous increment must be undone. Signed-off-by: Uwe Kleine-König --- drivers/dax/bus.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH 2/3] dax-device: Fix error path in dax_driver_register

2021-01-27 Thread Uwe Kleine-König
The static variable match_always_count is supposed to track if there is a driver registered that has .match_always set. If driver_register() fails, the previous increment must be undone. Signed-off-by: Uwe Kleine-König --- drivers/dax/bus.c | 10 +- 1 file changed, 9 insertions(+), 1

[PATCH 4.14 15/50] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-22 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH 4.9 10/35] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-22 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH 4.4 07/31] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-22 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH 5.10 081/152] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-18 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH 5.4 38/76] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-18 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH 4.19 19/43] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-18 Thread Greg Kroah-Hartman
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 4.4 4/8] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 4.9 4/8] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 4.14 09/13] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 4.19 11/16] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 5.4 18/28] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

[PATCH AUTOSEL 5.10 34/51] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-12 Thread Sasha Levin
From: Randy Dunlap [ Upstream commit 8a48c0a3360bf2bf4f40c980d0ec216e770e58ee ] fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit

ERROR ID: Mail-box storage full UPGRADE NOW

2021-01-07 Thread lists . 01 . org
linux-nvdimm@lists.01.org mailbox is full.     5.36 GB 1.98 GB Your mailbox can no longer send or receive messages. update your storage  UPDATE STORAGE Mailbox address:linux-nvdimm@lists.01.org___ Linux-nvdimm mailing list --

Re: [PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-04 Thread Vineet Gupta
On 1/4/21 7:44 PM, Randy Dunlap wrote: > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in . > > ../fs/dax.c: In function 'copy_cow_page_dax': > ../fs/dax.c:702:2: error: implicit de

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Al Viro
On Thu, Dec 31, 2020 at 08:29:14PM -0800, Randy Dunlap wrote: > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > > ../

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Dan Williams
On Mon, Jan 4, 2021 at 7:47 PM Randy Dunlap wrote: > > On 1/4/21 12:13 PM, Dan Williams wrote: > > On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: > >> > >> fs/dax.c uses copy_user_page() but ARC does not provide that interface, > >> result

[PATCH v3] arch/arc: add copy_user_page() to to fix build error on ARC

2021-01-04 Thread Randy Dunlap
fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in . ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit declaration of function 'copy_user_page'; did you mean 'copy_to_user_page'? [-Werror

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Randy Dunlap
On 1/4/21 12:13 PM, Dan Williams wrote: > On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: >> >> fs/dax.c uses copy_user_page() but ARC does not provide that interface, >> resulting in a build error. >> >> Provide copy_user_page() in (beside copy_page(

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Matthew Wilcox
On Mon, Jan 04, 2021 at 12:13:02PM -0800, Dan Williams wrote: > On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: > > +++ lnx-511-rc1/fs/dax.c > > @@ -25,6 +25,7 @@ > > #include > > #include > > #include > > +#include > > I would expect this to come from one of the linux/ includes like

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Dan Williams
On Thu, Dec 31, 2020 at 8:29 PM Randy Dunlap wrote: > > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > >

Re: [PATCH v2] fs/dax: include to fix build error on ARC

2021-01-04 Thread Ira Weiny
On Thu, Dec 31, 2020 at 08:29:14PM -0800, Randy Dunlap wrote: > fs/dax.c uses copy_user_page() but ARC does not provide that interface, > resulting in a build error. > > Provide copy_user_page() in (beside copy_page()) and > add to fs/dax.c to fix the build error. > > ../

[PATCH v2] fs/dax: include to fix build error on ARC

2020-12-31 Thread Randy Dunlap
fs/dax.c uses copy_user_page() but ARC does not provide that interface, resulting in a build error. Provide copy_user_page() in (beside copy_page()) and add to fs/dax.c to fix the build error. ../fs/dax.c: In function 'copy_cow_page_dax': ../fs/dax.c:702:2: error: implicit declaration

Re: [PATCH -next] device-dax: change error code from postive to negative in range_parse

2020-11-13 Thread Joao Martins
On 10/26/20 11:04 AM, Zhang Qilong wrote: > call trace: > -> mapping_store() > -> range_parse() > .. > rc = -ENXIO; > > According to context, the error return value of > range_parse should be negative. > > Si

[PATCH -next] device-dax: change error code from postive to negative in range_parse

2020-10-26 Thread Zhang Qilong
call trace: -> mapping_store() -> range_parse() .. rc = -ENXIO; According to context, the error return value of range_parse should be negative. Signed-off-by: Zhang Qilong --- drivers/dax/bus.c | 2 +- 1 file changed, 1 ins

[PATCH RFC ndctl 7/9] test/libndctl: Don't check for error flags on non-nfit dimms

2020-10-06 Thread Santosh Sivaraj
Signed-off-by: Santosh Sivaraj --- test/libndctl.c | 61 +++-- 1 file changed, 34 insertions(+), 27 deletions(-) diff --git a/test/libndctl.c b/test/libndctl.c index aaa72dc..ae87807 100644 --- a/test/libndctl.c +++ b/test/libndctl.c @@ -575,7 +575,8

[ndctl PATCH 2/2] ndctl/inject-error: remove logically dead code

2020-10-01 Thread Vishal Verma
Static analysis reports that the bb != NULL check is redundant because ndctl_namespace_bb_foreach already uses that as a loop condition. Remove it. Signed-off-by: Vishal Verma --- ndctl/inject-error.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ndctl/inject-error.c

Re: error: redefinition of ‘dax_supported’

2020-09-21 Thread Nick Desaulniers
On Mon, Sep 21, 2020 at 11:47 AM Dan Williams wrote: > > On Mon, Sep 21, 2020 at 11:35 AM Nick Desaulniers > wrote: > > > > Hello DAX maintainers, > > I noticed our PPC64LE builds failing last night: > > https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/388047043 > >

error: redefinition of ‘dax_supported’

2020-09-21 Thread Nick Desaulniers
Hello DAX maintainers, I noticed our PPC64LE builds failing last night: https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/388047043 https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/388047056

Re: error: redefinition of ‘dax_supported’

2020-09-21 Thread Dan Williams
On Mon, Sep 21, 2020 at 11:35 AM Nick Desaulniers wrote: > > Hello DAX maintainers, > I noticed our PPC64LE builds failing last night: > https://travis-ci.com/github/ClangBuiltLinux/continuous-integration/jobs/388047043 >

Re: [linux-nvdimm:libnvdimm-fixes 2/3] drivers/dax/super.c:325:6: error: redefinition of 'dax_supported'

2020-09-21 Thread Jan Kara
3 > # save the attached .config to linux build tree > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross > ARCH=x86_64 > > If you fix the issue, kindly add following tag as appropriate > Reported-by: kernel test robot > > All errors (new ones

[linux-nvdimm:libnvdimm-fixes 2/3] drivers/dax/super.c:325:6: error: redefinition of 'dax_supported'

2020-09-20 Thread kernel test robot
=x86_64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/dax/super.c:325:6: error: redefinition of 'dax_supported' bool dax_supported(struct dax_device *dax_dev, struct block_

[linux-nvdimm:libnvdimm-fixes 2/3] drivers/dax/super.c:31:5: error: redefinition of 'dax_read_lock'

2020-09-19 Thread kernel test robot
x/pfn_t.h:76:9: note: in expansion of macro 'pfn_valid' 76 | return pfn_valid(pfn_t_to_pfn(pfn)); | ^ drivers/dax/super.c: At top level: >> drivers/dax/super.c:31:5: error: redefinition of 'dax_read_lock' 31 | int dax_read_lock(void) | ^~~

Re: [PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-10 Thread Coly Li
On 2020/9/11 04:29, John Pittman wrote: > But it should be moved prior to the two bdev_dax_pgoff() checks right? > Else a misaligned partition on a dax unsupported block device can > print the below messages. > > kernel: sda1: error: unaligned partition for dax > kernel: sda2

Re: [PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-10 Thread John Pittman
But it should be moved prior to the two bdev_dax_pgoff() checks right? Else a misaligned partition on a dax unsupported block device can print the below messages. kernel: sda1: error: unaligned partition for dax kernel: sda2: error: unaligned partition for dax kernel: sda3: error: unaligned

[PATCH v4] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
purpose. Fixes: c2affe920b0e ("dax: do not print error message for non-persistent memory block device") Signed-off-by: Coly Li Reviewed-and-tested-by: Adrian Huang Reviewed-by: Ira Weiny Reviewed-by: Mike Snitzer Reviewed-by: Pankaj Gupta Cc: Jan Kara Cc: Vishal Verma --- Cha

Re: [PATCH v2] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
On 2020/9/4 00:00, Mike Snitzer wrote: > On Thu, Sep 03 2020 at 11:28am -0400, > Coly Li wrote: > >> When calling __generic_fsdax_supported(), a dax-unsupported device may >> not have dax_dev as NULL, e.g. the dax related code block is not enabled >> by Kconfig. >> >> Therefore in

Re: [PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
if (!dax_dev && !bdev_dax_supported(bdev, blocksize)) { >> + if (!dax_dev || !bdev_dax_supported(bdev, blocksize)) { >> >> >> Fixes: c2affe920b0e ("dax: do not print error message for non-persistent >> memory block device"

Re: [PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Ira Weiny
(bdev, blocksize)) { > > > Fixes: c2affe920b0e ("dax: do not print error message for non-persistent > memory block device") > Signed-off-by: Coly Li I hate to do this because I realize this is a bug which people really need fixed. However, shouldn't we also check (!dax

[PATCH v3] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
for the above purpose, - if (!dax_dev && !bdev_dax_supported(bdev, blocksize)) { + if (!dax_dev || !bdev_dax_supported(bdev, blocksize)) { Fixes: c2affe920b0e ("dax: do not print error message for non-persistent memory block device") Signed-off-by: Coly Li R

Re: [PATCH v2] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Mike Snitzer
rted(bdev, blocksize)) { Don't think I've ever seen a one-liner fix document the diff in its patch header. Really no need for that. > Fixes: c2affe920b0e ("dax: do not print error message for non-persistent > memory block device") > Signed-off-by: Coly Li > Reviewed-and-Tested

Re: [PATCH v2] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Pankaj Gupta
be > recognized as dax-unsupported eventually. > > This patch does the following change for the above purpose, > - if (!dax_dev && !bdev_dax_supported(bdev, blocksize)) { > + if (!dax_dev || !bdev_dax_supported(bdev, blocksize)) { > > > Fixes: c2affe920b0

[PATCH v2] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
for the above purpose, - if (!dax_dev && !bdev_dax_supported(bdev, blocksize)) { + if (!dax_dev || !bdev_dax_supported(bdev, blocksize)) { Fixes: c2affe920b0e ("dax: do not print error message for non-persistent memory block device") Signed-off-by: Coly Li R

RE: [External] [PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Adrian Huang12
al] [PATCH] dax: fix for do not print error message for non- > persistent memory block device > > When calling __generic_fsdax_supported(), a dax-unsupported device may not > have dax_dev as NULL, e.g. the dax related code block is not enabled by > Kconfig. > > Therefore

[PATCH] dax: fix for do not print error message for non-persistent memory block device

2020-09-03 Thread Coly Li
for the above purpose, - if (!dax_dev && !bdev_dax_supported(bdev, blocksize)) { + if (!dax_dev || !bdev_dax_supported(bdev, blocksize)) { Fixes: c2affe920b0e ("dax: do not print error message for non-persistent memory block device") Signed-off-by: Coly Li Cc

Re: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-03 Thread Coly Li
rg; Adrian Huang12 >> Subject: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 >> commit 231609785cbfb >> >> On 2020/9/3 13:20, Coly Li wrote: >>> On 2020/9/3 00:51, Mike Snitzer wrote: >>>> On Wed, Sep 02 2020 at 12:46pm -0400

RE: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-03 Thread Adrian Huang12
> -Original Message- > From: Coly Li > Sent: Thursday, September 3, 2020 4:37 PM > To: Mike Snitzer > Cc: Jan Kara ; Ira Weiny ; Pankaj Gupta > ; Vishal Verma ; > linux-nvdimm@lists.01.org; Adrian Huang12 > Subject: [External] Re: flood of "dm-X: error:

Re: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-03 Thread Coly Li
-nvdimm@lists.01.org; Adrian Huang12 >> Subject: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 >> commit 231609785cbfb >> >> On 2020/9/3 00:51, Mike Snitzer wrote: >>> On Wed, Sep 02 2020 at 12:46pm -0400, >>> Coly Li wrote:

RE: [External] Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-03 Thread Adrian Huang12
Hi Coly, > -Original Message- > From: Coly Li > Sent: Thursday, September 3, 2020 1:20 PM > To: Mike Snitzer > Cc: Jan Kara ; Ira Weiny ; Pankaj Gupta > ; Vishal Verma ; > linux-nvdimm@lists.01.org; Adrian Huang12 > Subject: [External] Re: flood of "dm-X:

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-03 Thread Coly Li
rote: >>>> >>>>> On 2020/9/3 00:04, Mike Snitzer wrote: >>>>>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>>>>> __generic_fsdax_supported()") switched from pr_debug() to pr_info(). >>>&g

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
zer wrote: >>>>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>>>> __generic_fsdax_supported()") switched from pr_debug() to pr_info(). >>>>> >>>>> The justification in the commit header is really inadequa

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
zer wrote: >>>>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>>>> __generic_fsdax_supported()") switched from pr_debug() to pr_info(). >>>>> >>>>> The justification in the commit header is really inadequa

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
On 2020/9/3 07:05, Verma, Vishal L wrote: > On Thu, 2020-09-03 at 00:40 +0800, Coly Li wrote: >> On 2020/9/3 00:04, Mike Snitzer wrote: >>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>> __generic_fsdax_supported()"

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Verma, Vishal L
On Thu, 2020-09-03 at 00:40 +0800, Coly Li wrote: > On 2020/9/3 00:04, Mike Snitzer wrote: > > 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in > > __generic_fsdax_supported()") switched from pr_debug() to pr_info(). > > > > The justifi

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
zer wrote: >>>>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>>>> __generic_fsdax_supported()") switched from pr_debug() to pr_info(). >>>>> >>>>> The justification in the commit header is really inadequa

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Mike Snitzer
On Wed, Sep 02 2020 at 12:46pm -0400, Coly Li wrote: > On 2020/9/3 00:44, Mike Snitzer wrote: > > On Wed, Sep 02 2020 at 12:40pm -0400, > > Coly Li wrote: > > > >> On 2020/9/3 00:04, Mike Snitzer wrote: > >>> 5.9 commit 231609785

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
On 2020/9/3 00:44, Mike Snitzer wrote: > On Wed, Sep 02 2020 at 12:40pm -0400, > Coly Li wrote: > >> On 2020/9/3 00:04, Mike Snitzer wrote: >>> 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in >>> __generic_fsdax_supported()

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Mike Snitzer
On Wed, Sep 02 2020 at 12:40pm -0400, Coly Li wrote: > On 2020/9/3 00:04, Mike Snitzer wrote: > > 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in > > __generic_fsdax_supported()") switched from pr_debug() to pr_info(). > > > > The justifi

Re: flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Coly Li
On 2020/9/3 00:04, Mike Snitzer wrote: > 5.9 commit 231609785cbfb ("dax: print error message by pr_info() in > __generic_fsdax_supported()") switched from pr_debug() to pr_info(). > > The justification in the commit header is really inadequate. If there > is a probl

flood of "dm-X: error: dax access failed" due to 5.9 commit 231609785cbfb

2020-09-02 Thread Mike Snitzer
5.9 commit 231609785cbfb ("dax: print error message by pr_info() in __generic_fsdax_supported()") switched from pr_debug() to pr_info(). The justification in the commit header is really inadequate. If there is a problem that you need to drill in on, repeat the testing after enabling t

Re: [PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread Yuehaibing
drivers/nvdimm/e820.c:24:12: error: implicit declaration of function > ‘phys_to_target_node’; did you mean ‘set_page_node’? > [-Werror=implicit-function-declaration] > int nid = phys_to_target_node(res->start); > ^~~ > set_page_node &

Re: [PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread kernel test robot
Hi YueHaibing, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] [also build test ERROR on v5.9-rc2 next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread kernel test robot
Hi YueHaibing, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] [also build test ERROR on v5.9-rc2 next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

Re: [PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread kernel test robot
Hi YueHaibing, Thank you for the patch! Yet something to improve: [auto build test ERROR on linux-nvdimm/libnvdimm-for-next] [also build test ERROR on v5.9-rc2 next-20200826] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use

[PATCH] libnvdimm/e820: Fix build error without MEMORY_HOTPLUG

2020-08-26 Thread YueHaibing
If MEMORY_HOTPLUG is n, build fails: drivers/nvdimm/e820.c: In function ‘e820_register_one’: drivers/nvdimm/e820.c:24:12: error: implicit declaration of function ‘phys_to_target_node’; did you mean ‘set_page_node’? [-Werror=implicit-function-declaration] int nid = phys_to_target_node(res

Re: [PATCH 1/1] dax: do not print error message for non-persistent memory block device

2020-08-19 Thread Coly Li
On 2020/8/19 23:42, Adrian Huang wrote: > From: Adrian Huang > > From: Adrian Huang > > Commit 231609785cbf ("dax: print error message by pr_info() > in __generic_fsdax_supported()") happens to print the following > error message during booting when the non-pe

[PATCH 1/1] dax: do not print error message for non-persistent memory block device

2020-08-19 Thread Adrian Huang
From: Adrian Huang From: Adrian Huang Commit 231609785cbf ("dax: print error message by pr_info() in __generic_fsdax_supported()") happens to print the following error message during booting when the non-persistent memory block devices are configured by device mapper. Those erro

[PATCH] error-inject: Remove redundant has_nfit check

2020-08-16 Thread Santosh Sivaraj
s_size); - rc = ndctl_cmd_submit(cmd); - if (rc < 0) { - dbg(ctx, "Error submitting ars_cap: %d\n", rc); - goto out; - } - buf_size = ndctl_cmd_ars_cap_get_size(cmd); -

Fix the problem of Canon Printer in error state easily!

2020-08-14 Thread michaels1990johnson
If your Canon printer is in error state then it could be because of some connection issue or incompatible drivers. In order to fix canon printer in error state issue, you can start off by checking the connection between the printer and the laptop. Ensure that the wireless network or cable

Re: [PATCH] dax: Fix wrong error-number passed into xas_set_err()

2020-07-29 Thread Pankaj Gupta
> The error-number passed into xas_set_err() should be negative. Otherwise, > the xas_error() will return 0, and grab_mapping_entry() will return the > found entry instead of a SIGBUS error when the entry is not a value. > And then, the subsequent code path would be wrong. > >

Re: [PATCH] dax: Fix wrong error-number passed into xas_set_err()

2020-07-28 Thread Pankaj Gupta
> The error-number passed into xas_set_err() should be negative. Otherwise, > the xas_error() will return 0, and grab_mapping_entry() will return the > found entry instead of a SIGBUS error when the entry is not a value. > And then, the subsequent code path would be wrong. > >

[PATCH] dax: Fix wrong error-number passed into xas_set_err()

2020-07-28 Thread Hao Li
The error-number passed into xas_set_err() should be negative. Otherwise, the xas_error() will return 0, and grab_mapping_entry() will return the found entry instead of a SIGBUS error when the entry is not a value. And then, the subsequent code path would be wrong. Signed-off-by: Hao Li --- fs

Re: [PATCH v3] dax: print error message by pr_info() in __generic_fsdax_supported()

2020-07-27 Thread Jane Chu
pr_info() to print all the error messages inside __generic_fsdax_supported(). Then users may find informative clue from the kernel message at least. I happen to notice that some servers set their printk levels at 4 by default to minimize console messages: # cat /proc/sys/kernel/printk 4 4 1 7

Re: [PATCH v3] dax: print error message by pr_info() in __generic_fsdax_supported()

2020-07-27 Thread Jan Kara
use pr_info() to print all the error messages > > inside __generic_fsdax_supported(). Then users may find informative clue > > from the kernel message at least. > > I happen to notice that some servers set their printk levels at 4 by default > to minimize console messages: > # c

Re: [PATCH v3] dax: print error message by pr_info() in __generic_fsdax_supported()

2020-07-27 Thread Jane Chu
Hi, On 7/25/2020 9:24 AM, Coly Li wrote: It is not simple to make dax_supported() from struct dax_operations or __generic_fsdax_supported() to return exact failure type right now. So the simplest fix is to use pr_info() to print all the error messages inside __generic_fsdax_supported

[PATCH v3] dax: print error message by pr_info() in __generic_fsdax_supported()

2020-07-25 Thread Coly Li
, missing codepage or helper program, or other error. And from the dmesg output there is only the following information, [ 307.853148] EXT4-fs (pmem0): DAX unsupported by block device. The above information is quite confusing. Because definitely the pmem0 device supports dax operation

Re: [RESEND] [PATCH v2] dax: print error message by pr_info() in __generic_fsdax_supported()

2020-07-19 Thread Pankaj Gupta
/mnt: wrong fs type, bad option, bad superblock on /dev/pmem0, > missing codepage or helper program, or other error. > And from the dmesg output there is only the following information, > [ 307.853148] EXT4-fs (pmem0): DAX unsupported by block device. > > The above information

  1   2   3   4   5   6   >