From: tien.sung.ang@intel.com
To: Dinh Nguyen <dinguyen@kernel.org>
Cc: linux-kernel@vger.kernel.org, Ang Tien Sung <tien.sung.ang@intel.com>
Subject: [PATCH 04/12] firmware: stratix10-svc: increase msg arg size
Date: Fri, 23 Jun 2023 11:20:21 +0800 [thread overview]
Message-ID: <20230623032029.1755017-5-tien.sung.ang@intel.com> (raw)
In-Reply-To: <20230623032029.1755017-1-tien.sung.ang@intel.com>
From: Ang Tien Sung <tien.sung.ang@intel.com>
Increase args array from 3 to 6, which is used for args to be passed
via registers and not physically mapped buffer. This is to cater
for the new SDM crypto commands that requires the extra arguments
to contain the physical address of shared buffers.
Signed-off-by: Ang Tien Sung <tien.sung.ang@intel.com>
---
drivers/firmware/stratix10-svc.c | 6 ++++--
include/linux/firmware/intel/stratix10-svc-client.h | 2 +-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/firmware/stratix10-svc.c b/drivers/firmware/stratix10-svc.c
index d7a11f7a43f3..37f188a1e927 100644
--- a/drivers/firmware/stratix10-svc.c
+++ b/drivers/firmware/stratix10-svc.c
@@ -117,7 +117,7 @@ struct stratix10_svc_data {
size_t size_output;
u32 command;
u32 flag;
- u64 arg[3];
+ u64 arg[6];
};
/**
@@ -1084,7 +1084,9 @@ int stratix10_svc_send(struct stratix10_svc_chan *chan, void *msg)
p_data->arg[0] = p_msg->arg[0];
p_data->arg[1] = p_msg->arg[1];
p_data->arg[2] = p_msg->arg[2];
- p_data->size = p_msg->payload_length;
+ p_data->arg[3] = p_msg->arg[3];
+ p_data->arg[4] = p_msg->arg[4];
+ p_data->arg[5] = p_msg->arg[5];
p_data->chan = chan;
pr_debug("%s: put to FIFO pa=0x%016x, cmd=%x, size=%u\n", __func__,
(unsigned int)p_data->paddr, p_data->command,
diff --git a/include/linux/firmware/intel/stratix10-svc-client.h b/include/linux/firmware/intel/stratix10-svc-client.h
index 2d4a016468ae..bdcdc895993d 100644
--- a/include/linux/firmware/intel/stratix10-svc-client.h
+++ b/include/linux/firmware/intel/stratix10-svc-client.h
@@ -216,7 +216,7 @@ struct stratix10_svc_client_msg {
void *payload_output;
size_t payload_length_output;
enum stratix10_svc_command_code command;
- u64 arg[3];
+ u64 arg[6];
};
/**
--
2.25.1
next prev parent reply other threads:[~2023-06-23 3:22 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-23 3:20 [PATCH 00/12] New Crypto service commands tien.sung.ang
2023-06-23 3:20 ` [PATCH 01/12] firmware: stratix10-svc: support open & close crypto session tien.sung.ang
2023-06-23 3:20 ` [PATCH 02/12] firmware: stratix10-svc: crypto key management tien.sung.ang
2023-06-23 3:20 ` [PATCH 03/12] firmware: stratix10-svc: AES encrypt and decrypt tien.sung.ang
2023-06-23 3:20 ` tien.sung.ang [this message]
2023-06-23 3:20 ` [PATCH 05/12] firmware: stratix10-svc: SHA-2 digest tien.sung.ang
2023-06-23 3:20 ` [PATCH 06/12] firmware: stratix10-svc: HMAC SHA2 verify tien.sung.ang
2023-06-23 3:20 ` [PATCH 07/12] firmware: stratix10-svc: ECDSA Hash signing tien.sung.ang
2023-06-23 3:20 ` [PATCH 08/12] firmware: stratix10-svc: ECDSA SHA2 data signing tien.sung.ang
2023-06-23 3:20 ` [PATCH 09/12] firmware: stratix10-svc: hash signature verification tien.sung.ang
2023-06-23 3:20 ` [PATCH 10/12] firmware: stratix10-svc: SHA2 " tien.sung.ang
2023-06-23 3:20 ` [PATCH 11/12] firmware: stratix10-svc: public key request tien.sung.ang
2023-06-23 3:20 ` [PATCH 12/12] firmware: stratix10-svc: ECDH request tien.sung.ang
2023-06-23 5:36 ` [PATCH 00/12] New Crypto service commands Dinh Nguyen
2023-06-23 6:53 ` Ang, Tien Sung
2023-06-23 7:32 ` Dinh Nguyen
2023-06-23 7:35 ` Ang, Tien Sung
2023-06-27 15:17 ` Dinh Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230623032029.1755017-5-tien.sung.ang@intel.com \
--to=tien.sung.ang@intel.com \
--cc=dinguyen@kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox