From: Ruiqiang Hao <ruiqiang....@windriver.com>

Marvell-cn106xx has 24 cpu cores, each of which uses a separate policy,
so we need 24 message slot at least to ensure the normal data flow for
cpu_freq. Increase MBOX_TX_QUEUE_LEN and the max_msg of scmi_xfer to avoid
the following errors:

arm-scmi firmware:scmi: failed to get free message slot(-12)

Signed-off-by: Ruiqiang Hao <ruiqiang....@windriver.com>
---
 drivers/firmware/arm_scmi/mailbox.c | 2 +-
 include/linux/mailbox_controller.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/firmware/arm_scmi/mailbox.c 
b/drivers/firmware/arm_scmi/mailbox.c
index bb15def8901f..22f1ad268a91 100644
--- a/drivers/firmware/arm_scmi/mailbox.c
+++ b/drivers/firmware/arm_scmi/mailbox.c
@@ -199,6 +199,6 @@ static const struct scmi_transport_ops scmi_mailbox_ops = {
 const struct scmi_desc scmi_mailbox_desc = {
        .ops = &scmi_mailbox_ops,
        .max_rx_timeout_ms = 500,       /* We may increase this if required */
-       .max_msg = 20, /* Limited by MBOX_TX_QUEUE_LEN */
+       .max_msg = 40, /* Limited by MBOX_TX_QUEUE_LEN */
        .max_msg_size = 256,
 };
diff --git a/include/linux/mailbox_controller.h 
b/include/linux/mailbox_controller.h
index 6fee33cb52f5..45539dd612ce 100644
--- a/include/linux/mailbox_controller.h
+++ b/include/linux/mailbox_controller.h
@@ -100,7 +100,7 @@ struct mbox_controller {
  * REVISIT: If too many platforms see the "Try increasing MBOX_TX_QUEUE_LEN"
  * print, it needs to be taken from config option or somesuch.
  */
-#define MBOX_TX_QUEUE_LEN      20
+#define MBOX_TX_QUEUE_LEN      40
 
 /**
  * struct mbox_chan - s/w representation of a communication chan
-- 
2.32.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#11811): 
https://lists.yoctoproject.org/g/linux-yocto/message/11811
Mute This Topic: https://lists.yoctoproject.org/mt/94554595/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to