Linux-NVDIMM Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Moyer <jmoyer@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: kernel test robot <oliver.sang@intel.com>,
	Jens Axboe <axboe@kernel.dk>,
	Oleksii Kurochko <olkuroch@cisco.com>,
	Ming Lei <ming.lei@redhat.com>, Hannes Reinecke <hare@suse.de>,
	LKML <linux-kernel@vger.kernel.org>,
	lkp@lists.01.org, lkp@intel.com, linux-nvdimm@lists.01.org
Subject: Re: [block]  52f019d43c: ndctl.test-libndctl.fail
Date: Fri, 05 Mar 2021 09:38:19 -0500	[thread overview]
Message-ID: <x49y2f1aco4.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20210305074204.GA17414@lst.de> (Christoph Hellwig's message of "Fri, 5 Mar 2021 08:42:04 +0100")

Christoph Hellwig <hch@lst.de> writes:

> Dan,
>
> can you make any sense of thos report?
>
> name='nfit_test'
> path='/lib/modules/5.11.0-rc5-00003-g52f019d43c22/extra/test/nfit_test.ko'
>> check_set_config_data: dimm: 0 read2 data miscompare: 0
>> check_set_config_data: dimm: 0x1 read2 data miscompare: 0
>> check_set_config_data: dimm: 0x100 read2 data miscompare: 0
>> check_set_config_data: dimm: 0x101 read2 data miscompare: 0
>> check_dax_autodetect: dax_ndns: 0x558a74d92f00 ndns: 0x558a74d92f00
>> check_dax_autodetect: dax_ndns: 0x558a74d91f40 ndns: 0x558a74d91f40
>> check_pfn_autodetect: pfn_ndns: 0x558a74d91f40 ndns: 0x558a74d91f40
>> check_pfn_autodetect: pfn_ndns: 0x558a74d8c5e0 ndns: 0x558a74d8c5e0
>> check_btt_autodetect: btt_ndns: 0x558a74d8c5e0 ndns: 0x558a74d8c5e0
>> check_btt_autodetect: btt_ndns: 0x558a74da1390 ndns: 0x558a74da1390
>> check_btt_autodetect: btt_ndns: 0x558a74d8c5e0 ndns: 0x558a74d8c5e0
>> check_btt_autodetect: btt_ndns: 0x558a74d91f40 ndns: 0x558a74d91f40
>> namespace7.0: failed to write /dev/pmem7
>> check_namespaces: namespace7.0 validate_bdev failed
>> ndctl-test1 failed: -6

This is from test/libndctl.c in the ndctl repo:

        fd = open(bdevpath, O_RDONLY);
        if (fd < 0) {
                fprintf(stderr, "%s: failed to open(%s, O_RDONLY)\n",
                                devname, bdevpath);
                return -ENXIO;
        }
...
        ro = 0;
        rc = ioctl(fd, BLKROSET, &ro);
        if (rc < 0) {
                fprintf(stderr, "%s: BLKROSET failed\n",
                                devname);
                rc = -errno;
                goto out;
        }

        close(fd);
        fd = open(bdevpath, O_RDWR|O_DIRECT);
...
        if (write(fd, buf, 4096) < 4096) {
                fprintf(stderr, "%s: failed to write %s\n",
                                devname, bdevpath);
                rc = -ENXIO;
                goto out;
        }

HTH,
Jeff
_______________________________________________
Linux-nvdimm mailing list -- linux-nvdimm@lists.01.org
To unsubscribe send an email to linux-nvdimm-leave@lists.01.org

  reply	other threads:[~2021-03-05 14:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20210305055900.GC31481@xsang-OptiPlex-9020>
2021-03-05  7:42 ` [block] 52f019d43c: ndctl.test-libndctl.fail Christoph Hellwig
2021-03-05 14:38   ` Jeff Moyer [this message]
2021-03-06 20:33   ` Williams, Dan J
2021-03-08  7:09     ` hch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x49y2f1aco4.fsf@segfault.boston.devel.redhat.com \
    --to=jmoyer@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvdimm@lists.01.org \
    --cc=lkp@intel.com \
    --cc=lkp@lists.01.org \
    --cc=ming.lei@redhat.com \
    --cc=oliver.sang@intel.com \
    --cc=olkuroch@cisco.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox