would be known.
The size of the buffer allocated in would always be ND_IOCTL_MAX_BUFLEN.
Signed-off-by: Jerry Hoemann
---
drivers/nvdimm/bus.c | 30 --
1 file changed, 24 insertions(+), 6 deletions(-)
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index 2
On Mon, Apr 24, 2017 at 03:56:50PM -0700, Dan Williams wrote:
> On Mon, Apr 24, 2017 at 3:36 PM, Jerry Hoemann wrote:
> > nd_cmd_out_size is called by __nd_ioctl to size the buffer passed to
> > acpi_nfit_ctl. If the DSM function being called has a variable
> > sized output,
On Mon, Apr 24, 2017 at 05:30:32PM -0600, Jerry Hoemann wrote:
> On Mon, Apr 24, 2017 at 03:56:50PM -0700, Dan Williams wrote:
> > On Mon, Apr 24, 2017 at 3:36 PM, Jerry Hoemann
> > wrote:
> > > nd_cmd_out_size is called by __nd_ioctl to size the buffer passed to
> >
ACPI 6.2 added new NVDIMM root DSM functions. Define their
data structures.
Update the definition of nd_cmd_ars_cap to match the 6.2 spec.
Add the new 6.2 functions names to nvdimm_bus_cmd_name.
Signed-off-by: Jerry Hoemann
---
include/uapi/linux/ndctl.h | 44
.
acpi_nfit_init_dsms:
Set additional bits in cmd_mask for new functions.
ndctl.h:
Define data structure for the new 6.2 functions.
Add new function names to nvdimm_bus_cmd_name.
Jerry Hoemann (3):
libnvdimm: passthru functions clear to send
acpi, nfit: Enable DSM pass thru for root functions.
libnvdimm: New
Have dsm functions called via the pass thru mechanism also
be checked against clear to send.
Signed-off-by: Jerry Hoemann
---
drivers/nvdimm/bus.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index e9361bf..e16427d 100644
Set ND_CMD_CALL in the cmd_mask to enable calling root
functions via the pass trhu mechanism.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 3 ++-
include/uapi/linux/ndctl.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers
On Thu, Jun 08, 2017 at 10:28:51PM -0700, Dan Williams wrote:
> On Thu, Jun 8, 2017 at 1:02 AM, Johannes Thumshirn wrote:
> > On 06/07/2017 07:04 PM, Jerry Hoemann wrote:
> >> @@ -179,6 +217,10 @@ static inline const char
> >> *nvdim
Add a bus level dsm_mask to nvdimm_bus_descriptor to allow the passthru
calling mechanism to specify a different mask from the cmd_mask.
Signed-off-by: Jerry Hoemann
---
include/linux/libnvdimm.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/libnvdimm.h b/include/linux
the new 6.2 functions.
Add new function names to nvdimm_bus_cmd_name.
Jerry Hoemann (7):
libnvdimm: passthru functions clear to send
acpi, nfit: Enable DSM pass thru for root functions.
libnvdimm: Add bus level dsm mask.
acpi, nfit: Use bus_dsm_mask for passthru
acpi, nfit: Show
Add bus_dsm_mask to sysfs display under /sys/bus/nd/devices/ndbusX/nfit.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 10 ++
1 file changed, 10 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 9d281a4..f133b3e 100644
--- a/drivers/acpi
Have dsm functions called via the pass thru mechanism also
be checked against clear to send.
Signed-off-by: Jerry Hoemann
---
drivers/nvdimm/bus.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index e9361bf..e16427d 100644
Add module parameter override_dsm_mask_root for overriding
the dsm_mask like we do for non-root dsm calls.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
Populate bus_dsm_mask and use it to filter dsm calls that user can
make through the pass thru interface.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index b46fca2..9d281a4
ACPI 6.2 added new NVDIMM root DSM functions. Define their
data structures.
Update the definition of nd_cmd_ars_cap to match the 6.2 spec.
Add the new 6.2 functions names to nvdimm_bus_cmd_name.
Signed-off-by: Jerry Hoemann
---
include/uapi/linux/ndctl.h | 40
Set ND_CMD_CALL in the cmd_mask to enable calling root
functions via the pass trhu mechanism.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 1 +
include/uapi/linux/ndctl.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
On Tue, Jun 20, 2017 at 10:51:19AM -0600, Jerry Hoemann wrote:
> The new ACPI 6.2 spec has added new NVDIMM root DSM functions
> that managibility and test software needs to call.
>
> This patch set enables the calling root functions DSM via the
> pass thru mechanism.
On Wed, Jun 28, 2017 at 02:07:20PM -0700, Dan Williams wrote:
> On Tue, Jun 20, 2017 at 9:51 AM, Jerry Hoemann wrote:
> > Add bus_dsm_mask to sysfs display under /sys/bus/nd/devices/ndbusX/nfit.
> >
> > Signed-off-by: Jerry Hoemann
> > ---
> > drivers/acpi/n
Display bus_dsm_mask in sysfs as /sys/bus/nd/devices/ndbusX/nfit/dsm_mask.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 971002b..7d2f1a0 100644
--- a/drivers
Set ND_CMD_CALL in the cmd_mask to enable calling root
functions via the pass thru mechanism.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 1 +
include/uapi/linux/ndctl.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
Have dsm functions called via the pass thru mechanism also
be checked against clear to send.
Signed-off-by: Jerry Hoemann
---
drivers/nvdimm/bus.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index e9361bf..e16427d 100644
Populate bus_dsm_mask and use it to filter dsm calls that user can
make through the pass thru interface.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 5 +
1 file changed, 5 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index b46fca2..971002b
functions against nd_cmd_clear_to_send.
acpi_nfit_init_dsms:
Set additional bits in cmd_mask for new functions.
ndctl.h:
Define data structure for the new 6.2 functions.
Jerry Hoemann (7):
libnvdimm: passthru functions clear to send
acpi, nfit: Enable DSM pass thru for root functions.
ACPI 6.2 added new NVDIMM root DSM functions. Define their
data structures.
Signed-off-by: Jerry Hoemann
---
include/uapi/linux/ndctl.h | 40 +++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux
Have module parameter override_dsm_mask override the dsm_mask for
root calls like it does for non-root dsm calls.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit
Add a bus level dsm_mask to nvdimm_bus_descriptor to allow the passthru
calling mechanism to specify a different mask from the cmd_mask.
Signed-off-by: Jerry Hoemann
---
include/linux/libnvdimm.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/libnvdimm.h b/include/linux
On Thu, Jun 29, 2017 at 02:35:14PM -0700, Dan Williams wrote:
> On Thu, Jun 29, 2017 at 9:56 AM, Jerry Hoemann wrote:
> > Populate bus_dsm_mask and use it to filter dsm calls that user can
> > make through the pass thru interface.
> >
> > Signed-off-by: Jerry Hoemann
On Thu, Jun 29, 2017 at 02:16:17PM -0700, Dan Williams wrote:
> On Thu, Jun 29, 2017 at 9:56 AM, Jerry Hoemann wrote:
> > Have module parameter override_dsm_mask override the dsm_mask for
> > root calls like it does for non-root dsm calls.
> >
> > S
On Thu, Jun 29, 2017 at 02:55:55PM -0700, Dan Williams wrote:
> On Thu, Jun 29, 2017 at 2:47 PM, Jerry Hoemann wrote:
> > On Thu, Jun 29, 2017 at 02:35:14PM -0700, Dan Williams wrote:
> >> On Thu, Jun 29, 2017 at 9:56 AM, Jerry Hoemann
> >> wrote:
> >> &
Set ND_CMD_CALL in the cmd_mask to enable calling root
functions via the pass thru mechanism.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 1 +
include/uapi/linux/ndctl.h | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
Display bus_dsm_mask in sysfs as /sys/bus/nd/devices/ndbusX/nfit/dsm_mask.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 12
1 file changed, 12 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 5e4c137..4e24d69 100644
--- a/drivers
Have module parameter override_dsm_mask override the dsm_mask for
root calls like it does for non-root dsm calls.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit/core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
index 4e24d69
Add a bus level dsm_mask to nvdimm_bus_descriptor to allow the passthru
calling mechanism to specify a different mask from the cmd_mask.
Populate bus_dsm_mask and use it to filter dsm calls that user can
make through the pass thru interface.
Signed-off-by: Jerry Hoemann
---
drivers/acpi/nfit
_mask also.
Details v1
--
__nd_ioctl:
Check pass thru functions against nd_cmd_clear_to_send.
acpi_nfit_init_dsms:
Set additional bits in cmd_mask for new functions.
ndctl.h:
Define data structure for the new 6.2 functions.
Jerry Hoemann (6):
libnvdimm: passthru functions clear to s
ACPI 6.2 added new NVDIMM root DSM functions. Define their
data structures.
Signed-off-by: Jerry Hoemann
---
include/uapi/linux/ndctl.h | 40 +++-
1 file changed, 39 insertions(+), 1 deletion(-)
diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux
Have dsm functions called via the pass thru mechanism also
be checked against clear to send.
Signed-off-by: Jerry Hoemann
---
drivers/nvdimm/bus.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/nvdimm/bus.c b/drivers/nvdimm/bus.c
index e9361bf..e16427d 100644
On Fri, Jun 30, 2017 at 08:55:22PM -0700, Dan Williams wrote:
...
> On Fri, Jun 30, 2017 at 9:09 AM, Jerry Hoemann wrote:
> > + if (cmd == ND_CMD_CALL)
> > + dsm_mask = nd_desc->bus_dsm_mask;
> > de
On Sat, Jul 01, 2017 at 01:10:31PM -0700, Dan Williams wrote:
> On Sat, Jul 1, 2017 at 1:08 PM, Dan Williams wrote:
> > On Sat, Jul 1, 2017 at 12:58 PM, Jerry Hoemann
> > wrote:
> >> On Fri, Jun 30, 2017 at 08:55:22PM -0700, Dan Williams wrote:
> >>
> >>
On Sat, Jul 01, 2017 at 01:46:03PM -0700, Dan Williams wrote:
> On Sat, Jul 1, 2017 at 1:38 PM, Jerry Hoemann wrote:
> > On Sat, Jul 01, 2017 at 01:10:31PM -0700, Dan Williams wrote:
> >> On Sat, Jul 1, 2017 at 1:08 PM, Dan Williams
> >> wrote:
> >> >
On Tue, Jul 04, 2017 at 01:37:43PM -0700, Dan Williams wrote:
> On Tue, Jul 4, 2017 at 1:08 PM, Jerry Hoemann wrote:
> > On Sat, Jul 01, 2017 at 01:46:03PM -0700, Dan Williams wrote:
> >> On Sat, Jul 1, 2017 at 1:38 PM, Jerry Hoemann
> >> wrote:
> >> > O
On Wed, Jul 05, 2017 at 09:35:48AM -0700, Dan Williams wrote:
> On Wed, Jul 5, 2017 at 9:24 AM, Jerry Hoemann wrote:
> > On Tue, Jul 04, 2017 at 01:37:43PM -0700, Dan Williams wrote:
> >> On Tue, Jul 4, 2017 at 1:08 PM, Jerry Hoemann
> >> wrote:
> >> > O
Add structure definitions newly published/modified in v0.85:
https://github.com/HewlettPackard/hpe-nvm/blob/master/Documentation/NFIT_DSM_DDR4_NVDIMM-N_v85.pdf
Signed-off-by: Jerry Hoemann
---
ndctl/lib/ndctl-hpe1.h | 50 +-
1 file changed, 49
On Thu, Aug 10, 2017 at 05:47:10PM -0700, Dan Williams wrote:
> On Thu, Aug 10, 2017 at 5:00 PM, Jerry Hoemann wrote:
> > Add structure definitions newly published/modified in v0.85:
> >
> > https://github.com/HewlettPackard/hpe-nvm/blob/master/Documentation/NFIT_DSM_
On Thu, Aug 10, 2017 at 07:27:58PM -0700, Dan Williams wrote:
> On Thu, Aug 10, 2017 at 7:12 PM, Jerry Hoemann wrote:
> > On Thu, Aug 10, 2017 at 05:47:10PM -0700, Dan Williams wrote:
> >> On Thu, Aug 10, 2017 at 5:00 PM, Jerry Hoemann
> >> wrote:
> >&g
mand?
>
> Cc: Jerry Hoemann
> Reported-by: Yasunori Goto
> Signed-off-by: Dan Williams
> ---
> include/uapi/linux/ndctl.h | 37 -
> 1 file changed, 37 deletions(-)
>
> diff --git a/include/uapi/linux/ndctl.h b/include/uapi/linux/
ay, I've been away.
I'm okay with moving the test to the beginning of acpi_nfit_ctl. If/When the
reserved
fields are defined/used, we may need to tweak that. But we can cross that
bridge when it comes.
However, I do have a question.
There are two for loops in __nd_ioctl that proce
nction 2, Get Smart Threshold, in v1.6 is also different from what
Linux implemented in ndctl.h. But, these changes don't appear to be
backward compatible.
Do you have plans for this?
Jerry
--
---------
Jerry Hoemann
RY_FWUPDATE = 16,
> + NVDIMM_INTEL_SET_THRESHOLD = 17,
> + NVDIMM_INTEL_INJECT_ERROR = 18,
> +};
> +
> +#define NVDIMM_INTEL_CMDMASK \
> +(NVDIMM_STANDARD_CMDMASK | 1 << NVDIMM_INTEL_GET_MODES \
> + | 1 << NVDIMM_INTEL_GET_FWINFO | 1 << NVDIMM_INTEL_START_FWUPDATE \
On Tue, Oct 31, 2017 at 02:42:01PM -0700, Dan Williams wrote:
> On Tue, Oct 31, 2017 at 2:27 PM, Jerry Hoemann wrote:
> > On Mon, Oct 30, 2017 at 01:47:08PM -0700, Dan Williams wrote:
> >> Per v1.6 of the NVDIMM_FAMILY_INTEL command set [1] some of the new
> >> co
On Tue, Oct 31, 2017 at 04:19:32PM -0700, Dan Williams wrote:
> On Tue, Oct 31, 2017 at 3:05 PM, Jerry Hoemann wrote:
> > On Tue, Oct 31, 2017 at 02:42:01PM -0700, Dan Williams wrote:
> [..]
> >> Yes, this can happen. However, for the kernel implementation it can
> >>
gt; >
> > > If they advertise a _DSM, I think they have to support function 0.
> >
> > They should, but didn't. Kernel v4.6 works with qemu 2.6, kernel v4.7
> > does not, so the kernel n
_CALL] = "cmd_call",
The change was to display string version of cmd which should be in
the table.
--
-
Jerry Hoemann Software Engineer Hewlett Packard Enterprise
-
outine should be limited to the
> probing done by the nfit driver.
>
> Cc: "Rafael J. Wysocki"
> Cc: Len Brown
> Cc: Jerry Hoemann
> Fixes: 31eca76ba2fc ("nfit, libnvdimm: limited/whitelisted dimm command
> marshaling mechanism")
> Reported-by: Xiao
On Tue, Jul 19, 2016 at 11:52:53AM -0700, Dan Williams wrote:
> On Tue, Jul 19, 2016 at 11:50 AM, Linda Knippers
> wrote:
> >
> >
> > On 7/19/2016 1:11 PM, Jerry Hoemann wrote:
> >> On Fri, Jun 24, 2016 at 10:44:25AM -0700, Dan Williams wrote:
> >>> Q
On Tue, Jul 19, 2016 at 01:01:16PM -0700, Dan Williams wrote:
> On Tue, Jul 19, 2016 at 11:52 AM, Dan Williams
> wrote:
> > On Tue, Jul 19, 2016 at 11:50 AM, Linda Knippers
> > wrote:
> >> On 7/19/2016 1:11 PM, Jerry Hoemann wrote:
> [..]
> >
let's take the opportunity to
> > > let SPDX do its job and drop the full license text.
> >
> > This is fine by me too, barring the full license text vs.
56 matches
Mail list logo