u-boot/drivers/mailbox
Nishanth Menon 2a8ebad6ef mailbox: k3-sec-proxy: Fill non-message tx data fields with 0x0
Sec proxy 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 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, drop the unused accessor function.

Fixes: f9aa41023b ("mailbox: Introduce K3 Secure Proxy Driver")
Signed-off-by: Nishanth Menon <nm@ti.com>
2023-07-25 12:44:46 -04:00
..
apple-mbox.c mailbox: apple: Add driver for Apple IOP mailbox 2022-02-10 16:44:23 -05:00
k3-sec-proxy.c mailbox: k3-sec-proxy: Fill non-message tx data fields with 0x0 2023-07-25 12:44:46 -04:00
Kconfig mailbox: zynqmp: Enable ipi mailbox driver for Versal NET 2022-09-26 14:23:29 +02:00
mailbox-uclass.c treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
Makefile mailbox: apple: Add driver for Apple IOP mailbox 2022-02-10 16:44:23 -05:00
sandbox-mbox-test.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
sandbox-mbox.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
stm32-ipcc.c mailbox: stm32-ipcc: migrate trace to dev and log macro 2021-01-13 09:52:58 +01:00
tegra-hsp.c treewide: invaild -> invalid 2022-01-13 07:57:49 -05:00
zynqmp-ipi.c mailbox: zynqmp: Move struct zynqmp_ipi_msg from sys_proto.h 2022-07-26 08:36:20 +02:00