firmware: arm_scmi: Expand SMC/HVC message pool to more than one
authorEtienne Carriere <etienne.carriere@linaro.org>
Thu, 8 Oct 2020 14:37:21 +0000 (16:37 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 12 Oct 2020 14:10:42 +0000 (15:10 +0100)
commit7adb2c8aaaa6a387af7140e57004beba2c04a4c6
tree8ac14e7797fb345849f8011c72311be1d12ba960
parent45b9e04d5ba0b043783dfe2b19bb728e712cb32e
firmware: arm_scmi: Expand SMC/HVC message pool to more than one

SMC/HVC can transmit only one message at the time as the shared memory
needs to be protected and the calls are synchronous.

However, in order to allow multiple threads to send SCMI messages
simultaneously, we need a larger poll of memory.

Let us just use value of 20 to keep it in sync mailbox transport
implementation. Any other value must work perfectly.

Link: https://lore.kernel.org/r/20201008143722.21888-4-etienne.carriere@linaro.org
Fixes: 1dc6558062da ("firmware: arm_scmi: Add smc/hvc transport")
Cc: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
[sudeep.holla: reworded the commit message to indicate the practicality]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/smc.c