Skip to contentSkip to conversation

firmware: stratix10-svc: increase args array

PATCH New [email protected] 1 participant 1 message Sep 13, 2022 Intel STRATIX10 firmware drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: stratix10-svc: increase args array

From: Adrian Ng Ho Yin <[email protected]>

Increase args array from 3 to 6, which is used for args to be passed via registers and not physically mapped buffer.

---
 drivers/firmware/stratix10-svc.c                    | 5 ++++-
 include/linux/firmware/intel/stratix10-svc-client.h | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)
drivers/firmware/stratix10-svc.c +4 -1
index b4081f4d88a3..580494fb187f 100644
@@ -117,7 +117,7 @@ struct stratix10_svc_data {
 	size_t size_output;
 	u32 command;
 	u32 flag;
-	u64 arg[3];
+	u64 arg[6];
 };
 
 /**
@@ -997,6 +997,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->arg[3] = p_msg->arg[3];
+	p_data->arg[4] = p_msg->arg[4];
+	p_data->arg[5] = p_msg->arg[5];
 	p_data->size = p_msg->payload_length;
 	p_data->chan = chan;
 	pr_debug("%s: put to FIFO pa=0x%016x, cmd=%x, size=%u\n", __func__,
include/linux/firmware/intel/stratix10-svc-client.h +1 -1
index 0c16037fd08d..24bbcbc6ec67 100644
@@ -183,7 +183,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