blob: 5cd8e4b0d142d08a866325154638c468642f89f8 [file] [log] [blame]
Patrick Williams2194f502022-10-16 14:26:09 -05001Upstream-Status: Inappropriate[Temporary bugfix]
2Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
3
4From f1a869ea986305a6fb20f3c770c11778a898b86d Mon Sep 17 00:00:00 2001
5From: Emekcan <emekcan.aras@arm.com>
6Date: Thu, 13 Oct 2022 20:53:42 +0100
7Subject: [PATCH] Adds workaround for cs1k specific bug
8
9Adds a temporary workaround to solve a possible
10race-conditioning issue in the tee driver
11for corstone1000.
12
13Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>
14---
15 drivers/firmware/arm_ffa/driver.c | 3 ++-
16 1 file changed, 2 insertions(+), 1 deletion(-)
17
18diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
19index ec731e9e942b..2a3ef649935e 100644
20--- a/drivers/firmware/arm_ffa/driver.c
21+++ b/drivers/firmware/arm_ffa/driver.c
22@@ -32,6 +32,7 @@
23 #include <linux/scatterlist.h>
24 #include <linux/slab.h>
25 #include <linux/uuid.h>
26+#include <linux/delay.h>
27
28 #include "common.h"
29
30@@ -344,7 +345,7 @@ static int ffa_msg_send_direct_req(u16 src_id, u16 dst_id, bool mode_32bit,
31 {
32 u32 req_id, resp_id, src_dst_ids = PACK_TARGET_INFO(src_id, dst_id);
33 ffa_value_t ret;
34-
35+ msleep(1);
36 if (mode_32bit) {
37 req_id = FFA_MSG_SEND_DIRECT_REQ;
38 resp_id = FFA_MSG_SEND_DIRECT_RESP;
39--
402.17.1
41