Is it possible to use PCIe SSD as pmem device??

42 views
Skip to first unread message

Jangyong Lee

unread,
Aug 7, 2017, 10:48:18 PM8/7/17
to pmem

 Hi, all.

 Recently, I study about NVML.

 Meanwhile, I wondering whether that is possible to use pcie type device as pmem device.

 If pcie device is registered to NFIT, is it possible to use pcie device as pmem device??
 

Dan Williams

unread,
Aug 8, 2017, 12:42:33 AM8/8/17
to Jangyong Lee, pmem
No, it can't. The problem is that a device on the PCI-E bus is not DMA
coherent. There are some limited scenarios where it will give the
impression that it works, but it can lead to data corruption in the
general case when you start to consider that any memory mapping might
also be subjected to direct-I/O and 3rd party DMA.
> --
> You received this message because you are subscribed to the Google Groups
> "pmem" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to pmem+uns...@googlegroups.com.
> To post to this group, send email to pm...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/pmem/b1403005-8203-4743-b55f-89d6defbaba6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Jangyong Lee

unread,
Aug 8, 2017, 1:48:31 AM8/8/17
to pmem, waho...@gmail.com, dan.j.w...@intel.com
 Thank you for reply.

 If then, Is it possible to use management mode & block device mode except dax mode??


2017년 8월 8일 화요일 오후 1시 42분 33초 UTC+9, Dan Williams 님의 말:

Dan Williams

unread,
Aug 8, 2017, 12:38:27 PM8/8/17
to Jangyong Lee, pmem
Operating as a block-device is the default for a PCI-E SSD, no need
for an NFIT at all.
> https://groups.google.com/d/msgid/pmem/df2ed6a1-629f-4b6c-ac79-ecd9a31faa78%40googlegroups.com.

Jangyong Lee

unread,
Aug 8, 2017, 7:12:05 PM8/8/17
to pmem, waho...@gmail.com, dan.j.w...@intel.com
 Yes. I know that. But, I mean just for test :D

2017년 8월 9일 수요일 오전 1시 38분 27초 UTC+9, Dan Williams 님의 말:

Dan Williams

unread,
Aug 8, 2017, 7:17:33 PM8/8/17
to Jangyong Lee, pmem
For "just a test" you can specify any physical address range that you
want and treat it as pmem with the "memmap=ss!nn" kernel parameter.
See: https://nvdimm.wiki.kernel.org/

Whether it causes data corruption or not depends on whether you
specify a valid physical address range that can behave as system
memory.
> https://groups.google.com/d/msgid/pmem/64f638f8-9096-48a0-b392-46a536c28478%40googlegroups.com.

Jangyong Lee

unread,
Aug 8, 2017, 7:37:42 PM8/8/17
to pmem, waho...@gmail.com, dan.j.w...@intel.com
 OK. Thanks a lot! :D

2017년 8월 9일 수요일 오전 8시 17분 33초 UTC+9, Dan Williams 님의 말:
Reply all
Reply to author
Forward
0 new messages