linux/drivers/mailbox
Nishanth Menon 1b712f18c4 mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0
Sec proxy/message manager data buffer is 60 bytes with the last of the
registers indicating transmission completion. This however poses a bit
of a challenge.

The backing memory for sec_proxy / message manager is regular memory,
and all sec proxy does is to trigger a burst of all 60 bytes of data
over to the target thread backing ring accelerator. It doesn't do a
memory scrub when it moves data out in the burst. When we transmit
multiple messages, remnants of previous message is also transmitted
which results in some random data being set in TISCI fields of
messages that have been expanded forward.

The entire concept of backward compatibility hinges on the fact that
the unused message fields remain 0x0 allowing for 0x0 value to be
specially considered when backward compatibility of message extension
is done.

So, instead of just writing the completion register, we continue
to fill the message buffer up with 0x0 (note: for partial message
involving completion, we already do this).

This allows us to scale and introduce ABI changes back also work with
other boot stages that may have left data in the internal memory.

While at this, be consistent and explicit with the data_reg pointer
increment.

Fixes: aace66b170 ("mailbox: Introduce TI message manager driver")
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
2023-06-30 17:35:45 -05:00
..
apple-mailbox.c mailbox: apple: Implement poll_data() operation 2022-09-15 13:14:01 -05:00
arm_mhu_db.c mailbox: correct kerneldoc 2022-05-21 11:41:30 -05:00
arm_mhu.c mailbox: arm_mhu: Remove redundant error printing in mhu_probe() 2021-06-26 11:37:48 -05:00
arm_mhuv2.c mailbox: arm_mhuv2: Fix return value check in mhuv2_probe() 2022-12-18 20:40:30 -06:00
armada-37xx-rwtm-mailbox.c treewide: change my e-mail address, fix my name 2021-04-09 14:54:23 -07:00
bcm2835-mailbox.c mailbox: bcm2835: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:48 -05:00
bcm-flexrm-mailbox.c mailbox: bcm-ferxrm-mailbox: Fix error check for dma_map_sg 2022-10-05 21:50:53 -05:00
bcm-pdc-mailbox.c mailbox: bcm-pdc: drop of_match_ptr for ID table 2023-05-04 00:53:34 -05:00
hi3660-mailbox.c mailbox: hi3660: convert struct comments to kernel-doc notation 2022-01-11 23:47:32 -06:00
hi6220-mailbox.c mailbox: Use of_property_read_bool() for boolean properties 2023-04-18 11:50:56 -05:00
imx-mailbox.c mailbox: imx: fix RST channel support 2022-10-05 21:46:36 -05:00
Kconfig - mailbox api: allow direct registration to a channel 2023-05-07 10:17:33 -07:00
mailbox-altera.c mailbox: altera: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:48 -05:00
mailbox-mpfs.c mailbox: mpfs: check the service status in .tx_done() 2023-04-03 19:26:04 +01:00
mailbox-sti.c mailbox: sti: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
mailbox-test.c mailbox: mailbox-test: fix a locking issue in mbox_test_message_write() 2023-05-31 13:26:44 -05:00
mailbox-xgene-slimpro.c mailbox: xgene-slimpro: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
mailbox.c mailbox: Allow direct registration to a channel 2023-04-18 11:48:55 -05:00
mailbox.h mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
Makefile mailbox: mediatek: add support for adsp mailbox controller 2022-03-12 19:24:57 -06:00
mtk-adsp-mailbox.c mailbox: mediatek: support mt8186 adsp mailbox 2022-05-21 11:41:30 -05:00
mtk-cmdq-mailbox.c mailbox: mtk-cmdq: Do not request irq until we are ready 2022-12-18 20:40:31 -06:00
omap-mailbox.c mailbox: Use of_property_read_bool() for boolean properties 2023-04-18 11:50:56 -05:00
pcc.c mailbox: pcc: Use mbox_bind_client 2023-04-18 11:48:56 -05:00
pl320-ipc.c mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
platform_mhu.c mailbox: platform-mhu: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: do not grow the of_device_id 2023-05-04 00:59:56 -05:00
qcom-ipcc.c mailbox: qcom-ipcc: flag IRQ NO_THREAD 2022-10-05 21:51:58 -05:00
rockchip-mailbox.c - mailbox api: allow direct registration to a channel 2023-05-07 10:17:33 -07:00
sprd-mailbox.c mailbox: sprd: Add supplementary inbox support 2021-04-13 20:07:36 -05:00
stm32-ipcc.c mailbox: stm32-ipcc: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
sun6i-msgbox.c mailbox: sun6i: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
tegra-hsp.c mailbox: tegra: add support for Tegra264 2023-06-30 17:35:45 -05:00
ti-msgmgr.c mailbox: ti-msgmgr: Fill non-message tx data fields with 0x0 2023-06-30 17:35:45 -05:00
zynqmp-ipi-mailbox.c mailbox: zynqmp: Fix IPI isr handling 2023-03-14 13:28:04 -06:00