From: Dan Williams <dan.j.williams@intel.com>
To: heysid@ajou.ac.kr
Cc: Dave Hansen <dave.hansen@intel.com>,
Linux MM <linux-mm@kvack.org>,
jsahn@ajou.ac.kr, linux-nvdimm <linux-nvdimm@lists.01.org>
Subject: Re: A write error on converting dax0.0 to kmem
Date: Thu, 27 Jun 2019 14:22:42 -0700 [thread overview]
Message-ID: <CAPcyv4h=MoP4GSF8xRULy54K7Rt9g2pnF3Xw0BNPRyYf5fKs0A@mail.gmail.com> (raw)
In-Reply-To: <20190627141953.GC3624@swarm07>
[ this is on-topic for linux-nvdimm, but likely off-topic for
linux-mm. I leave it cc'd for now ]
On Thu, Jun 27, 2019 at 7:20 AM Won-Kyo Choe <heysid@ajou.ac.kr> wrote:
>
> Hi, Dave. I hope this message is sent appropriately in this time.
>
> We've recently got a new machine which contains Optane DC memory and
> tried to use your patch set[1] in a recent kernel version(5.1.15).
> Unfortunately, we've failed on the last step[2] that describes
> converting device-dax driver as kmem. The main error is "echo: write error: No such device".
> We are certain that there must be a device and it should be recognized
> since we can see it in a path "/dev/dax0.0", however, somehow it keeps saying that error.
>
> We've followed all your steps in the first patch[1] except a step about qemu configuration
> since we already have a persistent memory. We even checked that there is a region
> mapped with persistent memory from a command, `dmesg | grep e820` described in below.
>
> BIOS-e820: [mem 0x0000000880000000-0x00000027ffffffff] persistent (type 7)
>
> As the address is shown above, the thing is that in the qemu, the region is set as
> persistent (type 12) but in the native machine, it says persistent (type 7).
> We've still tried to find what type means and we simply guess that this is one
> of the reasons why we are not able to set the device as kmem.
>
> We'd like to know why this error comes up and how can we handle this problem.
> We would really appreciate it if you are able to little bit help us.
Before digging deeper let's first verify that you have switched
device-dax from using "class" devices to using "bus" devices. Yes,
that step is not included in the changelog instructions. Here is a man
page for a tool that can automate some of the steps for you:
http://pmem.io/ndctl/daxctl-migrate-device-model.html
You can validate that you're in "bus" mode by making sure a "dax0.0"
link appears under "/sys/bus/dax/devices".
prev parent reply other threads:[~2019-06-27 21:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-27 14:19 Won-Kyo Choe
2019-06-27 21:22 ` Dan Williams [this message]
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='CAPcyv4h=MoP4GSF8xRULy54K7Rt9g2pnF3Xw0BNPRyYf5fKs0A@mail.gmail.com' \
--to=dan.j.williams@intel.com \
--cc=dave.hansen@intel.com \
--cc=heysid@ajou.ac.kr \
--cc=jsahn@ajou.ac.kr \
--cc=linux-mm@kvack.org \
--cc=linux-nvdimm@lists.01.org \
/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