]> git.apps.os.sepia.ceph.com Git - ceph-client.git/commit
firmware: arm_scmi: Support 'reg-io-width' property for shared memory
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Tue, 27 Aug 2024 18:24:50 +0000 (11:24 -0700)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 28 Oct 2024 14:50:57 +0000 (14:50 +0000)
commit2cd7f3db25feeb7c204e36df9f1bb13bea3a3a20
tree77c8553ce535babcd0dd675e81228cb3fbf21497
parent14b2157a9c14481c3b967d8d1a95972bf885fb88
firmware: arm_scmi: Support 'reg-io-width' property for shared memory

Some shared memory areas might only support a certain access width,
such as 32-bit, which memcpy_{from,to}_io() does not adhere to at least
on ARM64 by making both 8-bit and 64-bit accesses to such memory.

Update the shmem layer to support reading from and writing to such
shared memory area using the specified I/O width in the Device Tree. The
various transport layers making use of the shmem.c code are updated
accordingly to pass the I/O accessors that they store.

Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Message-Id: <20240827182450.3608307-3-florian.fainelli@broadcom.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/common.h
drivers/firmware/arm_scmi/shmem.c
drivers/firmware/arm_scmi/transports/mailbox.c
drivers/firmware/arm_scmi/transports/optee.c
drivers/firmware/arm_scmi/transports/smc.c