| 229670c3 | 17-Jul-2024 |
Etienne Carriere <etienne.carriere@foss.st.com> |
drivers: scmi-msg: fix clock rates description remaining count
Fix value of remaining clocks to describe on SCMI clock protocol message CLOCK_DESCRIBE_RATES that does not take into account the numbe
drivers: scmi-msg: fix clock rates description remaining count
Fix value of remaining clocks to describe on SCMI clock protocol message CLOCK_DESCRIBE_RATES that does not take into account the number of returned clock in the response.
Fixes: 90252e2a52c7 ("drivers: scmi-msg: clock adapts to output buffer size") Signed-off-by: Etienne Carriere <etienne.carriere@foss.st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
show more ...
|
| 737ed932 | 12-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: fix protocol list querying
Corrects the function reporting the SCMI protocols supported by the platform to not assume 8 protocol IDs at most can be returned. Indeed the number of
drivers: scmi-msg: fix protocol list querying
Corrects the function reporting the SCMI protocols supported by the platform to not assume 8 protocol IDs at most can be returned. Indeed the number of protocol IDs returned depends on the SCMI output buffer size.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| f93760c4 | 12-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: fix protocol list response size
Corrects the size of the SCMI response payload when querying the list of the supported protocol. This response payload size depends on the number o
drivers: scmi-msg: fix protocol list response size
Corrects the size of the SCMI response payload when querying the list of the supported protocol. This response payload size depends on the number of protocols enumerated by the response.
Reported-by: Nicolas Frattaroli <frattaroli.nicolas@gmail.com> Link: https://lore.kernel.org/lkml/1698297.NAKyZzlH2u@archbook Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 4a382700 | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: move entry functions to generic entry
Moves SCMI channel management entry helper functions from smt.c to generic source file entry.c. This change will ease integration of other SC
drivers: scmi-msg: move entry functions to generic entry
Moves SCMI channel management entry helper functions from smt.c to generic source file entry.c. This change will ease integration of other SCMI shared memory message passing protocol.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 598c63d3 | 10-May-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: rename chan to channel
Renames local variables chan to channel in smt.c.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@li
drivers: scmi-msg: rename chan to channel
Renames local variables chan to channel in smt.c.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| ae07e7ef | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: handle invalid channels
Changes implementation channel_to_smt_hdr() of SMT message management in scmi-msg driver to support being called with invalid channel ID to relax implement
drivers: scmi-msg: handle invalid channels
Changes implementation channel_to_smt_hdr() of SMT message management in scmi-msg driver to support being called with invalid channel ID to relax implementation. On contrary, scmi_smt_init_agent_channel() is expected to be called only for valid SMT channels.
By the way, with this change, scmi_entry_smt() read SMT header status from shared memory after channel in successfully claimed, not before. The change does not affect the communication and makes the implementation more consistent. For consistency, I also rename local variables chan to channel to be more explicit.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 90252e2a | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: clock adapts to output buffer size
Changes SCMI clocks implementation to not assume the SCMI output message buffer is of a given size. Implementation still expects the output shar
drivers: scmi-msg: clock adapts to output buffer size
Changes SCMI clocks implementation to not assume the SCMI output message buffer is of a given size. Implementation still expects the output shared memory is at least large enough to hold the SCMI status information that is 32bit wide.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 57f6c5d2 | 29-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: voltage domain adapts to output buffer size
Changes SCMI voltage domain implementation to not assume the SCMI output message buffer is of a given size. Implementation still expect
drivers: scmi-msg: voltage domain adapts to output buffer size
Changes SCMI voltage domain implementation to not assume the SCMI output message buffer is of a given size. Implementation still expects the output shared memory is at least large enough to hold the SCMI status information that is 32bit wide.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 7b49ff33 | 25-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: relax constraint on output buffer size
Changes scmi_write_response() implementation to not assert the output buffer size against target payload but return a protocol error instead
drivers: scmi-msg: relax constraint on output buffer size
Changes scmi_write_response() implementation to not assert the output buffer size against target payload but return a protocol error instead since we expect shared memory size where agreed on before communication.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d0b1e037 | 25-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: remove unused macro LEVELS_ARRAY_SIZE_MAX_2
Removes macro LEVELS_ARRAY_SIZE_MAX_2 in scmi-msg voltage-domain.c source file.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> S
drivers: scmi-msg: remove unused macro LEVELS_ARRAY_SIZE_MAX_2
Removes macro LEVELS_ARRAY_SIZE_MAX_2 in scmi-msg voltage-domain.c source file.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d9b0a06d | 25-Apr-2022 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: rename secure buffer size macros
Renames macro SCMI_PLAYLOAD_MAX to SCMI_SEC_PAYLOAD_SIZE and SCMI_PLAYLOAD_U32_MAX to SCMI_PAYLOAD_U32_SIZE to fix typo in macro name (play to pay
drivers: scmi-msg: rename secure buffer size macros
Renames macro SCMI_PLAYLOAD_MAX to SCMI_SEC_PAYLOAD_SIZE and SCMI_PLAYLOAD_U32_MAX to SCMI_PAYLOAD_U32_SIZE to fix typo in macro name (play to pay) and make it clear that SCMI_SEC_PAYLOAD_SIZE is the size of the secure buffer used to store a secure copy of the input SCMI message payload, that is expected small.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 48f04743 | 07-Apr-2021 |
Etienne Carriere <etienne.carriere@linaro.org> |
drivers: scmi-msg: add scmi_smt_set_shared_buffer()
Dynamically set/release SCMI SMT shared buffer reference. This can be used when the caller passes the SCMI SMT shared memory reference as part of
drivers: scmi-msg: add scmi_smt_set_shared_buffer()
Dynamically set/release SCMI SMT shared buffer reference. This can be used when the caller passes the SCMI SMT shared memory reference as part of OP-TEE invocation parameters instead of using a statically allocated buffer.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome@forissier.org>
show more ...
|