On Mon, Mar 21, 2016 at 12:37 PM, Jerry Hoemann <jerry.hoemann(a)hpe.com> wrote:
NVDIMM DSMs whose functions map to the Intel Example DSM, can
be called with the ND_IOCTL_.* ioctl interface. Those that
don't map, can only be called with the pass thru command.
Save this indication in struct nvdimm to be passed to
the sysfs interface.
I'm having trouble understanding the intent of cmd_ioctl. I don't
want a flag for "supports Intel Example DSM", I want a mask of ND
commands the bus provider knows how to handle in its ->ndctl() entry
point for the given dimm. The bus provider is free to provide a
translation of ND command to the bus specific command. It's just an
arbitrary coincidence that the current list of ND commands matches the
Intel ACPI _DSM command format.