ASoC: SOF: amd: Use dedicated MBOX for ACP and PSP communication
authorAjit Kumar Pandey <AjitKumar.Pandey@amd.com>
Thu, 21 Apr 2022 16:58:20 +0000 (11:58 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 21 Apr 2022 17:25:18 +0000 (18:25 +0100)
commitd2be77b382328b46a79635bfd9e959a96bb6ac29
tree83885dbb064cc00387ad6c0660246ef7b6a219c2
parentbbdcd3d590cad744db46cb94649833db3575df49
ASoC: SOF: amd: Use dedicated MBOX for ACP and PSP communication

We are currently using generic PSP Mailbox register for sending SHA
complete command to PSP but observe random arbitration issue during
PSP validation as MP0_C2PMSG_26_REG used by other kernel modules.

Use separate mailbox registers and doorbell mechanism to send SHA_DMA
complete command to PSP. This fixes such validation issues and added
flexibility for sending more ACP commands to PSP in future as new mbox
registers i.e MP0_C2PMSG_114_REG and MP0_C2PMSG_73_REG are dedicated
by PSP for ACP communications.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220421165820.337207-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/amd/acp.c
sound/soc/sof/amd/acp.h