Commit f91c04d3 authored by Sudeep Holla's avatar Sudeep Holla Committed by Lee Jones
Browse files

UPSTREAM: firmware: arm_ffa: Set reserved/MBZ fields to zero in the memory descriptors



The transmit buffers allocated by the driver can be used to transmit data
by any messages/commands needing the buffer. However, it is not guaranteed
to have been zero-ed before every new transmission and hence it will just
contain residual value from the previous transmission. There are several
reserved fields in the memory descriptors that must be zero(MBZ). The
receiver can reject the transmission if any such MBZ fields are non-zero.

While we can set the whole page to zero, it is not optimal as most of the
fields get initialised to the value required for the current transmission.

So, just set the reserved/MBZ fields to zero in the memory descriptors
explicitly to honour the requirement and keep the receiver happy.

Bug: 254441685
Fixes: cc2195fe ("firmware: arm_ffa: Add support for MEM_* interfaces")
Reported-by: default avatarMarc Bonnici <marc.bonnici@arm.com>
Link: https://lore.kernel.org/r/20230503131252.12585-1-sudeep.holla@arm.com


Signed-off-by: default avatarSudeep Holla <sudeep.holla@arm.com>
(cherry picked from commit 111a833d)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: Ie6de71e4c16acd304bf4903802e2a51c8f5bbd2f
parent 86bda109
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment