diff mbox

ndctl: fix input/output size for Intel firmware update DSM

Message ID 152174316397.12504.9225022827981437244.stgit@djiang5-desk3.ch.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dave Jiang March 22, 2018, 6:26 p.m. UTC
The FW_START DSM should have input/out of 0/8, the code incorrectly
is passing in 4/4. This is causing failure with newer BIOS that check
the input/output parameters more strictly.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
---
 ndctl/lib/intel.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Dan Williams March 22, 2018, 6:28 p.m. UTC | #1
On Thu, Mar 22, 2018 at 11:26 AM, Dave Jiang <dave.jiang@intel.com> wrote:
> The FW_START DSM should have input/out of 0/8, the code incorrectly
> is passing in 4/4. This is causing failure with newer BIOS that check
> the input/output parameters more strictly.
>
> Signed-off-by: Dave Jiang <dave.jiang@intel.com>
> ---
>  ndctl/lib/intel.c |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/ndctl/lib/intel.c b/ndctl/lib/intel.c
> index 3c4509e4..ba210e1c 100644
> --- a/ndctl/lib/intel.c
> +++ b/ndctl/lib/intel.c
> @@ -449,8 +449,8 @@ static struct ndctl_cmd *intel_dimm_cmd_new_fw_start(struct ndctl_dimm *dimm)
>
>         BUILD_ASSERT(sizeof(struct nd_intel_fw_start) == 8);
>
> -       cmd = alloc_intel_cmd(dimm, ND_INTEL_FW_START_UPDATE,
> -                       sizeof(cmd->intel->start) - 4, 4);
> +       cmd = alloc_intel_cmd(dimm, ND_INTEL_FW_START_UPDATE, 0,
> +                       sizeof(cmd->intel->start));

Looks good, applied.
diff mbox

Patch

diff --git a/ndctl/lib/intel.c b/ndctl/lib/intel.c
index 3c4509e4..ba210e1c 100644
--- a/ndctl/lib/intel.c
+++ b/ndctl/lib/intel.c
@@ -449,8 +449,8 @@  static struct ndctl_cmd *intel_dimm_cmd_new_fw_start(struct ndctl_dimm *dimm)
 
 	BUILD_ASSERT(sizeof(struct nd_intel_fw_start) == 8);
 
-	cmd = alloc_intel_cmd(dimm, ND_INTEL_FW_START_UPDATE,
-			sizeof(cmd->intel->start) - 4, 4);
+	cmd = alloc_intel_cmd(dimm, ND_INTEL_FW_START_UPDATE, 0,
+			sizeof(cmd->intel->start));
 	if (!cmd)
 		return NULL;