[PATCH 0/1] nvme: Export CSTS register via sysfs
Chaitanya Kulkarni
Chaitanya.Kulkarni at wdc.com
Thu Mar 18 19:15:41 GMT 2021
On 3/18/21 09:59, Keith Busch wrote:
>>> So what is this application doings with it? Should we just have a
>>> ready attribute instead of exporting a raw register encoding?
>> Was using nvme-cli show-regs to manage nvme devices. This is no longer an option.
> Most distributions ship with kernel CONFIG_IO_STRICT_DEVMEM these days,
> so that user command will very rarely work on PCIe targets anymore.
>
> Perhaps we could introduce a driver option allowing read-only mmap on
> this memory? While you're currently asking for just one register
> attribute, it would be nice if we can make all future requests available
> without piling on more sysfs properties.
This will also avoid further code changes seems very generic to me.
More information about the Linux-nvme
mailing list