linux-nvme.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* nvme-cli shows failed to map on Kernel 4.16.16
@ 2018-07-18 23:08 Yogi Wannabe
  2018-07-18 23:12 ` Keith Busch
  0 siblings, 1 reply; 3+ messages in thread
From: Yogi Wannabe @ 2018-07-18 23:08 UTC (permalink / raw)


Hi all,

I downloaded the latest nvme-cli-master and ran the following command
on a Centos 7.4 with kernel 3.19.8. The command worked fine

./nvme list /dev/nvme0n1

I ran the same command on a Debian 9.5 with Kernel 4.16.16 and I got
the error msg "failed to map". Googling led me to this link
https://github.com/linux-nvme/nvme-cli/issues/81

I checked the kernel configuration on 4.16.16 and I see this setting:
CONFIG_IO_STRICT_DEVMEM=y

Does this mean that nvme list won't work until I rebuild the kernel
with CONFIG_IO_STRICT_DEVMEM=n?

thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* nvme-cli shows failed to map on Kernel 4.16.16
  2018-07-18 23:08 nvme-cli shows failed to map on Kernel 4.16.16 Yogi Wannabe
@ 2018-07-18 23:12 ` Keith Busch
  2018-07-19 12:41   ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Keith Busch @ 2018-07-18 23:12 UTC (permalink / raw)


On Wed, Jul 18, 2018@04:08:43PM -0700, Yogi Wannabe wrote:
> Hi all,
> 
> I downloaded the latest nvme-cli-master and ran the following command
> on a Centos 7.4 with kernel 3.19.8. The command worked fine
> 
> ./nvme list /dev/nvme0n1
> 
> I ran the same command on a Debian 9.5 with Kernel 4.16.16 and I got
> the error msg "failed to map". Googling led me to this link
> https://github.com/linux-nvme/nvme-cli/issues/81
> 
> I checked the kernel configuration on 4.16.16 and I see this setting:
> CONFIG_IO_STRICT_DEVMEM=y
> 
> Does this mean that nvme list won't work until I rebuild the kernel
> with CONFIG_IO_STRICT_DEVMEM=n?

That is correct, you will not be able to use that command when
CONFIG_IO_STRICT_DEVMEM=y. When that kernel config option is set, the
kernel will not allow user space to mmap io memory if a driver also
mapped it.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* nvme-cli shows failed to map on Kernel 4.16.16
  2018-07-18 23:12 ` Keith Busch
@ 2018-07-19 12:41   ` Christoph Hellwig
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2018-07-19 12:41 UTC (permalink / raw)


On Wed, Jul 18, 2018@05:12:11PM -0600, Keith Busch wrote:
> That is correct, you will not be able to use that command when
> CONFIG_IO_STRICT_DEVMEM=y. When that kernel config option is set, the
> kernel will not allow user space to mmap io memory if a driver also
> mapped it.

Yikes.  We really ought to have a way to scrape that information
without reading the bar..

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-07-19 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-18 23:08 nvme-cli shows failed to map on Kernel 4.16.16 Yogi Wannabe
2018-07-18 23:12 ` Keith Busch
2018-07-19 12:41   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).